export interface D1Binding { binding: string; database_name: string; database_id: string; migrations_dir: string | undefined; } export interface WranglerConfig { d1Bindings: D1Binding[]; } /** * Walk from `startDir` upward looking for wrangler.toml, wrangler.jsonc, or wrangler.json. * Returns the first match or undefined. Probe order: toml > jsonc > json at each level, * matching wrangler's own resolution order. */ export declare function findWranglerConfig(startDir: string): string | undefined; /** * Parse a wrangler.toml or wrangler.jsonc file. Returns extracted D1 bindings. */ export declare function parseWranglerConfig(path: string): WranglerConfig; /** * Pick a D1 binding by name. If `name` is undefined and there's exactly one * binding, return it. Otherwise throw a helpful error. */ export declare function resolveD1Binding(bindings: readonly D1Binding[], name: string | undefined): D1Binding; //# sourceMappingURL=wrangler-config.d.ts.map