import { AsyncDatabase } from '../core/Database.js'; import type { AsyncDriver, AsyncStatement, BatchedQuery, PrepareOptions } from '../core/Driver.js'; type Client = D1Database; declare class PreparedStatement implements AsyncStatement { private stmt; private isSelection; constructor(stmt: D1PreparedStatement, isSelection: boolean); all(params: Array): Promise>; run(params: Array): Promise; get(params: Array): Promise; values(params: Array): Promise>>; free(): void; } export declare class D1Driver implements AsyncDriver { private client; parsesJson: boolean; supportsTransactions: boolean; constructor(client: Client); exec(query: string): Promise; prepare(sql: string, options: PrepareOptions): PreparedStatement; close(): Promise; batch(queries: Array): Promise>>; transaction(): Promise; } export declare function connect(client: Client): AsyncDatabase<'sqlite'>; export {};