1 | /// <reference types="node" />
|
2 | /// <reference types="node" />
|
3 | /// <reference types="node" />
|
4 | import dns from 'dns';
|
5 | type LookupFunction = (hostname: string, options: dns.LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void) => void;
|
6 | export declare function sendInParallel(addresses: dns.LookupAddress[], port: number, request: Buffer, signal: AbortSignal): Promise<Buffer>;
|
7 | export declare function sendMessage(host: string, port: number, lookup: LookupFunction, signal: AbortSignal, request: Buffer): Promise<Buffer>;
|
8 | export {};
|