import type { Trace } from './trace/trace.node.js'; /** * Options for ping function. * @typedef {Object} PingOptions * @property {number} [timeout=30000] - The timeout value in milliseconds. * @property {number} [interval=10000] - The interval between retries in milliseconds. * @property {number} [retries=3] - The number of retries. * @property {Trace} [logger] - The logger object for logging. */ export type PingOptions = { timeout?: number; interval?: number; retries?: number; logger?: Trace; }; /** * Checks the availability of a service by pinging it. * @param {string} urlString - The URL of the service. * @param {PingOptions} [options={}] - The options for pinging. * @returns {Promise} A promise that resolves to true if the service is available, otherwise false. */ export declare function ping(urlString: string, { timeout, interval, retries, logger }?: PingOptions): Promise;