import type { Document } from 'bson'; import type { WriteProtocolMessageType } from '../cmap/commands'; import { TypedEventEmitter } from '../mongo_types'; import type { IQpMongoDbLogger } from './logger'; import { QpPausePhase } from './pause'; /** @internal */ export declare type QpSessionPauseEvents = { 'mongodb:command:resume': (updatedResult: Document | undefined) => void; 'mongodb:command:abort': () => void; }; /** @internal */ export declare class QpSessionPause extends TypedEventEmitter { readonly id: string; protected readonly logger: IQpMongoDbLogger; constructor(id: string); /** @internal */ waitOnProtocol(phase: QpPausePhase, command: WriteProtocolMessageType, commandOptions: { [key: string]: any; }, result: Document | undefined, callback: (err: any | undefined, result: Document | undefined) => void): void; private waitInternal; } //# sourceMappingURL=session-pause.d.ts.map