import { PerformanceProfilerError } from '../exceptions'; declare type OperationStatus = { startTimestamp: number; abortController?: AbortController; } & ({ endTimestamp?: never; cancelled?: never; } | { endTimestamp: number; cancelled: boolean; }); interface OperationTimestamps { [operationName: string]: Omit; } export declare class OperationEndError extends PerformanceProfilerError { readonly name = "OperationEndError"; readonly destinationScreen: string; constructor(destinationScreen: string, operationName: string); } export declare class OperationStartedError extends PerformanceProfilerError { readonly name = "OperationStartedError"; readonly destinationScreen: string; constructor(destinationScreen: string, operationName: string); } export declare class OperationNotStartedError extends PerformanceProfilerError { readonly name = "OperationNotStartedError"; readonly destinationScreen: string; constructor(destinationScreen: string, operationName: string); } declare class OngoingOperationsRegistry { private readonly _operationTimestamps; constructor(); get operationTimestamps(): OperationTimestamps; onOperationStarted(destinationScreen: string, operationName: string, abortController?: AbortController): OngoingOperationsRegistry; onOperationCompleted(destinationScreen: string, operationName: string, cancelled?: boolean): OngoingOperationsRegistry; onAllOngoingOperationsCancelled(destinationScreen: string): OngoingOperationsRegistry; private copy; } export default OngoingOperationsRegistry; //# sourceMappingURL=OngoingOperationsRegistry.d.ts.map