export declare const WRANGLER_CONFIG_NAMES: readonly ["wrangler.json", "wrangler.jsonc", "wrangler.toml"]; export type UploadDirSource = (typeof WRANGLER_CONFIG_NAMES)[number] | "site-root"; export type UploadDirResolution = { /** Absolute path to stage and hand wrangler as the asset root. */ uploadDir: string; /** Which input decided it, so the caller logs the reason and not the value alone. */ source: UploadDirSource; /** The verbatim declared value, present only when a config decided it. */ declared?: string; }; /** Resolves the directory whose contents become the served root for `dir`. * * A tree that declares nothing keeps the site root, which is what every deploy * did before Task 1917. A tree that declares an output dir gets that dir. A * tree that declares one which cannot be resolved is an error naming the path: * falling back to the site root here is exactly the defect this closes, because * the deploy then succeeds while serving the wrong root. */ export declare function resolveUploadDir(dir: string): Promise; //# sourceMappingURL=pages-output-dir.d.ts.map