/** A prepared statement bound with `$`-prefixed named parameters. */ export interface PortableStatement { run(params?: Record): void; all(params?: Record): T[]; get(params?: Record): T | undefined; } /** A synchronous embedded SQLite handle, uniform across Bun and Node. */ export interface PortableDatabase { exec(sql: string): void; prepare(sql: string): PortableStatement; /** Wrap `fn` so the statements it runs commit as one transaction. */ transaction(fn: (...args: A) => void): (...args: A) => void; close(): void; } export interface OpenSqliteOptions { /** Open read-only. The database file must already exist. */ readonly?: boolean; } /** * Open an embedded SQLite database using the runtime's native driver — * `bun:sqlite` under Bun, `node:sqlite` under Node 22.5+. */ export declare function openSqlite(path: string, opts?: OpenSqliteOptions): PortableDatabase; //# sourceMappingURL=sqlite-runtime.d.ts.map