import type { NolRegisteredVariant, NolVariantActionScope, NolVariantBindingHistory, NolVariantBindingIntent, NolVariantBindingOperation, NolVariantBindingState, NolVariantBindingTarget, NolVariantSelection, NolVariantSelectionStore, NolVariantReconciliation } from "../_types/orchestrator/nol/variant-registry.js"; export interface NolSqliteVariantStoreLimits { maxMetadataBytes: number; /** UTF8 JSON payloads plus durable pending-finalization allowances, not SQLite page/WAL/index/RSS overhead. */ maxTotalMetadataBytes: number; maxRegistrations: number; maxTargets: number; maxOperationsPerTarget: number; maxHistoryPerTarget: number; } /** Independent metadata registry. It never edits runtime configuration, selects * a production model, reads CAS/model bytes, starts a worker or discovers GPUs. * Native SQLite is loaded only by explicit construction. */ export declare class SqliteNolVariantStore implements NolVariantSelectionStore { private readonly db; private readonly limits; private closed; constructor(options: { databasePath: string; limits: NolSqliteVariantStoreLimits; now?: () => number; }); private readonly now; close(): void; private check; private json; private decode; private usedMetadata; private transaction; private count; private saveTarget; private saveOperation; private useAllowance; private append; register(input: Omit): NolRegisteredVariant; getRegistration(variantDigest: string): NolRegisteredVariant | null; createTarget(target: NolVariantBindingTarget): NolVariantBindingState; getTarget(projectId: string, targetIdValue: string): NolVariantBindingState | null; getOperation(projectId: string, targetIdValue: string, operationId: string): NolVariantBindingOperation | null; history(projectId: string, targetIdValue: string): NolVariantBindingHistory[]; previousSelection(projectId: string, targetIdValue: string): NolVariantSelection | null | undefined; getReconciliation(projectId: string, targetIdValue: string, reconciliationId: string): NolVariantReconciliation | null; reconcile(input: Parameters[0], guard: () => void): NolVariantReconciliation; reserve(intent: NolVariantBindingIntent, guard: () => void): { operation: NolVariantBindingOperation; created: boolean; }; private current; startBridge(operation: NolVariantBindingOperation, guard: () => void): NolVariantBindingOperation; settle(operation: NolVariantBindingOperation, outcome: "applied" | "not_applied" | "unknown", proof: NolVariantBindingOperation["proof"], guard: () => void): NolVariantBindingOperation; revoke(scope: NolVariantActionScope, guard: () => void): NolVariantBindingOperation; }