export declare class C3Performance { readonly key: string; readonly value1: string; readonly value2: string; startTime: any; constructor(key: string, value1?: string, value2?: string); end(): void; static add(key: string, time: number): void; static dump(): void; static incGlobal(): number; static incCurrent(): number; static decCurrent(): number; static getCurrent(): number; static setLastSettle(timestamp: number): void; static getLastSettle(): number; static isLastSettleDue(maxTime: number): boolean; } type StopwatchName = string; type StopwatchTaskName = string; type StopwatchOngoingTask = { name: StopwatchTaskName; start: number; }; type StopwatchCompletedTask = StopwatchOngoingTask & { stop: number; span: number; }; type StopwatchSumTask = { name: StopwatchTaskName; sumSpan: number; }; type StopwatchFormatter = (name: StopwatchName, tasks: StopwatchCompletedTask[]) => string; type StopwatchSummaryFormatter = (name: StopwatchName, tasks: StopwatchSumTask[]) => string; type StopwatchCondition = (tasks: StopwatchCompletedTask[]) => boolean; export declare const anyBigger: (value: number) => StopwatchCondition; export declare class Stopwatch { readonly name: StopwatchName; private static summary; private static active; private static DEFAULT_FORMATTER; private static SUM_FORMATTER; private static defaultFormatter; static on(): void; static off(): void; static isActive(): boolean; static setDefaultFormatter(formatter?: StopwatchFormatter): void; static dumpSummary(formatter?: StopwatchSummaryFormatter): string; private static _addToSummary; private static getAndRestartSummary; static new(name: StopwatchName, startTask?: StopwatchTaskName): Stopwatch; private currentTasks; private completedTasks; private constructor(); clean(): Stopwatch; start(taskName: string): Stopwatch; stop(): Stopwatch; next(newTaskName: string): Stopwatch; dump(formatter?: StopwatchFormatter): string; dumpIf(condition: StopwatchCondition, formatter?: StopwatchFormatter): void; private _start; private _stop; } export {}; //# sourceMappingURL=c3performance.d.ts.map