import type { CoapMethod, OptionName } from 'coap-packet';
import type { AddressInfo } from 'net';
import { Readable } from 'readable-stream';
import type { ReadableOptions } from 'readable-stream';
import type { CoapPacket, OptionValue } from '../models/models';
declare class IncomingMessage extends Readable {
    rsinfo: AddressInfo;
    outSocket?: AddressInfo;
    _packet: CoapPacket;
    _payloadIndex: number;
    url: string;
    payload: Buffer;
    headers: Partial<Record<OptionName, OptionValue>>;
    method: CoapMethod;
    code: string;
    constructor(packet: CoapPacket, rsinfo: AddressInfo, outSocket?: AddressInfo, options?: ReadableOptions);
    _read(size: number): void;
}
export default IncomingMessage;
