import type { HistoireRuntimeSnapshot } from '@histoire/protocol'; import { HistoireSdkError } from '@histoire/protocol'; /** Each selected actor owns its readiness promise and deadline, including reused documents. */ export declare function createRuntimeReadiness(timeout: number, failed: (error: HistoireSdkError) => void): { retire: (message: string) => void; /** Reserve before requesting selection, so synchronously published replies are owned. */ reset(retainPending?: boolean): void; /** Current actor readiness; never captured by another selection. */ readonly promise: Promise; /** Actual framework readiness admits runtime operations. */ ready(runtime: HistoireRuntimeSnapshot): void; /** Failed runtime settles promptly without leaving a deadline active. */ fail(error: unknown): void; };