import { type WorkerParentChildInterface } from '../index.js';
export declare function getWorkerUrl(url: URL): string;
export declare class WorkerParent implements WorkerParentChildInterface {
    private child;
    private deferedReady;
    constructor(scriptPath: URL);
    ready(): Promise<void>;
    call(data: string): Promise<void>;
    onMessageHandler(callback: (response: string) => void): void;
    onErrorHandler(callback: (error: any) => void): void;
    terminate(): void;
}
