export interface FnState { phase: "active" | "gated" | "complete"; activatedAtTurn: number; currentTurn: number; evidenceObserved: Record; toolsObserved: string[]; continuationCount: number; cooldownUntilTurn: number; gateSatisfied: boolean; kv: Record; schemaVersion: number; /** Date.now() ms when phase was gated via signal(type="blocked"). */ blockedAt?: number; /** Wall-clock timeout in ms for blocked gating (default 120_000 = 2 min). */ blockedTimeoutMs?: number; } export declare class FunctionRuntimeManager { private states; private store?; private _dirty; private _timer?; setStoreDirectory(dir: string): void; init(sessionID: string, fn: string, schemaVersion: number): FnState; get(sessionID: string, fn: string): FnState | undefined; all(sessionID: string): Map; markDirty(): void; clearSession(sessionID: string): void; private _persist; flushSync(): void; recover(): void; /** * Clear all in-memory state without creating a new instance. * Used by state-registry reset to avoid split-brain (multiple instances). * Does NOT persist the empty state — caller re-initializes as needed via init(). */ resetAll(): void; } export declare const functionRuntime: FunctionRuntimeManager; //# sourceMappingURL=runtime-state.d.ts.map