import { Editor } from '../../Editor.js';
import { HistorySnapshotAdapter, ParticipantHistoryChangeKind, ParticipantHistorySnapshot } from './types.js';
/**
 * Read the current local undo/redo depths for any editor surface.
 *
 * This is the single shared depth reader for:
 * - the unified-history coordinator's participant adapters
 * - PresentationEditor's legacy fallback history state
 * - document-api / toolbar history surfaces that need raw editor depths
 */
export declare const readEditorHistorySnapshot: (editor: Editor) => ParticipantHistorySnapshot;
/**
 * Adapter that wraps a single editor (body, header, footer, note, …) and
 * exposes a uniform snapshot/undo/redo surface for the coordinator.
 */
export declare class EditorHistorySnapshotAdapter implements HistorySnapshotAdapter {
    #private;
    constructor(editor: Editor);
    getSnapshot(): ParticipantHistorySnapshot;
    undo(): boolean;
    redo(): boolean;
    consumePendingChangeKind(): ParticipantHistoryChangeKind;
    /**
     * Subscribe to history-relevant changes on this editor.
     *
     * We listen to the `transaction` event because both PM's history plugin and
     * Yjs's `yUndoPlugin` update their stacks synchronously within the
     * transaction that triggered them — reading depths in the handler sees the
     * post-change values.
     */
    subscribe(onChange: () => void): () => void;
}
//# sourceMappingURL=editor-history-snapshot-adapter.d.ts.map