import React, { Dispatch, PropsWithChildren, SetStateAction } from 'react'; import type { Channel } from 'open-chat-js'; import type { DefaultStreamChatGenerics } from '../types/types'; export type ChannelListContextValue = { /** * State representing the array of loaded channels. * Channels query is executed by default only by ChannelList component in the SDK. */ channels: Channel[]; /** * Sets the list of Channel objects to be rendered by ChannelList component. */ setChannels: Dispatch[]>>; }; export declare const ChannelListContext: React.Context | undefined>; /** * Context provider for components rendered within the `ChannelList` */ export declare const ChannelListContextProvider: ({ children, value, }: React.PropsWithChildren<{ value: ChannelListContextValue; }>) => React.JSX.Element; export declare const useChannelListContext: (componentName?: string) => ChannelListContextValue; //# sourceMappingURL=ChannelListContext.d.ts.map