UNPKG

@stacksjs/whois

Version:
48 lines (47 loc) 868 B
/** * Response returned from whois function. Contains the raw text from WhoIs server and parsed/fornatted WhoIs data (if parsed is true) * * @interface */ export declare interface WhoIsResponse { _raw: string parsedData: any | null } /** * Proxy related data * @interface * */ export declare interface ProxyData { ip: string port: number username?: string | null password?: string | null type: ProxyType } /** * WhoIs options * @interface */ export declare interface WhoIsOptions { tld?: string | null encoding?: string | null proxy?: ProxyData | null server?: string | null serverPort?: number | null parseData?: object | null } /** * Type of the proxy. Either SOCKS4 or SOCKS5 * @enum */ export declare enum ProxyType { /** * SOCKS4 type of proxy */ SOCKS4 = 0, /** * SOCKS5 type of proxy */ SOCKS5 = 1, }