25 lines
653 B
TypeScript
25 lines
653 B
TypeScript
import type { LightPlugin, LightClient } from '../types';
|
|
declare class PerformancePlugin implements LightPlugin {
|
|
name: string;
|
|
version: string;
|
|
private client;
|
|
private config;
|
|
setup(client: LightClient): void;
|
|
private loadConfig;
|
|
private shouldSample;
|
|
private observeWebVitals;
|
|
private observeFP;
|
|
private observeLCP;
|
|
private observeFID;
|
|
private observeCLS;
|
|
private observeFCP;
|
|
private observeTTFB;
|
|
private observeLongTasks;
|
|
private observeNavigation;
|
|
private observeResources;
|
|
private getRating;
|
|
private reportMetric;
|
|
destroy(): void;
|
|
}
|
|
export default PerformancePlugin;
|