import { Profiler } from "./profiler"; import { CounterSet } from "./counterSet"; export interface CounterOptions { noAvg?: boolean; noLastValue?: boolean; } export declare class Counter { private _name; private _profiler; private _set; private _lastValue; private _avg; private _sum; private _count; private _options; constructor(name: string, options?: CounterOptions); patch(): Counter[]; create(): Counter; profile(obj: any, methodName: string): void; execAndUpdate(func: Function): any; private isProto(); update(value: any, inc?: boolean): void; inc(): void; dec(): void; private onUpdated(); onRegistered(profiler: Profiler): void; onCreate(set: CounterSet): void; reset(): void; readonly count: number; readonly avg: any; readonly lastValue: any; readonly sum: any; readonly set: CounterSet; readonly name: string; }