interface AbortableSingleFlightResult { readonly promise: Promise; readonly shared: boolean; } interface AbortableSingleFlightStartContext { readonly signal: AbortSignal; abort(reason?: unknown): void; } /** * Shares one abortable operation per key while keeping caller cancellation * independent. The underlying operation is aborted only when its final caller * leaves, and that entry is evicted before aborting so an immediate retry can * never acquire the aborted operation. */ declare class AbortableSingleFlight { private readonly entries; acquire(key: TKey, start: (context: AbortableSingleFlightStartContext) => Promise, signal?: AbortSignal): AbortableSingleFlightResult; abortAll(reason?: unknown): void; private createEntry; private subscribe; private abortEntry; } export { AbortableSingleFlight, type AbortableSingleFlightResult, type AbortableSingleFlightStartContext };