import type { OutputChunk } from 'rollup';
import type { ResolvedConfig } from '../config';
import type { Plugin } from '../plugin';
export declare type WorkerType = 'classic' | 'module' | 'ignore';
export declare const WORKER_FILE_ID = "worker_file";
export declare function bundleWorkerEntry(config: ResolvedConfig, id: string, query: Record<string, string> | null): Promise<OutputChunk>;
export declare const workerAssetUrlRE: RegExp;
export declare function workerFileToUrl(config: ResolvedConfig, id: string, query: Record<string, string> | null): Promise<string>;
export declare function webWorkerPlugin(config: ResolvedConfig): Plugin;
