# Type stubs for langchain_community.chat_message_histories

from typing import Any

class SQLChatMessageHistory:
    def __init__(
        self,
        session_id: str,
        table_name: str = "message_store",
        session_id_field_name: str = "session_id",
        custom_message_converter: Any | None = None,
        connection: Any | None = None,
        engine_args: dict[str, Any] | None = None,
        async_mode: bool | None = None,
    ) -> None: ...
    @property
    def messages(self) -> list[Any]: ...
    def add_message(self, message: Any) -> None: ...
    def clear(self) -> None: ...
