libresolver/dist/util.d.ts

12 lines
638 B
TypeScript
Raw Normal View History

2022-08-18 18:03:40 +00:00
import { DNSRecord, DNSResult } from "./types.js";
2022-08-18 14:58:17 +00:00
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;
2022-08-18 18:03:40 +00:00
export declare function resolverEmptyResponse(): DNSResult;
export declare function resolverError(e: Error | string): DNSResult;
export declare function resolveSuccess(records: DNSRecord[]): DNSResult;
2022-08-18 18:32:18 +00:00
export declare function normalizeDomain(domain: string): string;
2022-08-19 00:10:31 +00:00
export declare function isPromise(obj: Promise<any>): boolean;
2022-08-19 19:49:56 +00:00
//# sourceMappingURL=util.d.ts.map