declare const wait: (ms?: number) => Promise<unknown>;
/**
 * Race promises until a one resolves with a value that satisfies a condition or if any promise rejects.
 *
 * @param promises - An array of promises to race
 * @param cb - A callback that receives the resolved value and returns a boolean (default: r => r !== undefined)
 */
declare function raceUntil<T = unknown>(promises: Promise<T>[], cb?: (r: T) => boolean): {
    inner: Promise<void | T[]>;
    outer: Promise<T | null>;
};

export { raceUntil, wait };
