/** * Races a promise against a timeout, throwing a {@link TimeoutError} if the * timeout expires first. The timer is always cleaned up regardless of outcome. * * @param promise - The promise to race against the timeout. * @param timeoutMs - The timeout duration in milliseconds. * @param makeErrorMessage - A function that returns the error message for the TimeoutError. * @returns The resolved value of the promise if it settles before the timeout. */ export declare function raceWithTimeout(promise: Promise, timeoutMs: number, makeErrorMessage: () => string): Promise;