UNPKG

604 BTypeScriptView Raw
1/// <reference types="node" />
2/// <reference types="node" />
3import dns from 'dns';
4type LookupFunction = (hostname: string, options: dns.LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void) => void;
5export declare function instanceLookup(options: {
6 server: string;
7 instanceName: string;
8 timeout?: number;
9 retries?: number;
10 port?: number;
11 lookup?: LookupFunction;
12 signal: AbortSignal;
13}): Promise<number>;
14export declare function parseBrowserResponse(response: string, instanceName: string): number | undefined;
15export {};