import { ResolvedConfig } from "@trigger.dev/core/v3/build"; import { BuildManifest, BuildTarget } from "@trigger.dev/core/v3/schemas"; import { BundleResult } from "./bundle.js"; export type BuildWorkerEventListener = { onBundleStart?: () => void; onBundleComplete?: (result: BundleResult) => void; }; export type BuildWorkerOptions = { destination: string; target: BuildTarget; environment: string; branch?: string; resolvedConfig: ResolvedConfig; listener?: BuildWorkerEventListener; envVars?: Record; rewritePaths?: boolean; forcedExternals?: string[]; plain?: boolean; }; export declare function buildWorker(options: BuildWorkerOptions): Promise<{ runtime: "node" | "node-22" | "bun"; environment: string; config: { project: string; dirs: string[]; }; contentHash: string; packageVersion: string; cliPackageVersion: string; deploy: { env?: Record | undefined; sync?: { env?: Record | undefined; parentEnv?: Record | undefined; } | undefined; }; target: "dev" | "deploy" | "unmanaged"; files: { out: string; entry: string; }[]; sources: Record; outputPath: string; runWorkerEntryPoint: string; indexWorkerEntryPoint: string; configPath: string; build: { env?: Record | undefined; commands?: string[] | undefined; }; image?: { pkgs?: string[] | undefined; instructions?: string[] | undefined; } | undefined; branch?: string | undefined; runControllerEntryPoint?: string | undefined; indexControllerEntryPoint?: string | undefined; loaderEntryPoint?: string | undefined; initEntryPoint?: string | undefined; externals?: { name: string; version: string; }[] | undefined; customConditions?: string[] | undefined; otelImportHook?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; outputHashes?: Record | undefined; }>; export declare function rewriteBuildManifestPaths(buildManifest: BuildManifest, destinationDir: string): BuildManifest;