11 lines
637 B
TypeScript
11 lines
637 B
TypeScript
import { DNSRecord, DNSResult } from "./types.js";
|
|
export declare function getTld(domain: string): string;
|
|
export declare function getSld(domain: string): string;
|
|
export declare function isIp(ip: string): boolean;
|
|
export declare function isDomain(domain: string): boolean;
|
|
export declare function resolverEmptyResponse(): DNSResult;
|
|
export declare function resolverError(e: Error | string): DNSResult;
|
|
export declare function resolveSuccess(records: DNSRecord[]): DNSResult;
|
|
export declare function normalizeDomain(domain: string): string;
|
|
export declare function isPromise(obj: Promise<any>): boolean;
|
|
//# sourceMappingURL=util.d.ts.map
|