import type { WorkerChildParentInterface } from '../index.js';
export declare class WorkerChild implements WorkerChildParentInterface {
    private messageCallback?;
    private errorCallback?;
    private proc;
    constructor(proc?: NodeJS.Process);
    send(data: string): void;
    onMessageHandler(callback: (response: string) => void): void;
    onErrorHandler(callback: (error: any) => void): void;
    terminate(): void;
}
