///
import { IncomingMessage, ServerResponse } from 'http';
export interface WorkerResponseHeader {
statusCode: number;
statusMessage?: string;
headers: {
[index: string]: string | string[] | undefined;
};
}
export default function withWorker(handlerPath: string, workerOpts?: {
eval?: boolean;
limit?: string;
}): (req: IncomingMessage, res: ServerResponse, opts: OptsType) => Promise;