import { type Client } from "@libsql/client"; import { type LedgerKindName } from "./ledger-registry.js"; export declare function getLytDbPath(vaultPath: string): string; export declare function getLedgerDbPath(vaultPath: string, kindName: LedgerKindName): string; export declare function getAuditDbPath(vaultPath: string): string; export declare function getProvenanceDbPath(vaultPath: string): string; export declare function openLytDb(vaultPath: string): Promise; export declare function openLedgerDb(vaultPath: string, kindName: LedgerKindName): Promise; export declare function openAuditDb(vaultPath: string): Promise; export declare function openProvenanceDb(vaultPath: string): Promise; export declare function closeVaultDb(db: Client): Promise; export declare function initLytDb(vaultPath: string): Promise; export declare function initLedgerDb(vaultPath: string, kindName: LedgerKindName): Promise; export declare function initAuditDb(vaultPath: string): Promise; export declare function initProvenanceDb(vaultPath: string): Promise; export interface LytDbHealResult { healed: boolean; quarantinedTo: string | null; } export declare function healLytDbIfCorrupt(vaultPath: string, nowIso?: string): Promise; export declare function isCorruptDatabaseError(err: unknown): boolean; export declare class CorruptLytDbError extends Error { readonly errorCode = "corrupt-lyt-db"; readonly vaultRef: string; constructor(vaultRef: string, cause: unknown); } export declare function openLytDbActionable(vaultPath: string, vaultRef?: string): Promise; export declare function isLytDbCorrupt(vaultPath: string): Promise; export declare function renameWithRetry(from: string, to: string): Promise; export declare function initVaultDbs(vaultPath: string): Promise; //# sourceMappingURL=vault-db.d.ts.map