import type { BindableValue, SQLLiteValue } from "./schema.js"; export type SQLite = { create: (directory?: string) => Promise | Database; }; export type Database = { exec: (sql: string) => Promise | any; prepare: (sql: string, id?: string) => Promise | Statement; prepareMany?: (statements: { sql: string; id: string; }[]) => Promise | Statement[]; close: () => Promise | any; drop: () => Promise | any; open(): Promise | any; statements: { get: (id: string) => Statement | undefined; size: number; }; status: () => Promise<"open" | "closed"> | "open" | "closed"; }; export type StatementGetResult = { [key: string]: SQLLiteValue; } | undefined; export type Statement = { id: string; bind: (values: BindableValue[], err?: (err: any) => any) => Promise | Statement; finalize?: (err?: (err: any) => any) => Promise | void; get: (values?: BindableValue[], err?: (err: any, row: any) => any) => Promise | StatementGetResult; run: (values: BindableValue[], err?: (err: any) => any) => Promise | void; reset?: (err?: (err: any) => any) => Promise | Statement; all: (values: BindableValue[], err?: (err: any, rows: any[]) => any) => Promise | any; }; //# sourceMappingURL=types.d.ts.map