import type { RunOpts } from "./types.js"; /** A history entry. `key` stays on replace and is new on push. */ export type HistoryEntry = { index: number; key: string; }; export type HistorySpecs = { /** The spec for a run that just changed the history entry. `spec` is what the run would use without autoReverse. */ pick(spec: RunOpts): RunOpts; }; export declare function createHistorySpecs(getEntry?: () => HistoryEntry | undefined): HistorySpecs; /** One store per document, shared by every handle. */ export declare const historySpecs: HistorySpecs;