import { type Ask, type Nabi, type Toast } from '../../editor/index.js'; import { type HistoryRecord, type HistoryStorage } from '../../wings/local-history/local-history.js'; export declare function browserHistoryStorage(view: { localStorage?: Storage; } | null | undefined): HistoryStorage | null; export interface HistoryMountOptions { readonly nabi: Nabi; readonly storage: HistoryStorage | null; readonly limit?: number; readonly minIntervalMs?: number; readonly now?: () => number; } export interface HistoryMount { snapshot(): boolean; alive(): boolean; list(): HistoryRecord[]; restore(record: HistoryRecord): boolean; forget(): boolean; remove(sessionId: string): boolean; clear(): boolean; readonly sessionId: string; readonly ask: Ask; readonly toast: Toast; unmount(): void; } export declare function mountLocalHistory(options: HistoryMountOptions): HistoryMount; //# sourceMappingURL=history.d.ts.map