/** * @module perf-timer * * Lightweight, high-resolution performance timer utility for ibgib operations. * Activated conditionally when VCS_PERF=1 or IBGIB_PERF=1 in the environment. */ export interface PerfTimer { label: string; startMs: number; /** Returns elapsed milliseconds without logging */ elapsedMs: () => number; /** Logs a named intermediate checkpoint and returns split time in ms */ mark: (stepLabel: string) => number; /** Logs final duration and returns total elapsed milliseconds */ stop: (detail?: string) => number; } /** * Returns true if performance benchmarking is activated via environment flags. */ export declare function isPerfEnabled(): boolean; /** * Creates and starts a high-resolution performance timer. * If telemetry is disabled, returns zero-overhead no-op functions. * * @param label Descriptive identifier for the timed operation (e.g. `[cli][merge]`, `[sync][delta]`) * @param forceEnabled Optional override to force timer output regardless of env vars */ export declare function startPerfTimer(label: string, forceEnabled?: boolean): PerfTimer; //# sourceMappingURL=perf-timer.d.mts.map