import type { RuntimeEventBus } from '../events/index.js';
import type { RuntimeStore } from '../store/index.js';
export interface OpsRuntimeContextConfig {
    runtimeBus: RuntimeEventBus;
    store: RuntimeStore;
    recoveryFilePath: string;
    lastSessionPointerPath: string;
    now?: (() => number) | undefined;
}
export interface OpsRuntimeContextState {
    runtimeBus: RuntimeEventBus;
    store: RuntimeStore;
    recoveryFilePath: string;
    lastSessionPointerPath: string;
    now: () => number;
    lastEventAt: number;
    sessionRecoveryFailedAt?: number | undefined;
    sessionRecoveryFailedCount: number;
    detach: () => void;
}
export declare function withOpsRuntimeContext<T>(config: OpsRuntimeContextConfig, fn: () => Promise<T> | T): Promise<T>;
export declare function readRecoveryFileMetadata(path: string): {
    ok: boolean;
    summary: string;
};
//# sourceMappingURL=runtime-context.d.ts.map