import type { CreateHandlerOptions } from "../types.js";
export declare function createMainThreadHandlers(handlerOptions: CreateHandlerOptions, onError?: (error: Error, isPanic: boolean) => void): {
    onError: (_id: string, error: unknown, context?: {
        route?: string;
        context?: string;
    }) => void;
    onData: (_id: string, _data: Uint8Array) => void;
    onEnd: (_id: string) => void;
    onPostpone: (_id: string, _reason: string) => void;
};
//# sourceMappingURL=createMainThreadHandlers.d.ts.map