export interface NativeDurableRecord { id: string; revision: number; created_at: string; } export interface NativeRecordRepository { load(id: string): T | undefined; list(): T[]; scanForReconciliation(): { tasks: T[]; errors: { id: string; error_code: string; }[]; }; save(record: T, expectedRevision: number | null): T; withLock(id: string, operation: () => R): R; } /** Native task and response ledgers share atomic writes, private paths and CAS. */ export declare function createNativeRecordRepository(options: { storeDir: string; directory: string; prefix: string; acquire(lockPath: string): () => void; assert(value: unknown): asserts value is T; assertUpdate(previous: T, next: T): void; }): NativeRecordRepository;