export interface WranglerExecuteOptions { binding: string; remote: boolean; command: string; configPath: string | undefined; } export declare function buildWranglerExecuteArgs(opts: WranglerExecuteOptions): string[]; /** * Run wrangler with the given args; return stdout. Stderr is included in the * error message when wrangler exits non-zero. `cwd` is the directory wrangler * runs in (defaults to process.cwd() — caller should pass the project root). */ export type WranglerRunner = (args: string[], cwd: string) => Promise<{ stdout: string; stderr: string; }>; export declare const defaultWranglerRunner: WranglerRunner; /** * #225 footgun guard — true when a `file:`-scheme DB URL's path falls inside * wrangler's LOCAL D1 state directory (`.wrangler/state/**\/d1/**`, e.g. * `.wrangler/state/v3/d1/miniflare-D1DatabaseObject/.sqlite`). * * `meta verify --db` pointed at that file RUNS — it's an ordinary sqlite file — * and reports "schema in sync", but it verified the LOCAL shadow database, not * the deployed one. That is a false green on exactly the failure mode D1 * adopters care about most (local↔remote divergence). Used only to WARN (see * the call site in `verify.ts`) — never to redirect: making the local file a * convenient default is exactly the confusion #225 rejected. */ export declare function isWranglerLocalD1StatePath(dbUrl: string): boolean; //# sourceMappingURL=wrangler.d.ts.map