/** * cli-rvf.ts - RVF migration and rebuild CLI commands * * Two commands: * rvf-migrate — Convert existing rvlite data to RVF format * rvf-rebuild — Reconstruct metadata from an RVF file * * Usage (via the rvlite CLI binary or directly): * rvlite rvf-migrate --source .rvlite/db.json --dest data.rvf [--dry-run] [--verify] * rvlite rvf-rebuild --source data.rvf [--dest .rvlite/db.json] */ /** Summary report returned by migrate / rebuild. */ export interface MigrateReport { vectorsMigrated: number; triplesMigrated: number; graphNodesMigrated: number; graphEdgesMigrated: number; skipped: boolean; dryRun: boolean; verifyPassed?: boolean; } export interface RebuildReport { vectorsRecovered: number; triplesRecovered: number; graphNodesRecovered: number; graphEdgesRecovered: number; } /** * Convert an existing rvlite JSON database into an RVF file. * * @param sourcePath - Path to the rvlite JSON database (e.g., .rvlite/db.json). * @param destPath - Destination path for the RVF file. * @param options - Migration options. * @returns A report summarising the migration. */ export declare function rvfMigrate(sourcePath: string, destPath: string, options?: { dryRun?: boolean; verify?: boolean; }): Promise; /** * Reconstruct metadata from an RVF file. * * Reads the RVF envelope, extracts vectors, and rebuilds * SQL / Cypher / SPARQL metadata from vector metadata fields. * * @param sourcePath - Path to the RVF file. * @param destPath - Optional destination for the rebuilt JSON state. * @returns A report summarising the recovered data. */ export declare function rvfRebuild(sourcePath: string, destPath?: string): Promise; /** * Register rvf-migrate and rvf-rebuild commands on a Commander program * instance. This allows the main rvlite CLI to integrate these commands * without duplicating code. */ export declare function registerRvfCommands(program: any): void; //# sourceMappingURL=cli-rvf.d.ts.map