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

from typing import Any, TYPE_CHECKING
from pandas import DataFrame
from streamlit.proto.Components_pb2 import ArrowTable as ArrowTableProto

"""Data marshalling utilities for ArrowTable protobufs, which are used by
CustomComponent for dataframe serialization.
"""
if TYPE_CHECKING:
    ...
def marshall(proto: ArrowTableProto, data: Any, default_uuid: str | None = ...) -> None:
    """Marshall data into an ArrowTable proto.

    Parameters
    ----------
    proto : proto.ArrowTable
        Output. The protobuf for a Streamlit ArrowTable proto.

    data : pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict, or None
        Something that is or can be converted to a dataframe.

    """
    ...

def arrow_proto_to_dataframe(proto: ArrowTableProto) -> DataFrame:
    """Convert ArrowTable proto to pandas.DataFrame.

    Parameters
    ----------
    proto : proto.ArrowTable
        Output. pandas.DataFrame

    """
    ...

