import { type DbAdapter } from '@gobing-ai/ts-db'; import { type FileSystem, type RuntimePaths } from '@gobing-ai/ts-runtime'; import type { ImportMode, ImportResult, RedactionRule } from './types'; /** Dependencies and mode controls for importing OpenCode's SQLite history. */ export interface OpenCodeImportOptions { db: DbAdapter; sourceDatabase?: string; fileSystem?: FileSystem; paths?: RuntimePaths; mode?: ImportMode; dryRun?: boolean; redactionRules?: readonly RedactionRule[]; now?: () => Date; /** * Cooperative cancellation signal (feature A21 / ADR-112). Checked before the schema * write, between source pages, and before the single settlement batch. Work already * queued but not yet issued is discarded (the OpenCode store stays authoritative and a * later run re-reads it); a batch already in flight settles before the run rejects with * {@link ImportCancelledError}. Omitting the signal preserves existing behavior. */ signal?: AbortSignal; } /** Import OpenCode's current SQLite history store into the forensic contract tables. */ export declare function runOpenCodeImport(options: OpenCodeImportOptions): Promise; //# sourceMappingURL=opencode-importer.d.ts.map