import { ModelContextSnapshot, SessionModelContextResponse } from "@opengeni/contracts"; import type { Database } from "./database.js"; import { type ModelContextSnapshotContentCache } from "./session-content-blobs.js"; export declare class ModelContextSnapshotAuthorityError extends Error { readonly code = "model_context_snapshot_authority_mismatch"; constructor(); } export declare function persistModelContextSnapshot(db: Database, input: { accountId: string; workspaceId: string; sessionId: string; turnId: string; attemptId: string; executionGeneration: number; snapshot: ModelContextSnapshot; /** * One run's memo of repeated snapshot content (see * ModelContextSnapshotContentCache); results are identical without it. */ contentCache?: ModelContextSnapshotContentCache; }): Promise; export declare function getLatestSessionModelContext(db: Database, input: { accountId: string; workspaceId: string; sessionId: string; }): Promise;