/// import * as recordType from './type'; import { Buffer } from 'buffer'; import { DNSRecord } from './DNSRecord'; /** * Helper class for encoding and decoding DNS records. Record set is an array of DNS records. */ export declare class RecordSet { static recordType: typeof recordType; /** * Decodes a buffer into an array of DNS records. * @param buf - dns record in binary format */ static decode(buf: Buffer): DNSRecord[]; /** * Encodes an array of DNS records into a binary format. * @param records */ static encode(records: DNSRecord[]): Buffer; } export default RecordSet;