/*! * name: async-primitives * version: 1.7.0 * description: A collection of primitive functions for asynchronous operations * author: Kouji Matsui (@kekyo@mi.kekyo.net) * license: MIT * repository.url: https://github.com/kekyo/async-primitives.git * git.commit.hash: 9472fbd5310b92690d84aaafb897429a04c013c5 */ import { Releasable } from '../types.js'; /** * Hooks up an abort handler to an AbortSignal and returns a handle for early cleanup * @param signal - The AbortSignal to hook up to * @param callback - The callback to call when the signal is aborted * @returns A Releasable handle that can be used to remove the abort listener early */ export declare const onAbort: (signal: AbortSignal | undefined, callback: (error: Error) => void) => Releasable; //# sourceMappingURL=abort-hook.d.ts.map