/// <reference types="node" />
import { DurableServiceWorkerRegistration } from "./container";
import "../../fetch/dispatch";
import { DurableEventData } from "../../data";
import { MessagePort as NodeMessagePort, MessageChannel as NodeMessageChannel } from "node:worker_threads";
import { Config, Service } from "./configure/types";
export interface ServiceWorkerWorkerData {
    serviceWorkerId: string;
    event?: DurableEventData;
    port?: NodeMessagePort;
    channel?: NodeMessageChannel;
    context?: Record<string, unknown[]>;
    config?: Config;
    service?: Service;
}
export declare function onServiceWorkerWorkerData(data: ServiceWorkerWorkerData, internalBucket?: import("../../storage-buckets/internal").InternalBucket): Promise<DurableServiceWorkerRegistration>;
