import React from 'react'; import type { PropsWithChildren } from 'react'; import type { RenderedMessage } from '../components'; export type MessageListContextValue = { /** Messages enriched with date separators and, if enabled, the intro message. */ processedMessages: RenderedMessage[]; /** The scroll container that holds the messages and the typing indicator. */ listElement: HTMLElement | null; /** Scrolls the `listElement` to the bottom. */ scrollToBottom: () => void; }; export declare const MessageListContext: React.Context; /** Provides the value to components rendered within the `MessageList`. */ export declare const MessageListContextProvider: ({ children, value, }: PropsWithChildren<{ value: MessageListContextValue; }>) => import("react/jsx-runtime").JSX.Element; export declare const useMessageListContext: () => MessageListContextValue; //# sourceMappingURL=MessageListContext.d.ts.map