libresolver/dist/util.d.ts

11 lines
575 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-18 15:01:28 +00:00
//# sourceMappingURL=util.d.ts.map