type IPv4 = Uint8Array; type NSAP = Uint8Array; /** * @summary Encode an IPv4 address as an OSI NSAP address. * @description * * This function encodes an IPv4 address as an OSI NSAP address per the * instructions in ITU Recommendation X.519 (2016), Section 11.3. * * @param {number} type The service type identifier of the endpoint. * @param {Uint8Array} ipv4 The IPv4 address of the endpoint. * @param {number} port The TCP/UDP port of the endpoint. * @returns An encoded OSI NSAP address. */ export declare function ipv4ToNSAP(type: number, ipv4: IPv4, port?: number): NSAP; /** * @summary Decode an IPv4 address, port number, and service type from an OSI NSAP address. * @description * * This function decodes an IPv4 address, service type, and possibly a TCP/UDP * port number from an OSI NSAP address by reversing the instructions given by * ITU Recommendation X.519 (2016), Section 11.3. * * @param {Uint8Array} nsap The OSI NSAP address to decode into an IPv4 address, * port, and service type. * @returns A tuple (array) containing, in this order: the numeric identifier of * the service type of this endpoint, the IPv4 address, and the TCP/UDP port number. */ export declare function ipv4FromNSAP(nsap: NSAP): [type: number, ipv4: IPv4, port: number | undefined]; export {}; //# sourceMappingURL=ipv4.d.mts.map