import { dispatchEvent } from "../../events";
export interface WorkerStartOptions {
    id?: string;
    url: string;
    listen?: {
        hostname?: string;
        port?: number | string;
        origin?: string;
    };
}
export declare function start(options?: WorkerStartOptions): Promise<() => Promise<void>>;
export declare function listen({ id: serviceWorkerId, listen: { port, hostname, origin } }: WorkerStartOptions, dispatch?: typeof dispatchEvent): Promise<() => Promise<void>>;
