declare module "sql.js" { export interface SqlJsStatement { bind(values: unknown[]): void; step(): boolean; getAsObject(): Record; free(): void; } export interface SqlJsResult { columns: string[]; values: unknown[][]; } export interface SqlJsDatabase { prepare(sql: string): SqlJsStatement; run(sql: string): void; exec(sql: string): SqlJsResult[]; export(): Uint8Array; close(): void; getRowsModified(): number; } export interface SqlJsStatic { Database: new (data?: Uint8Array) => SqlJsDatabase; } export interface SqlJsInitOptions { locateFile?: (fileName: string) => string; } export default function initSqlJs(options?: SqlJsInitOptions): Promise; }