/** * @module * This module contains interoperability with DOM `AbortSignal` and `AbortSignal`-like objects. */ /** */ import { ICancellationToken } from "./primitives"; /** * Gets an `AbortSignal` from {@link ICancellationToken}. * @param cancellationToken the source cancellation token. * @returns a DOM `AbortSignal` instance, * or an `AbortSignal`-like adapter provided by TPL if there is no native `AbortSignal` * and `AbortController` available in the global environment. */ export declare function abortSignalFromCancellationToken(cancellationToken: ICancellationToken): AbortSignal; /** * Represents an `AbortSignal`-like object with basic abort state and subscribable abort event. */ export declare type AdaptableAbortSignalLike = Pick; /** * Gets an {@link ICancellationToken} from the specified `AbortSignal`. * @param abortSignal an abort signal that will cancel the returned {@link ICancellationToken} upon `abort` event. */ export declare function cancellationTokenFromAbortSignal(abortSignal: AdaptableAbortSignalLike): ICancellationToken; //# sourceMappingURL=abortSignal.d.ts.map