export type ToolHistoryRequestSettlement = { readonly status: "fulfilled"; readonly value: T; } | { readonly status: "rejected"; readonly error: unknown; }; export type ToolHistoryForegroundSettlement = { readonly status: "settled"; readonly settlement: ToolHistoryRequestSettlement; } | { readonly status: "deferred"; }; type TrackedSettlement = Promise>; /** * Tracks accepted lifecycle requests after the foreground stream wait ends. * The class is internal: persistence receipts remain the package boundary. */ export declare class ToolHistoryPersistenceCoordinator { private readonly foregroundCeilingMs; private readonly byRun; private readonly all; constructor(foregroundCeilingMs: number); track(runKey: string, completion: Promise, onSettled?: (settlement: ToolHistoryRequestSettlement) => void): Promise>; boundaryForRun(runKey: string): readonly TrackedSettlement[]; boundaryForAll(): readonly TrackedSettlement[]; pendingForRun(runKey: string): number; waitForBoundary(boundary: readonly Promise[], timeoutMs: number): Promise; } export {}; //# sourceMappingURL=tool-history-persistence-coordinator.d.ts.map