import type { Envelope } from '@devvit/protos/types/devvit/runtime/envelope.js';
import type { EnvelopeDispatcher } from './dispatcher/EnvelopeDispatcher.js';
import type { EnvelopeEvent, EnvelopePort } from './EnvelopePort.js';
import type { EnvelopeRecipient } from './EnvelopeRecipient.js';
/** Integrates with and names an EnvelopePort. */
export declare class PortEnvelopeRecipient implements EnvelopeRecipient {
    #private;
    readonly hostname: string;
    constructor(hostname: string, port: EnvelopePort);
    post(_caller: Readonly<EnvelopeRecipient>, envelope: Envelope): void;
    dispose(): Promise<void>;
    onBind(dispatcher: Readonly<EnvelopeDispatcher>): void;
    onUnbind(_dispatcher: Readonly<EnvelopeDispatcher>): void;
    protected onMessage(event: EnvelopeEvent): void;
}
//# sourceMappingURL=PortEnvelopeRecipient.d.ts.map