/** * Purpose: Wraps performance.mark/measure to capture calls and uses PerformanceObserver for error-time performance snapshots. * Docs: docs/features/feature/performance-audit/index.md */ import type { PerformanceMark, PerformanceMeasure } from '../types/index.js'; /** * Get performance marks */ export declare function getPerformanceMarks(options?: { since?: number; }): Array & { detail?: unknown | null; }>; /** * Get performance measures */ export declare function getPerformanceMeasures(options?: { since?: number; }): Array>; /** * Get captured marks from wrapper */ export declare function getCapturedMarks(): Array; /** * Get captured measures from wrapper */ export declare function getCapturedMeasures(): Array; /** * Install performance capture wrapper */ export declare function installPerformanceCapture(): void; /** * Uninstall performance capture wrapper */ export declare function uninstallPerformanceCapture(): void; /** * Check if performance capture is active */ export declare function isPerformanceCaptureActive(): boolean; interface PerformanceSnapshot { type: 'performance'; ts: string; _enrichments: readonly string[]; _errorTs?: string; marks: Array & { detail?: unknown | null; }>; measures: Array>; navigation: { type?: string; startTime: number; domContentLoadedEventEnd: number; loadEventEnd: number; } | null; } /** * Get performance snapshot for an error */ export declare function getPerformanceSnapshotForError(errorEntry: { ts?: string; }): Promise; /** * Set whether performance marks are enabled */ export declare function setPerformanceMarksEnabled(enabled: boolean): void; /** * Check if performance marks are enabled */ export declare function isPerformanceMarksEnabled(): boolean; export {}; //# sourceMappingURL=performance.d.ts.map