import type { UiMcpOperationInfo } from '@histoire/shared';
import type { OperationRecord } from './types.js';
/** Bounded UI history; private operation authority never leaves this adapter. */
export declare function createMcpOperationObserver(clientIdForPrincipal?: (principal: string) => string): {
    assertCapacity: (record: OperationRecord<unknown>) => void;
    publish: (record: OperationRecord<unknown>) => void;
    /** Return independent DTOs so one consumer cannot corrupt another snapshot. */
    snapshot: () => UiMcpOperationInfo[];
    /** Observe only safe lifecycle projections; caller owns its subscription. */
    onOperationChange(listener: (operation: UiMcpOperationInfo) => void): () => void;
    /** Drop stale running states with their captured generation. */
    discard(epoch?: string): void;
};
//# sourceMappingURL=observer.d.ts.map