/** Public graph/read projection for immutable context snapshots. */ import { type Result } from '@opensip-cli/core'; import type { GraphReadError } from './types.js'; import type { ContextSnapshotPayload, ContextSnapshotRecord } from '../context-snapshot-types.js'; import type { DataStore } from '@opensip-cli/datastore'; export type { ContextSnapshotAccessor, ContextSnapshotKind, ContextSnapshotPayload, ContextSnapshotRecord, ContextSnapshotSaveInput, ContextSnapshotSaveResult, } from '../context-snapshot-types.js'; /** * Exact-ID context snapshot lookup result, distinguishing eviction/missing data, * unsupported stored schema versions, and validated immutable payloads. */ export type ContextSnapshotLookup = { readonly status: 'missing'; readonly id: string; } | { readonly status: 'unsupported-version'; readonly id: string; readonly kind: string; readonly schemaVersion: number; } | { readonly status: 'available'; readonly snapshot: ContextSnapshotRecord & { readonly payload: ContextSnapshotPayload; }; }; /** Exact-ID lookup. Missing/evicted rows never rebind to latest. */ export declare function readContextSnapshot(store: DataStore, id: string): Result; //# sourceMappingURL=context-snapshot.d.ts.map