"""
This type stub file was generated by pyright.
"""

from typing import Literal, TYPE_CHECKING
from typing_extensions import Self, TypeAlias
from streamlit.delta_generator import DeltaGenerator
from types import TracebackType
from streamlit.cursor import Cursor

if TYPE_CHECKING:
    ...
DialogWidth: TypeAlias = Literal["small", "large"]
class Dialog(DeltaGenerator):
    def __init__(self, root_container: int | None, cursor: Cursor | None, parent: DeltaGenerator | None, block_type: str | None) -> None:
        ...
    
    def open(self) -> None:
        ...
    
    def close(self) -> None:
        ...
    
    def __enter__(self) -> Self:
        ...
    
    def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> Literal[False]:
        ...
    


