import type { MetricsReader } from "./sqlite.js"; export interface D1RestOptions { accountId: string; databaseId: string; /** A Cloudflare API token with D1 read on the database. */ token: string; fetch?: typeof fetch; } /** * A D1 database read over Cloudflare's REST API, for a process that has no binding * (a Next server, a CLI). A reader only: one REST call cannot transact, so writes stay * with `metrics/d1` inside the Worker that owns the binding. */ export declare function d1RestReader(options: D1RestOptions): MetricsReader; //# sourceMappingURL=d1-rest.d.ts.map