"""
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:
    ...
States: TypeAlias = Literal["running", "complete", "error"]
class StatusContainer(DeltaGenerator):
    def __init__(self, root_container: int | None, cursor: Cursor | None, parent: DeltaGenerator | None, block_type: str | None) -> None:
        ...
    
    def update(self, *, label: str | None = ..., expanded: bool | None = ..., state: States | None = ...) -> None:
        """Update the status container.

        Only specified arguments are updated. Container contents and unspecified
        arguments remain unchanged.

        Parameters
        ----------
        label : str or None
            A new label of the status container. If None, the label is not
            changed.

        expanded : bool or None
            The new expanded state of the status container. If None,
            the expanded state is not changed.

        state : "running", "complete", "error", or None
            The new state of the status container. This mainly changes the
            icon. If None, the state is not changed.
        """
        ...
    
    def __enter__(self) -> Self:
        ...
    
    def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> Literal[False]:
        ...
    


