Rocky_Mountain_Vending/.pnpm-store/v10/files/35/b4823919f553da0cc784b32363d48b41f413d7632eb38dcb28400352600f5d452b6bf6932115466bec8c4737186b47ff8e8dadb33f7fa5b685d14ab769993b
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

76 lines
2.8 KiB
Text

import * as Types from '../types/types.js';
import type { HandlerName } from './types.js';
export declare function reset(): void;
export declare function handleEvent(event: Types.Events.Event): void;
export declare function getFrameIdForPageLoadEvent(event: Types.Events.PageLoadEvent): string;
/**
* Classifications sourced from
* https://web.dev/fcp/
*/
export declare function scoreClassificationForFirstContentfulPaint(fcpScoreInMicroseconds: Types.Timing.Micro): ScoreClassification;
/**
* Classifications sourced from
* https://web.dev/interactive/#how-lighthouse-determines-your-tti-score
*/
export declare function scoreClassificationForTimeToInteractive(ttiTimeInMicroseconds: Types.Timing.Micro): ScoreClassification;
/**
* Classifications sourced from
* https://web.dev/lcp/#what-is-lcp
*/
export declare function scoreClassificationForLargestContentfulPaint(lcpTimeInMicroseconds: Types.Timing.Micro): ScoreClassification;
/**
* DCL does not have a classification.
*/
export declare function scoreClassificationForDOMContentLoaded(_dclTimeInMicroseconds: Types.Timing.Micro): ScoreClassification;
/**
* Classifications sourced from
* https://web.dev/lighthouse-total-blocking-#time/
*/
export declare function scoreClassificationForTotalBlockingTime(tbtTimeInMicroseconds: Types.Timing.Micro): ScoreClassification;
export declare function finalize(): Promise<void>;
export interface PageLoadMetricsData {
/**
* This represents the metric scores for all navigations, for all frames in a trace.
* Given a frame id, the map points to another map from navigation id to metric scores.
* The metric scores include the event related to the metric as well as the data regarding
* the score itself.
*/
metricScoresByFrameId: Map<string, Map<string, Map<MetricName, MetricScore>>>;
/**
* Page load events with no associated duration that happened in the
* main frame.
*/
allMarkerEvents: Types.Events.PageLoadEvent[];
}
export declare function data(): PageLoadMetricsData;
export declare function deps(): HandlerName[];
export declare enum ScoreClassification {
GOOD = "good",
OK = "ok",
BAD = "bad",
UNCLASSIFIED = "unclassified"
}
export declare enum MetricName {
FCP = "FCP",
FP = "FP",
L = "L",
LCP = "LCP",
DCL = "DCL",
TTI = "TTI",
TBT = "TBT",
CLS = "CLS",
NAV = "Nav"
}
export interface MetricScore {
metricName: MetricName;
classification: ScoreClassification;
event?: Types.Events.PageLoadEvent;
navigation?: Types.Events.NavigationStart;
estimated?: boolean;
timing: Types.Timing.Micro;
}
export type LCPMetricScore = MetricScore & {
event: Types.Events.LargestContentfulPaintCandidate;
metricName: MetricName.LCP;
};
export declare function metricIsLCP(metric: MetricScore): metric is LCPMetricScore;