/** * Browser shim for node:dns * * DNS resolution is not available in the browser. This shim provides * a minimal implementation to satisfy the bundler while ensuring * that DNS-based private network protection fails safe (by blocking). */ export interface LookupAddress { address: string; family: number; } export interface LookupOptions { family?: number; hints?: number; all?: boolean; verbatim?: boolean; } export interface LookupOneOptions extends LookupOptions { all?: false; } export interface LookupAllOptions extends LookupOptions { all: true; } /** * Partial implementation of dns.lookup that always fails. */ export declare function lookup(hostname: string, callback: (err: Error | null, address: string, family: number) => void): void; export declare function lookup(hostname: string, options: LookupAllOptions, callback: (err: Error | null, addresses: LookupAddress[]) => void): void; export declare function lookup(hostname: string, options: LookupOneOptions, callback: (err: Error | null, address: string, family: number) => void): void; export declare function lookup(hostname: string, options: LookupOptions | number, callback: (err: Error | null, address: string | LookupAddress[], family: number) => void): void; declare const _default_1: { lookup: typeof lookup; }; export default _default_1;