import type { InterruptionState } from "./InterruptionState"; export declare class CancellablePromise { readonly factory: (onInterrupt: (f: () => void) => void) => Promise; readonly interruptionState: InterruptionState; readonly _E: () => E; private reject; private current; constructor(factory: (onInterrupt: (f: () => void) => void) => Promise, interruptionState: InterruptionState); promise(): Promise; interrupt(): void; } //# sourceMappingURL=CancellablePromise.d.ts.map