export declare const WORKFLOW_STEP_EXTERNAL_PACKAGES: readonly ["@mongodb-js/zstd", "node-liblzma"];
/**
 * Packages that must stay external during the initial workflow builder
 * pass so `node:*` transitive dependencies do not fail the workflow VM check.
 * Nitro performs the final bundling/tracing pass for hosted output.
 */
export declare const WORKFLOW_BUILDER_DEFERRED_PACKAGES: readonly ["@chat-adapter/slack", "chat"];
/**
 * Builds the environment block every generated Vercel workflow function needs.
 */
export declare function createWorkflowFunctionEnvironment(environment?: unknown): Record<string, unknown>;
/**
 * Creates an empty staging directory for one emitted Vercel function.
 */
export declare function prepareVercelFunctionDirectory(path: string): Promise<void>;
/**
 * Copies a Nitro-bundled Vercel function directory into one standalone
 * workflow function directory.
 *
 * Nitro may emit route functions as symlinks back to `__server.func`. This
 * helper dereferences the source path first, then copies concrete files so the
 * generated workflow functions do not rely on symlinks.
 */
export declare function copyNitroFunctionDirectory(input: {
    fallbackPath: string;
    sourcePath: string;
    targetPath: string;
}): Promise<void>;
/**
 * Keeps only Eve-owned Vercel function output and rewrites Eve route function
 * symlinks to a shared Eve-owned server function.
 *
 * Nitro emits generic app routes such as `index.func -> ./__server.func` for
 * Eve's standalone landing page. In a multi-service Next.js deployment those
 * root aliases collide with Next's own functions. The Next integration only
 * proxies Eve's `/eve/v1/**` transport routes, so Vercel output should expose
 * those route functions and workflow trigger functions, not Eve's root page.
 *
 * Nitro also dedupes every route function through `__server.func`. Preserve
 * that model by copying the shared target once into the Eve-owned tree and
 * repointing Eve route aliases at it before pruning the root target.
 */
export declare function normalizeEveVercelFunctionOutput(outputDir: string, options?: {
    readonly servicePrefix?: string;
}): Promise<void>;
/**
 * Bundles one package-owned workflow handler into a standalone Vercel function
 * directory without inheriting Nitro's hosted server chunks.
 */
export declare function emitBundledWorkflowFunctionDirectory(input: {
    bundlePath: string;
    pluginPaths?: readonly string[];
    targetPath: string;
}): Promise<void>;
/**
 * Rewrites one copied Nitro function directory so its handler always dispatches
 * to a concrete workflow route path.
 *
 * Queue-triggered workflow functions do not guarantee a request URL that
 * matches Nitro's original route table. This helper keeps Nitro's traced
 * output intact but swaps the entrypoint with a small URL-rewriting adapter.
 */
export declare function retargetNitroFunctionDirectoryToWorkflowRoute(input: {
    functionDirectoryPath: string;
    workflowRoutePath: string;
}): Promise<void>;
