import * as d1 from "@distilled.cloud/cloudflare/d1"; import * as Effect from "effect/Effect"; export interface ImportDatabaseOptions { accountId: string; databaseId: string; sqlData: string | Uint8Array; filename?: string; } export interface ImportDatabaseResult { filename: string; numQueries: number; } /** * Import SQL into a D1 database via the multi-step Cloudflare flow: * 1. POST `action: "init"` -> returns presigned `upload_url` * 2. PUT raw SQL to `upload_url` * 3. POST `action: "ingest"` -> returns `at_bookmark` * 4. POST `action: "poll"` until `status === "complete"` */ export declare const importD1Database: (options: ImportDatabaseOptions) => Effect.Effect; //# sourceMappingURL=ImportDatabase.d.ts.map