import * as _vercel_build_utils0 from "@vercel/build-utils"; import { BuildOptions, BuildV2, DetectEntrypointFn, Files, PrepareCache, ShouldServe, Span, StartDevServer } from "@vercel/build-utils"; import { ParseArgsConfig } from "node:util"; //#region src/find-entrypoint.d.ts type FindEntrypointOptions = { /** * Project setting `outputDirectory`. When set, the search is exclusive to * that directory, matching the wrapper builders. */ outputDirectory?: string; }; declare const findEntrypoint: (cwd: string, options?: FindEntrypointOptions) => Promise; declare const findEntrypointOrThrow: (cwd: string, options?: FindEntrypointOptions) => Promise; /** * Normalized entrypoint detector for Node services. Wraps {@link findEntrypoint} * and returns the result in the shared {@link DetectedEntrypoint} shape consumed * by services auto-detection. */ declare const detectEntrypoint: DetectEntrypointFn; //#endregion //#region src/cervel/types.d.ts /** * Core path options derived from BuildOptions. * - workPath: the workspace/project directory (where package.json is) * - repoRootPath: the root of the monorepo/repo */ type PathOptions = Pick; /** * Options for the cervel build function. */ type CervelBuildOptions = PathOptions & { entrypoint?: string; out: string; span?: Span; }; /** * Options for the cervel serve function. */ type CervelServeOptions = Pick & { rest: Record; }; /** * Options for node file tracing. */ type NodeFileTraceOptions = PathOptions & { keepTracedPaths: boolean; outDir: string; tracedPaths: string[]; span: Span; }; //#endregion //#region src/cervel/node-file-trace.d.ts declare const nodeFileTrace: (args: NodeFileTraceOptions) => Promise; //#endregion //#region src/cervel/index.d.ts type ParseArgsOptionsConfig = NonNullable; declare const getBuildSummary: (outputDir: string) => Promise; declare const build$1: (args: CervelBuildOptions) => Promise<{ rolldownResult: { handler: string; outputDir: string; outputFiles: _vercel_build_utils0.Files; }; }>; declare const serve: (args: CervelServeOptions) => Promise; declare const srvxOptions: ParseArgsOptionsConfig; //#endregion //#region src/introspection/index.d.ts declare const introspectApp: (args: { dir: string; handler: string; framework: string | null | undefined; env: Record; span: Span; }) => Promise<{ routes: ({ handle: string; src?: undefined; dest?: undefined; transforms?: undefined; } | { src: string; dest: string; transforms: { type: "request.path"; op: "set"; args: string; }[]; handle?: undefined; })[]; framework: { slug: string; version: string; }; } | { routes: ({ src: string; dest: string; methods: string[]; } | { handle: string; src?: undefined; dest?: undefined; transforms?: undefined; } | { src: string; dest: string; transforms: { type: "request.path"; op: "set"; args: string; }[]; handle?: undefined; })[]; framework: { slug: string; version: string; }; additionalFolders: string[]; additionalDeps: string[]; }>; //#endregion //#region src/diagnostics.d.ts declare const diagnostics: _vercel_build_utils0.Diagnostics; //#endregion //#region src/start-dev-server.d.ts declare const shouldServe: ShouldServe; declare const startDevServer: StartDevServer; //#endregion //#region src/index.d.ts declare const version = 2; declare const build: BuildV2; declare const prepareCache: PrepareCache; //#endregion export { type CervelBuildOptions, type CervelServeOptions, type PathOptions, build, build$1 as cervelBuild, serve as cervelServe, detectEntrypoint, diagnostics, findEntrypoint, findEntrypointOrThrow, getBuildSummary, introspectApp, nodeFileTrace, prepareCache, shouldServe, srvxOptions, startDevServer, version };