import type { InferSchema } from "../../../src/extensions/schema/index.js"; import type { ParsedArgs } from "../../shared/types.js"; /** * Schema factory for build command arguments */ export declare const getBuildArgsSchema: () => import("../../../src/internal-agents/schema.js").Schema; preset: import("../../../src/internal-agents/schema.js").Schema; split: import("../../../src/internal-agents/schema.js").Schema; noSplit: import("../../../src/internal-agents/schema.js").Schema; compress: import("../../../src/internal-agents/schema.js").Schema; noCompress: import("../../../src/internal-agents/schema.js").Schema; prefetch: import("../../../src/internal-agents/schema.js").Schema; ssg: import("../../../src/internal-agents/schema.js").Schema; noSsg: import("../../../src/internal-agents/schema.js").Schema; include: import("../../../src/internal-agents/schema.js").Schema; exclude: import("../../../src/internal-agents/schema.js").Schema; dryRun: import("../../../src/internal-agents/schema.js").Schema; }>>; export declare const BuildArgsSchema: import("../../../src/internal-agents/schema.js").Schema; preset: import("../../../src/internal-agents/schema.js").Schema; split: import("../../../src/internal-agents/schema.js").Schema; noSplit: import("../../../src/internal-agents/schema.js").Schema; compress: import("../../../src/internal-agents/schema.js").Schema; noCompress: import("../../../src/internal-agents/schema.js").Schema; prefetch: import("../../../src/internal-agents/schema.js").Schema; ssg: import("../../../src/internal-agents/schema.js").Schema; noSsg: import("../../../src/internal-agents/schema.js").Schema; include: import("../../../src/internal-agents/schema.js").Schema; exclude: import("../../../src/internal-agents/schema.js").Schema; dryRun: import("../../../src/internal-agents/schema.js").Schema; }>>; /** * Build command options (inferred from schema) */ export type BuildOptions = InferSchema>; /** * Parse CLI arguments into validated BuildOptions */ export declare const parseBuildArgs: (args: ParsedArgs) => import("../../shared/args.js").SafeParseResult; preset: import("../../../src/internal-agents/schema.js").Schema; split: import("../../../src/internal-agents/schema.js").Schema; noSplit: import("../../../src/internal-agents/schema.js").Schema; compress: import("../../../src/internal-agents/schema.js").Schema; noCompress: import("../../../src/internal-agents/schema.js").Schema; prefetch: import("../../../src/internal-agents/schema.js").Schema; ssg: import("../../../src/internal-agents/schema.js").Schema; noSsg: import("../../../src/internal-agents/schema.js").Schema; include: import("../../../src/internal-agents/schema.js").Schema; exclude: import("../../../src/internal-agents/schema.js").Schema; dryRun: import("../../../src/internal-agents/schema.js").Schema; }>>; /** * Refuse an embedded build that was given a flag the preset cannot honour. * * Reads `__explicit` from the *raw* args rather than the parsed options on * purpose. The schema defaults `split`, `compress` and `prefetch` to `true` * and `dryRun`, `noSplit`, `noCompress` and `noSsg` to `false`, so the parsed * object cannot tell a typed flag from a default — keying off it would reject * every embedded build, including a bare one. * * The message starts with `Invalid ` so the router maps it to exit code 2 as a * usage error, matching `parseArgsOrThrow`. * * @param args raw parsed argv, carrying `__explicit` * @param preset the lowercased `--preset` value, if any * @internal */ export declare function assertEmbeddedPresetFlags(args: ParsedArgs, preset: string | undefined): void; export declare function handleBuildCommand(args: ParsedArgs): Promise; /** * Total bytes of the artifacts the embedded manifest declares. * * The production build reports the size of what it emitted, so the embedded * preset reports the same thing rather than leaving the field at zero. The * manifest is the artifact list, so it cannot drift from what was written. * A missing file is skipped because `buildEmbeddedPreset` only warns when an * RSC bundle or route fails. Other filesystem errors still fail the build so * JSON output cannot report a partial size as a successful result. * * @internal */ export declare function sumEmbeddedOutputSize(outDir: string, manifest: { routes: ReadonlyArray<{ file: string; }>; assets: ReadonlyArray<{ file: string; }>; }, fileSystem?: { stat(path: string): Promise<{ size: number; }>; }): Promise; /** @internal */ export declare function countEmbeddedPages(manifest: { routes: ReadonlyArray<{ type: string; file: string; }>; }, pagesIndexIsShell: boolean): number; //# sourceMappingURL=handler.d.ts.map