import * as React from 'react'; import type { DialogItem } from './types/component.types'; interface ChatArchivePageBaseProps { /** Archived dialogs, grouped (Today / Yesterday / Older) by the list. */ dialogs: ReadonlyArray; /** Open an archived dialog. */ onSelectDialog: (id: string) => void; /** The delayed skeleton is visible (a slow first page is loading). */ isLoading?: boolean; /** A first-page load is in flight but the delayed skeleton hasn't appeared * yet — keeps the empty state suppressed so it never flashes before the * skeleton/data arrives. */ isFetching?: boolean; /** Whether another page of archived dialogs remains. */ hasMore?: boolean; /** Fetch the next page. */ onLoadMore?: () => void; } /** Standalone (default): renders its own back/close header, so BOTH handlers * are required. */ export interface ChatArchivePageStandaloneProps extends ChatArchivePageBaseProps { embedded?: false; /** Back chevron — returns to the previous (list) view. */ onBack: () => void; /** Close the whole chat panel. */ onClose: () => void; } /** Embedded (wide split layout): the archive lives in the left rail and the * host header already provides the "Chat Archive" back + close controls, so * the built-in header — and its handlers — are dropped. */ export interface ChatArchivePageEmbeddedProps extends ChatArchivePageBaseProps { embedded: true; onBack?: never; onClose?: never; } export type ChatArchivePageProps = ChatArchivePageStandaloneProps | ChatArchivePageEmbeddedProps; /** * Chat Archive page — Figma node `7361:427312`. Back + title + close header * over the date-grouped archived-dialog list (reuses `MingoChatHistory` * without the row action menus). In `embedded` mode the header is dropped so * the list can slot into the split layout's left rail. */ export declare function ChatArchivePage(props: ChatArchivePageProps): React.JSX.Element; export {}; //# sourceMappingURL=chat-archive-page.d.ts.map