export type ContinuationEntry = { conversationId: string; messageId: string; model: string; sessionId?: string; createdAt: number; }; export type ContinuationExpectation = { sessionId?: string; }; export declare function putContinuation(responseId: string, entry: Omit): void; /** * Look up a continuation entry. Entries expire after a TTL (default 6h, * override CHATGPT_WEB_CONTINUATION_TTL_MS) and are validated against the * requesting session when both sides carry a session id — a response id from * one OpenCode session must not resume another session's ChatGPT conversation. * Model switches are allowed: ChatGPT web supports changing models within a * conversation and OpenCode sessions can switch models mid-thread. */ export declare function getContinuation(responseId: string, expect?: ContinuationExpectation): ContinuationEntry | undefined; export declare function clearContinuation(responseId: string): void; export declare function clearContinuationsForSession(sessionId: string): void; export declare function clearAllContinuations(): void; /** Testing helper */ export declare function continuationSize(): number; //# sourceMappingURL=continuation.d.ts.map