/** Structural contract supplied by the official CLI; no Runtime implementation import. */ import type { Context } from '@deepseek-ai/cordis'; import type { PreviewEntry, SessionSummary } from './sessions/index.js'; export interface DesktopHistory { list(): Promise; preview(id: string): Promise; has(id: string): boolean; prepare(id: string): Promise<() => Promise>; } /** Optional launcher capability; ordinary TUI deployments keep their current history. */ export declare function desktopHistoryOf(ctx: Context): DesktopHistory | undefined; /** Project discovered desktop metadata without enrolling it in the CLI workspace registry. */ export declare function desktopHistoryRows(ctx: Context): Promise; declare module '@deepseek-ai/cordis' { interface Context { /** Guard listeners are installed before a handed-off Agent can resume queued work. */ desktopHistoryReady: Readonly<{ version: 1; }>; } interface Events { /** Exit the current terminal UI before starting a reserved desktop Session. */ 'tui/desktop-history/launch'(launch: () => Promise): void; } } export declare function desktopHistoryPreview(ctx: Context, id: string): Promise; //# sourceMappingURL=desktop-history.d.ts.map