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

from typing import NamedTuple, TYPE_CHECKING
from streamlit.delta_generator import DeltaGenerator

if TYPE_CHECKING:
    ...
class FormData(NamedTuple):
    """Form data stored on a DeltaGenerator."""
    form_id: str
    ...


def current_form_id(dg: DeltaGenerator) -> str:
    """Return the form_id for the current form, or the empty string if we're
    not inside an `st.form` block.

    (We return the empty string, instead of None, because this value is
    assigned to protobuf message fields, and None is not valid.)
    """
    ...

def is_in_form(dg: DeltaGenerator) -> bool:
    """True if the DeltaGenerator is inside an st.form block."""
    ...

