import React, { PropsWithChildren } from 'react'; import type { AppSettingsAPIResponse, Channel, Mute } from 'stream-chat'; import type { ChatProps } from '../components/Chat/Chat'; import type { DefaultStreamChatGenerics, UnknownType } from '../types/types'; import type { ChannelsQueryState } from '../components/Chat/hooks/useChannelsQueryState'; declare type CSSClasses = 'chat' | 'chatContainer' | 'channel' | 'channelList' | 'message' | 'messageList' | 'thread' | 'threadList' | 'virtualMessage' | 'virtualizedMessageList'; export declare type CustomClasses = Partial>; declare type ChannelCID = string; export declare type ThemeVersion = '1' | '2'; export declare type ChatContextValue = { channelsQueryState: ChannelsQueryState; closeMobileNav: () => void; getAppSettings: () => Promise> | null; latestMessageDatesByChannels: Record; mutes: Array>; openMobileNav: () => void; setActiveChannel: (newChannel?: Channel, watchers?: { limit?: number; offset?: number; }, event?: React.BaseSyntheticEvent) => void; themeVersion: ThemeVersion; useImageFlagEmojisOnWindows: boolean; channel?: Channel; customClasses?: CustomClasses; navOpen?: boolean; } & Required, 'theme' | 'client'>>; export declare const ChatContext: React.Context | undefined>; export declare const ChatProvider: ({ children, value, }: React.PropsWithChildren<{ value: ChatContextValue; }>) => JSX.Element; export declare const useChatContext: (componentName?: string) => ChatContextValue; /** * Typescript currently does not support partial inference so if ChatContext * typing is desired while using the HOC withChatContext the Props for the * wrapped component must be provided as the first generic. */ export declare const withChatContext:

(Component: React.ComponentType

) => { (props: Omit): JSX.Element; displayName: string; }; export {}; //# sourceMappingURL=ChatContext.d.ts.map