/** * Wait until something is accepting connections on a local port * @author Jay Luker * @param port the local port to watch * @param opts - object containing all arguments * @param opts.timeoutMs give up after this many milliseconds; required, as * how long a wait is reasonable depends entirely on what the caller is * waiting for * @param opts.intervalMs how often to retry the connection, which also caps * each individual attempt * @param opts.giveUp optional callback; return true to abort the wait early * @returns true if the port opened, false on timeout or abort. A port that * isn't accepting connections is an expected outcome, not an error, so * nothing is thrown for it * @throws if port isn't a valid port number */ declare const waitForPort: (port: number, opts: { timeoutMs: number; intervalMs?: number; giveUp?: () => boolean; }) => Promise; export default waitForPort;