declare const JsonSocket_base: typeof import("eventemitter3").EventEmitter;
export default class JsonSocket extends JsonSocket_base {
    /**
     * Runs constructor.
     * @param {import("net").Socket} socket - Socket instance.
     */
    constructor(socket: import("net").Socket);
    socket: import("node:net").Socket;
    /**
     * Narrows the runtime value to the documented type.
      @type {string | undefined} */
    workerId: string | undefined;
    /**
     * Narrows the runtime value to the documented type.
      @type {boolean} */
    acceptsSpawnedJobs: boolean;
    /**
     * Narrows the runtime value to the documented type.
      @type {boolean} */
    acceptsForkedJobs: boolean;
    /**
     * Narrows the runtime value to the documented type.
      @type {boolean} */
    acceptsInlineJobs: boolean;
    buffer: string;
    /**
     * Runs on data.
     * @param {string} chunk - Data chunk.
     * @returns {void}
     */
    _onData(chunk: string): void;
    /**
     * Runs send.
     * @param {?} message - Message to send.
     * @returns {void}
     */
    send(message: unknown): void;
    /**
     * Runs close.
     * @returns {void}
     */
    close(): void;
}
export {};
//# sourceMappingURL=json-socket.d.ts.map