import type { Database } from "bun:sqlite"; export interface SqlitePathCandidate { sqlitePath: string; subPath: string; queryString: string; } export type SqliteSelector = { kind: "list"; } | { kind: "schema"; table: string; sampleLimit: number; } | { kind: "row"; table: string; key: string; } | { kind: "query"; table: string; limit: number; offset: number; order?: string; where?: string; } | { kind: "raw"; sql: string; }; export type SqliteRowLookup = { kind: "pk"; column: string; type: string; } | { kind: "rowid"; }; export declare function parseSqlitePathCandidates(filePath: string): SqlitePathCandidate[]; export declare function isSqliteFile(absolutePath: string): Promise; export declare function parseSqliteSelector(subPath: string, queryString: string): SqliteSelector; export declare function listTables(db: Database): { name: string; rowCount: number; }[]; export declare function getTableSchema(db: Database, table: string): string; export declare function getTablePrimaryKey(db: Database, table: string): { column: string; type: string; } | null; export declare function resolveTableRowLookup(db: Database, table: string): SqliteRowLookup; export declare function queryRows(db: Database, table: string, opts: { limit: number; offset: number; order?: string; where?: string; }): { columns: string[]; rows: Record[]; totalCount: number; }; export declare function getRowByKey(db: Database, table: string, pk: { column: string; type?: string; }, key: string): Record | null; export declare function getRowByRowId(db: Database, table: string, key: string): Record | null; export declare function executeReadQuery(db: Database, sql: string): { columns: string[]; rows: Record[]; }; export declare function insertRow(db: Database, table: string, data: Record): void; export declare function updateRowByKey(db: Database, table: string, pk: { column: string; type?: string; }, key: string, data: Record): number; export declare function updateRowByRowId(db: Database, table: string, key: string, data: Record): number; export declare function deleteRowByKey(db: Database, table: string, pk: { column: string; type?: string; }, key: string): number; export declare function deleteRowByRowId(db: Database, table: string, key: string): number; export declare function renderTableList(tables: { name: string; rowCount: number; }[]): string; export declare function renderSchema(createSql: string, sampleRows: { columns: string[]; rows: Record[]; }): string; export declare function renderRow(row: Record): string; export declare function renderTable(columns: string[], rows: Record[], meta: { totalCount: number; offset: number; limit: number; table: string; dbPath: string; }): string;