import React, { PropsWithChildren } from 'react'; import type { AttachmentProps } from '../components/Attachment/Attachment'; import type { AvatarProps } from '../components/Avatar/Avatar'; import type { DateSeparatorProps } from '../components/DateSeparator/DateSeparator'; import type { EmptyStateIndicatorProps } from '../components/EmptyStateIndicator/EmptyStateIndicator'; import type { EventComponentProps } from '../components/EventComponent/EventComponent'; import type { LoadingIndicatorProps } from '../components/Loading/LoadingIndicator'; import type { FixedHeightMessageProps } from '../components/Message/FixedHeightMessage'; import type { MessageUIComponentProps, PinIndicatorProps } from '../components/Message/types'; import type { MessageDeletedProps } from '../components/Message/MessageDeleted'; import type { GiphyPreviewMessageProps } from '../components/MessageList/GiphyPreviewMessage'; import type { MessageListNotificationsProps } from '../components/MessageList/MessageListNotifications'; import type { MessageNotificationProps } from '../components/MessageList/MessageNotification'; import type { MessageOptionsProps } from '../components/Message/MessageOptions'; import type { MessageInputProps } from '../components/MessageInput/MessageInput'; import type { QuotedMessagePreviewProps } from '../components/MessageInput/QuotedMessagePreview'; import type { MessageProps } from '../components/Message/types'; import type { MessageRepliesCountButtonProps } from '../components/Message/MessageRepliesCountButton'; import type { MessageStatusProps } from '../components/Message/MessageStatus'; import type { MessageTimestampProps } from '../components/Message/MessageTimestamp'; import type { ModalGalleryProps } from '../components/Gallery/ModalGallery'; import type { ReactionSelectorProps } from '../components/Reactions/ReactionSelector'; import type { ReactionsListProps } from '../components/Reactions/ReactionsList'; import type { SuggestionItemProps, SuggestionListProps } from '../components/ChatAutoComplete/ChatAutoComplete'; import type { SuggestionListHeaderProps } from '../components/AutoCompleteTextarea'; import type { SendButtonProps } from '../components/MessageInput/icons'; import type { ThreadHeaderProps } from '../components/Thread/ThreadHeader'; import type { TypingIndicatorProps } from '../components/TypingIndicator/TypingIndicator'; import type { CustomTrigger, DefaultStreamChatGenerics, UnknownType } from '../types/types'; import type { CooldownTimerProps } from '../components'; export declare type ComponentContextValue = { Attachment: React.ComponentType>; Message: React.ComponentType>; AutocompleteSuggestionHeader?: React.ComponentType; AutocompleteSuggestionItem?: React.ComponentType>; AutocompleteSuggestionList?: React.ComponentType>; Avatar?: React.ComponentType>; CooldownTimer?: React.ComponentType; DateSeparator?: React.ComponentType; EditMessageInput?: React.ComponentType>; EmojiIcon?: React.ComponentType; EmptyStateIndicator?: React.ComponentType; FileUploadIcon?: React.ComponentType; GiphyPreviewMessage?: React.ComponentType>; HeaderComponent?: React.ComponentType; Input?: React.ComponentType>; LoadingIndicator?: React.ComponentType; MessageDeleted?: React.ComponentType>; MessageListNotifications?: React.ComponentType; MessageNotification?: React.ComponentType; MessageOptions?: React.ComponentType>; MessageRepliesCountButton?: React.ComponentType; MessageStatus?: React.ComponentType; MessageSystem?: React.ComponentType>; MessageTimestamp?: React.ComponentType>; ModalGallery?: React.ComponentType; PinIndicator?: React.ComponentType>; QuotedMessage?: React.ComponentType; QuotedMessagePreview?: React.ComponentType>; ReactionSelector?: React.ForwardRefExoticComponent>; ReactionsList?: React.ComponentType>; SendButton?: React.ComponentType>; ThreadHead?: React.ComponentType>; ThreadHeader?: React.ComponentType>; ThreadInput?: React.ComponentType>; ThreadStart?: React.ComponentType; TriggerProvider?: React.ComponentType; TypingIndicator?: React.ComponentType; VirtualMessage?: React.ComponentType>; }; export declare const ComponentContext: React.Context | undefined>; export declare const ComponentProvider: ({ children, value, }: React.PropsWithChildren<{ value: Partial>; }>) => JSX.Element; export declare const useComponentContext: (componentName?: string) => ComponentContextValue; /** * Typescript currently does not support partial inference, so if ComponentContext * typing is desired while using the HOC withComponentContext, the Props for the * wrapped component must be provided as the first generic. */ export declare const withComponentContext:

(Component: React.ComponentType

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