import { ServerResponse } from '../typescriptService'; import type * as Proto from './protocol/protocol'; export interface CallbackItem { readonly onSuccess: (value: R) => void; readonly onError: (err: Error) => void; readonly queuingStartTime: number; readonly isAsync: boolean; readonly traceId?: string | undefined; readonly command?: string; } export declare class CallbackMap { private readonly _callbacks; private readonly _asyncCallbacks; destroy(cause: string): void; add(seq: number, callback: CallbackItem | undefined>, isAsync: boolean): void; fetch(seq: number): CallbackItem | undefined> | undefined; peek(seq: number): CallbackItem | undefined> | undefined; private delete; } //# sourceMappingURL=callbackMap.d.ts.map