import { MouseEventHandler, ReactNode, RefObject } from 'react'; import { ButtonFunctionProps } from '@snack-uikit/button'; import { SegmentedControlProps } from '@snack-uikit/segmented-control'; import { TooltipProps } from '@snack-uikit/tooltip'; import { WithSupportProps } from '@snack-uikit/utils'; import { NotificationCardStack, NotificationCardStackProps, NotificationPanelBlank, NotificationPanelBlankProps, NotificationPanelGroup, NotificationPanelGroupProps, NotificationPanelSettingsProps } from './components'; import { NotificationPanelDivider, NotificationPanelDividerProps } from './components/NotificationPanelDivider'; export type { NotificationPanelBlankProps }; export type NotificationPanelProps = WithSupportProps<{ /** Заголовок панели */ title: string; /** Кнопка настроек и выпадающий список */ settings?: NotificationPanelSettingsProps; /** Сегменты для фильтрации */ segments?: Omit; /** Переключатель для фильтрации */ chipToggle?: { label: string; checked: boolean; defaultChecked?: boolean; onChange(checked: boolean): void; }; /** Кнопка в "шапке" панели */ readAllButton?: Omit & { tooltip?: TooltipProps; }; /** Кнопка внизу панели */ footerButton?: { label: string; onClick: MouseEventHandler; }; className?: string; /** Состояние загрузки */ loading?: boolean; /** Контент для отрисовки (e.g NotificationCard | NotificationPanel.Blank) */ content?: ReactNode; /** Количество скелетонов карточек для отображения при загрузке */ skeletonsAmount?: number; /** Ссылка на элемент, обозначающий самый конец прокручиваемого списка */ scrollEndRef?: RefObject; /** Ссылка на контейнер, который скроллится */ scrollContainerRef?: RefObject; }>; /** Компонент панели для уведомлений */ export declare function NotificationPanel({ title, settings, segments, readAllButton, footerButton, content, loading, skeletonsAmount, scrollEndRef, scrollContainerRef, className, chipToggle, ...rest }: NotificationPanelProps): import("react/jsx-runtime").JSX.Element; export declare namespace NotificationPanel { const Blank: typeof NotificationPanelBlank; type BlankProps = NotificationPanelBlankProps; const Divider: typeof NotificationPanelDivider; type DividerProps = NotificationPanelDividerProps; const Stack: typeof NotificationCardStack; type StackProps = NotificationCardStackProps; const Group: typeof NotificationPanelGroup; type GroupProps = NotificationPanelGroupProps; }