import type { DashboardJSON } from './DashboardJSON'; type PerfNowType = ReturnType; export interface DashboardProfilerMark { time: PerfNowType; elapsedSinceLastMark: PerfNowType; name?: string; } export type DashboardProfilerMarks = DashboardProfilerMark[]; export interface DashboardProfilerTimer { start: PerfNowType; end?: PerfNowType; marks: DashboardProfilerMarks; definition?: DashboardJSON; } export type DashboardProfilerTimers = Record; export type DashboardProfilerPartialMeasurements = Record; export interface DashboardProfilerMeasurement { time: PerfNowType; elapsed: PerfNowType; metadata?: Record; } export type DashboardProfilerMeasurements = Record; export interface DashboardProfilerMeasurementSummary { measurementCount: number; avgMeasurementDuration: number; minMeasurementDuration: PerfNowType; maxMeasurementDuration: PerfNowType; totalMeasurementDuration: PerfNowType; } export interface DashboardProfiler { startTimer(config: { timerName: string; startTime?: number; definition?: DashboardJSON; }): void; endTimer(timerName: string, opts?: { endTime?: number; }): void; clearTimer(timerName: string): void; hasTimer(timerName: string): boolean; markTimer(config: { timerName: string; markName?: string; markTime?: number; }): void; emitTimerSummary(config: { timerName: string; definition?: DashboardJSON; endTime?: number; metadata?: Record; }): void; emitAndClearTimer(config: { timerName: string; definition?: DashboardJSON; endTime?: number; metadata?: Record; }): void; startMeasurement(measurementName: string): void; endMeasurement(measurementName: string, metadata?: Record): void; clearMeasurements(measurementName: string): void; emitMeasurementSummary(config: { measurementName: string; definition?: DashboardJSON; metadata?: Record; }): void; emitAndClearMeasurements(config: { measurementName: string; definition?: DashboardJSON; metadata?: Record; }): void; hasMeasurements(measurementName: string): boolean; hasPartialMeasurement(measurementName: string): boolean; exportTimers(): DashboardProfilerTimers; exportMeasurements(): DashboardProfilerMeasurements; exportPartialMeasurements(): DashboardProfilerPartialMeasurements; } export {}; //# sourceMappingURL=DashboardProfiler.d.ts.map