import type { createDebugBuffer, HistoireInspectionOwner } from '@histoire/protocol';
import type { observeRuntimeDiagnostics } from '@histoire/shared/inspection';
/** Trusted bridge owner includes attachment identity in addition to public source/document identity. */
type DebugBridgeOwner = HistoireInspectionOwner & {
    sessionId: string;
    connectionId: string;
    mountId: string;
    selectionVersion?: number;
};
/** Share one document observer while each authorized subscription owns its own timeline. */
export declare function createRuntimeDebug(target: Window & {
    console: Console;
}, createBuffer: typeof createDebugBuffer, observe: typeof observeRuntimeDiagnostics): {
    /** Read or stop only the caller's captured observation and document owner. */
    run(input: {
        action: 'start' | 'read' | 'stop';
        observationId: string;
        expectedOwner: HistoireInspectionOwner;
        afterSequence?: number;
    }, bridgeOwner: DebugBridgeOwner): import("@histoire/protocol").HistoireDebugPage;
    /** Revoke observations before selection or policy replacement. */
    reset(): void;
    /** Release document instrumentation and histories on retirement. */
    close(): void;
};
export {};
//# sourceMappingURL=debug-service.d.ts.map