/** One column value of a SQLite record, as stored. */ export type SqliteValue = null | bigint | number | string | Uint8Array; /** * Read-only access to the rowid tables of one SQLite database image, per the * documented file format (https://www.sqlite.org/fileformat2.html). Pure and * synchronous: it walks table b-trees and overflow chains in a byte view and * never consults a write-ahead log, so the caller must supply a checkpointed * image. * * Hand-written on purpose: Bun (probed 1.3.14) has no `node:sqlite`, and this * layer's purity gate forbids `node:` imports. A runtime binding would also * fork the snapshot framing path by runtime. Cross-checked against * `node:sqlite`; see docs/transcript-evidence.md. */ export declare class SqliteImage { private readonly bytes; private readonly view; private readonly pageSize; private readonly usable; private readonly pageCount; private readonly decoder; constructor(bytes: Uint8Array); /** The schema rows of every table: name, root page and creating SQL. */ tables(): { readonly name: string; readonly rootPage: number; readonly sql: string; }[]; /** Every record of a rowid table in rowid order. */ rows(rootPage: number): SqliteValue[][]; private varint; /** A table leaf cell's payload, following its overflow chain. */ private payload; } //# sourceMappingURL=sqlite.d.ts.map