import type { PropsWithChildren } from 'react'; import type { Channel } from 'stream-chat'; export type ChannelDetailContextValue = { channel: Channel; /** * Closes the channel detail: the views' close buttons and the actions that close the channel * detail when they finish call it. It is the `close` of the nearest modal context, which * `ChannelDetailProvider` replaces with its `onClose` when it is given. `undefined` when there is * neither, for example in a side panel without `onClose`, so `Prompt.Header` renders no close * button. */ close?: () => void; }; export type ChannelDetailProviderProps = PropsWithChildren<{ channel: Channel; /** * Closes the channel detail: the views' close buttons and the actions that close the channel * detail when they finish call it. Inside a modal it is called instead of the modal's `close`, so * close the modal from it. A modal opened inside the channel detail still closes itself. Without * it and outside a modal, the views render no close button. */ onClose?: () => void; }>; export declare const ChannelDetailProvider: ({ channel, children, onClose, }: ChannelDetailProviderProps) => import("react/jsx-runtime").JSX.Element; export declare const useChannelDetailContext: () => ChannelDetailContextValue; //# sourceMappingURL=ChannelDetailContext.d.ts.map