//#region src/utils/signal.d.ts
/**
 * Race a promise with an abort signal. If the signal is aborted, the promise will
 * be rejected with the error from the signal. If the promise is rejected, the signal will be aborted.
 *
 * @param promise - The promise to race.
 * @param signal - The abort signal.
 * @returns The result of the promise.
 */
declare function raceWithSignal<T>(promise: Promise<T>, signal?: AbortSignal): Promise<T>;
//#endregion
export { raceWithSignal };
//# sourceMappingURL=signal.d.ts.map