import { BuildManifest, ServerBackgroundWorker, WorkerManifest } from "@trigger.dev/core/v3";
import type { Metafile } from "esbuild";
export type BackgroundWorkerOptions = {
    env: Record<string, string>;
    cwd: string;
    stop: () => void;
};
export declare class BackgroundWorker {
    build: BuildManifest;
    metafile: Metafile;
    params: BackgroundWorkerOptions;
    deprecated: boolean;
    manifest: WorkerManifest | undefined;
    serverWorker: ServerBackgroundWorker | undefined;
    constructor(build: BuildManifest, metafile: Metafile, params: BackgroundWorkerOptions);
    deprecate(): void;
    get workerManifestPath(): string;
    get buildManifestPath(): string;
    stop(): void;
    initialize(): Promise<void>;
}
