/** * Pauses a runtime's wall-clock program deadline while host calls that wait * for a person (`executor.humanWaitRefs`) are in flight. Guest work before and * after the wait spends the same budget; the wait itself does not. Cancellation * is unaffected because it never goes through the deadline. */ export interface PausableDeadlineClock { /** Milliseconds left before the running deadline expires. */ remainingMs(): number; /** Stop the deadline timer and treat the deadline as unbounded. */ suspend(): void; /** Restart the deadline with this budget, measured from now. */ resume(remainingMs: number): void; } export declare class HumanWaitDeadlinePause { #private; constructor(clock: PausableDeadlineClock); get paused(): boolean; /** A human-wait call started. The first one suspends the deadline. */ enter(): void; /** A human-wait call settled. The last one resumes the saved budget. */ leave(): void; /** Pause for the duration of one host-side wait, such as an approval prompt. */ run(wait: () => Promise): Promise; /** While paused, a host-call floor raises the budget left after the wait. */ raise(floorMs: number): void; } //# sourceMappingURL=deadline-pause.d.ts.map