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

from streamlit.runtime.runtime import Runtime, RuntimeConfig, RuntimeState
from streamlit.runtime.session_manager import SessionClient, SessionClientDisconnectedError

def get_instance() -> Runtime:
    """Return the singleton Runtime instance. Raise an Error if the
    Runtime hasn't been created yet.
    """
    ...

def exists() -> bool:
    """True if the singleton Runtime instance has been created.

    When a Streamlit app is running in "raw mode" - that is, when the
    app is run via `python app.py` instead of `streamlit run app.py` -
    the Runtime will not exist, and various Streamlit functions need
    to adapt.
    """
    ...

__all__ = ["Runtime", "RuntimeConfig", "RuntimeState", "SessionClient", "SessionClientDisconnectedError", "get_instance", "exists"]
