interface _ServerStatusOptions { port?: number; timeout?: number; ping?: boolean; protocolVersion?: number; throwOnParseError?: boolean; disableSRV?: boolean; disableJSONParse?: boolean; } type NotBoth = { host: string; hostname?: never; } | { host?: never; hostname: string; }; type ServerStatusOptions = _ServerStatusOptions & NotBoth; declare class ServerStatus { constructor(statusRaw: string, latency?: number, throwOnParseError?: boolean, disableJSONParse?: boolean); latency: number | null; status: DynamicObject | null; statusRaw: string; } type DynamicObject = { [key: string]: any; }; /** * Looks up the server. * @example * Here's a simple example: * ``` * let result = await mc.lookup({ * host: "mc.hypixel.net" * port: 25565, * timeout: 10000, * ping: true, * protocolVersion: 764 * throwOnParseError: false, * disableSRV: false, * disableJSONParse: false * }) * ``` */ declare function lookup(options?: ServerStatusOptions): Promise; /** * Used for changing the default DNS servers. * @example * ``` // Recommended servers mc.setDnsServers(["9.9.9.9", "1.1.1.1", "8.8.8.8"]) // (Quad9, Cloudflare, Google) // Cloudflare is the fastest for DNS queries in most of the world. ``` */ declare function setDnsServers(serverArray: Array): Promise; declare const _default: { setDnsServers: typeof setDnsServers; lookup: typeof lookup; }; export { _default as default };