import { BrowserPerformanceEvent } from "../lib/browserTelemetry.mjs"; import { TranscriptPage, TranscriptPageRequest } from "@agimon-ai/po-core/sessionProtocol"; import { Context } from "@earendil-works/chord/context"; //#region src/web/stores/threadStore.d.ts /** What a thread fold reads its pages through: the parent session's protocol binding. */ export interface ThreadTranscriptReader { readTranscriptPage(request: TranscriptPageRequest, context: Context): Promise; } export declare function bindThreadReader(sessionId: string, service: ThreadTranscriptReader, context: Context, record?: (event: BrowserPerformanceEvent) => void): () => void; /** SQLite children use the same cursor window and delta reducer as their parent. */ export declare function applyThreadTranscriptFrame(sessionId: string, threadId: string, frame: Record): boolean; /** Where a thread's fold lives in the session store map. */ export declare function threadStoreKey(sessionId: string, threadId: string): string; export declare function subscribeThread(sessionId: string, threadId: string): void; export declare function unsubscribeThread(sessionId: string, threadId: string): void; /** Holds taken before a socket was bound start following their thread now. */ export declare function resubscribeThreads(): void; /** A session that left takes its threads' folds and holds with it. */ export declare function dropThreads(sessionId: string): void; /** The threads currently held, for tests and diagnostics. */ export declare function heldThreads(): Array<{ sessionId: string; threadId: string; refs: number; }>; export declare function resetThreads(): void; //#endregion //# sourceMappingURL=threadStore.d.mts.map