UNPKG

600 BTypeScriptView Raw
1import { FCPMetric, MetricRatingThresholds, ReportOpts } from './types.js';
2/** Thresholds for FCP. See https://web.dev/articles/fcp#what_is_a_good_fcp_score */
3export declare const FCPThresholds: MetricRatingThresholds;
4/**
5 * Calculates the [FCP](https://web.dev/articles/fcp) value for the current page and
6 * calls the `callback` function once the value is ready, along with the
7 * relevant `paint` performance entry used to determine the value. The reported
8 * value is a `DOMHighResTimeStamp`.
9 */
10export declare const onFCP: (onReport: (metric: FCPMetric) => void, opts?: ReportOpts) => void;