/** * Node.js DNS API compatibility utilities. * * Provides helpers to transform between this library's internal record * representations and the shapes returned by Node's built-in 'dns' module. */ import type { UnknownArray } from "type-fest"; import type { ANYRecord, SOARecord, TLSARecord, TXTRecord } from "./types"; /** Convert Node resolveAny array to internal ANYRecord */ export declare function fromNodeResolveAny(arr: Readonly): ANYRecord; /** Convert Node resolveTxt result (string[][]) to internal TXTRecord[] */ export declare function fromNodeTxt(records: readonly (readonly string[])[], ttl?: number): TXTRecord[]; /** Determine if a given object already matches the Node resolveSoa shape */ export declare function isNodeSOAShape(obj: unknown): boolean; /** Determine if a given object matches the Node TLSA shape */ export declare function isNodeTLSAShape(obj: unknown): boolean; /** Normalize an SOA record to include both internal and Node field names */ export declare function normalizeSOA(record: Readonly): SOARecord; /** Normalize a TLSA record to include both internal and Node field names */ export declare function normalizeTLSA(record: Readonly): TLSARecord; /** * Create an ANY record container from a heterogeneous Node resolveAny response * array. */ export declare function toANYRecord(entries: Readonly): ANYRecord; /** Convert internal TXTRecord[] to Node resolveTxt shape (string[][]) */ export declare function toNodeTxt(records: readonly Readonly[]): string[][]; //# sourceMappingURL=node-compat.d.ts.map