import React from 'react'; import type { Channel } from 'stream-chat'; import { type ChannelAvatarProps } from '../Avatar'; export type ChannelHeaderTitleProps = { /** The channel the header belongs to. */ channel: Channel; /** The title to show: the `title` passed to `ChannelHeader`, else the channel display name. */ displayTitle?: string; }; /** Default title of `ChannelHeader`: the display title in a `div`. */ export declare const ChannelHeaderTitle: ({ displayTitle }: ChannelHeaderTitleProps) => import("react/jsx-runtime").JSX.Element; /** * Default subtitle of `ChannelHeader`, for the channel in context. Shows the typing indicator while * other users type, otherwise the online status from `useChannelHeaderOnlineStatus`, and * transitions between the two. Renders nothing when there is neither. */ export declare const ChannelHeaderSubtitle: () => import("react/jsx-runtime").JSX.Element | null; export type ChannelHeaderProps = { /** Avatar component. Defaults to `ChannelAvatar`. */ Avatar?: React.ComponentType; /** * Rendered at the end of the header, after the avatar. Defaults to * `WorkspaceNavigationCloseButton`; a component passed here replaces it and can render that * button to keep it. */ EndContent?: React.ComponentType; /** * Rendered at the start of the header. Defaults to `WorkspaceNavigationBackButton`; a component * passed here replaces it and can render that button to keep it. */ StartContent?: React.ComponentType; /** * Replaces the subtitle below the title. Defaults to `ChannelHeaderSubtitle`. Read the channel * with `useChannel()` and the status text with `useChannelHeaderOnlineStatus()`. */ Subtitle?: React.ComponentType; /** * Replaces the title. Defaults to `ChannelHeaderTitle`. Receives the channel and its display * title, so it can render the title as a button, for example. The subtitle stays below it. */ Title?: React.ComponentType; /** Overrides the channel image. */ image?: string; /** Overrides the channel title. */ title?: string; }; /** Header of the bound channel: avatar, title, and online status or typing indicator. */ export declare const ChannelHeader: (props: ChannelHeaderProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=ChannelHeader.d.ts.map