/** * Memory safe ponyfill of `AbortSignal.any`. In Node environments, the native * `AbortSignal.any` seems to be leaky and can lead to subtle memory leaks over * a larger period of time. * * This ponyfill is a custom implementation that makes sure AbortSignals get properly * GC-ed as well as aborted. */ declare function abortSignalAny(signals: AbortSignal[]): AbortSignal | undefined; /** * Combines multiple `AbortSignal`s into one that aborts only when **all** of * the input signals have aborted (the inverse of `abortSignalAny` / * `AbortSignal.any`). * * Unlike `AbortSignal.any`, there is no native `AbortSignal.all`; this is a * first-class utility, with the same WeakRef / FinalizationRegistry cleanup * patterns as `abortSignalAny`. */ declare function abortSignalAll(signals: AbortSignal[]): AbortSignal | undefined; export { abortSignalAll, abortSignalAny };