export { SIGNAL_TYPE } from "./signal-constants.ts"; /** * A session-level signal ledger keyed by sessionID, independent of function * activation. Records signals emitted during a session and provides lookup * for terminating and HITL (human-in-the-loop) signals. * * Persistence mirrors the {@link FunctionRuntimeManager} pattern: * `setStoreDirectory` wires the store, `recover` hydrates from disk, * and every mutation debounce-persists. */ export declare class SessionSignalLedger { private signals; private store?; private _dirty; private _timer?; /** Set the directory used for persistence (state file path derived from it). */ setStoreDirectory(dir: string): void; /** Hydrate in-memory state from the persisted ledger file. */ recover(): void; /** * Record a signal for the given session. * * - `payload` is normalized to `null` when absent or `undefined`. * - Recording the same type again overwrites the previous entry. */ record(sessionID: string, type: string, payload?: unknown): void; /** * Return the highest-severity terminating signal for `sessionID`, or `null` * if none has been recorded. * * Severity order: escalate > revise_needed > answer. */ getTerminating(sessionID: string): { type: string; payload: unknown; } | null; /** * Return the first HITL signal recorded for `sessionID`, or `null` if * none has been recorded. * * Priority order: need_approval > blocked > need_clarification. */ getHitlSignal(sessionID: string): { type: string; payload: unknown; } | null; /** * Check whether a signal of the given `type` has been recorded for * `sessionID`. */ hasSignal(sessionID: string, type: string): boolean; /** Remove all signals recorded for `sessionID`. */ clearSession(sessionID: string): void; private _persist; /** Flush any pending debounced persist synchronously. */ flushSync(): 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. */ resetAll(): void; } /** Singleton instance of the session-level signal ledger. */ export declare const sessionSignalLedger: SessionSignalLedger; //# sourceMappingURL=session-signal-ledger.d.ts.map