import type { PartialContext } from '@ms-cloudpack/api-server'; import type { Request, Response } from '@ms-cloudpack/create-express-app'; /** * The function handles a worker request by either: * 1. Rewriting bare imports to use import map URLs (when rewriteWorkerImports is enabled) * 2. Shimming import maps using es-module-shims (fallback approach) * * It also adds the worker query parameter so the bundle server knows it has been handled, * while preserving other query parameters. * * It is called when the feature `enableModuleWorkers` is enabled, the worker has not been handled yet, * and the output file is a worker. * * This works even for workers that are not in the import map, as long as they are in the bundle. It also works * when the worker is requested through a blob as the request goes through the bundle server. */ export declare function handleWorker(options: { req: Request; res: Response; /** The worker file path to read */ workerFilePath?: string; }, context: PartialContext<'session', 'importMap' | 'urls' | 'config'>): Promise; //# sourceMappingURL=handleWorker.d.ts.map