import { MongoshBaseError } from '@mongosh/errors'; declare const kUncatchable: unique symbol; export declare class MongoshInterruptedError extends MongoshBaseError { [kUncatchable]: boolean; constructor(); } export interface InterruptWatcher { destroy: () => void; promise: Promise; } export declare class InterruptFlag { private interrupted; private onInterruptListeners; isSet(): boolean; checkpoint(): void; asPromise(): InterruptWatcher; set(): Promise; reset(): void; withOverrideInterruptBehavior any, OnInterrupt extends () => Promise | void>(fn: Action, onInterrupt: OnInterrupt): Promise>; } export {};