import type { PropsWithChildren } from 'react'; import React from 'react'; import type { Channel, ChannelConfigWithInfo, GiphyVersions, LocalMessage, Mute, ChannelState as StreamChannelState } from 'stream-chat'; import type { ChannelUnreadUiState, ImageAttachmentSizeHandler, VideoAttachmentSizeHandler } from '../types/types'; export type ChannelNotifications = Array<{ id: string; text: string; type: 'success' | 'error'; }>; export type ChannelState = { suppressAutoscroll: boolean; error?: Error | null; hasMore?: boolean; hasMoreNewer?: boolean; highlightedMessageId?: string; loading?: boolean; loadingMore?: boolean; loadingMoreForJumpToChannelMessage?: boolean; loadingMoreNewer?: boolean; members?: StreamChannelState['members']; messages?: LocalMessage[]; pinnedMessages?: LocalMessage[]; read?: StreamChannelState['read']; thread?: LocalMessage | null; threadHasMore?: boolean; threadLoadingMore?: boolean; threadMessages?: LocalMessage[]; threadSuppressAutoscroll?: boolean; typing?: StreamChannelState['typing']; watcherCount?: number; watchers?: StreamChannelState['watchers']; }; export type ChannelStateContextValue = Omit & { channel: Channel; channelCapabilities: Record; channelConfig: ChannelConfigWithInfo | undefined; imageAttachmentSizeHandler: ImageAttachmentSizeHandler; notifications: ChannelNotifications; shouldGenerateVideoThumbnail: boolean; videoAttachmentSizeHandler: VideoAttachmentSizeHandler; channelUnreadUiState?: ChannelUnreadUiState; giphyVersion?: GiphyVersions; mutes?: Array; watcher_count?: number; }; export declare const ChannelStateContext: React.Context; export declare const ChannelStateProvider: ({ children, value, }: PropsWithChildren<{ value: ChannelStateContextValue; }>) => import("react/jsx-runtime").JSX.Element; export declare const useChannelStateContext: (componentName?: string) => ChannelStateContextValue; //# sourceMappingURL=ChannelStateContext.d.ts.map