import { DurableEventData, DurableResponseData } from "../../data";
import { ServiceWorkerWorkerData } from "./worker";
import { DurableFetchEventData } from "../../fetch";
export interface FetchResponseMessage {
    type: "fetch:response";
    index: number;
    response?: DurableResponseData;
    data?: Uint8Array;
}
export declare function dispatchWorkerEvent(event: DurableEventData, context: ServiceWorkerWorkerData): Promise<void | DurableEventData>;
export declare function dispatchWorkerFetchEvent(event: DurableFetchEventData, context: ServiceWorkerWorkerData): Promise<DurableEventData>;
