import * as lancedb from "@lancedb/lancedb"; import type { FileRecord } from "../types.js"; /** * Opens (or creates) a LanceDB database at the given path. * Also ensures the _meta table exists with a schema_version row. */ export declare function createDatabase(dbPath: string): Promise; /** * Returns the files table, creating it (empty) if it doesn't exist. * Migrates the schema if needed (e.g. adds display_name/digest columns). * When wsPath is provided, migrates matching legacy sidecars into DB columns. */ export declare function getFilesTable(db: lancedb.Connection, wsPath?: string): Promise; /** * Insert a single file record into the files table. */ export declare function insertFileRecord(table: lancedb.Table, record: Record): Promise; /** * Convert a raw LanceDB row into a FileRecord. * Handles Arrow vector arrays -> Float32Array conversion. */ export declare function toFileRecord(raw: Record): FileRecord; /** * Query all non-deleted file records from the table. */ export declare function queryFiles(table: lancedb.Table): Promise; //# sourceMappingURL=db.d.ts.map