summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/web-vitals/dist/modules/lib/bindReporter.d.ts
blob: 54880d6b5c6d664b785d836f17e2d833cfe0f884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { MetricType, MetricRatingThresholds } from '../types.js';
export declare const bindReporter: <MetricName extends "CLS" | "FCP" | "FID" | "INP" | "LCP" | "TTFB">(callback: (metric: Extract<import("../types.js").CLSMetric, {
    name: MetricName;
}> | Extract<import("../types.js").FCPMetric, {
    name: MetricName;
}> | Extract<import("../types.js").FIDMetric, {
    name: MetricName;
}> | Extract<import("../types.js").INPMetric, {
    name: MetricName;
}> | Extract<import("../types.js").LCPMetric, {
    name: MetricName;
}> | Extract<import("../types.js").TTFBMetric, {
    name: MetricName;
}>) => void, metric: Extract<import("../types.js").CLSMetric, {
    name: MetricName;
}> | Extract<import("../types.js").FCPMetric, {
    name: MetricName;
}> | Extract<import("../types.js").FIDMetric, {
    name: MetricName;
}> | Extract<import("../types.js").INPMetric, {
    name: MetricName;
}> | Extract<import("../types.js").LCPMetric, {
    name: MetricName;
}> | Extract<import("../types.js").TTFBMetric, {
    name: MetricName;
}>, thresholds: MetricRatingThresholds, reportAllChanges?: boolean) => (forceReport?: boolean) => void;