import { MessagePort } from "node:worker_threads";
/**
 * Abstract class representing a recipient that can handle method invocations
 * received via StatefulProxyManager. This class is designed to work with Node.js
 * worker threads.
 *
 * @abstract StatefulRecipient
 */
export declare abstract class StatefulRecipient {
    private shouldActivateMessagePort;
    private readonly messagePort;
    private readonly methodNameSet;
    constructor(shouldActivateMessagePort?: boolean, messagePort?: MessagePort);
    private receiveCommands;
    [Symbol.asyncDispose](): Promise<void>;
}
