Rocky_Mountain_Vending/.pnpm-store/v10/files/96/3bfee63766b953542c851a76c558edaf425174547cbe88a226c5240688490d016bb9bfc4228876007fb1fc07b296c2fb7a13b6b2fe39021f536b510740cd20
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

70 lines
3.5 KiB
Text

import * as Protocol from '../../../generated/protocol.js';
// import type * as CrUXManager from '../../crux-manager/crux-manager.js';
import type * as Handlers from '../handlers/handlers.js';
import * as Types from '../types/types.js';
import { type InsightModels, type InsightSet, type InsightSetContext, type MetricSavings } from './types.js';
export declare function getInsight<InsightName extends keyof InsightModels>(insightName: InsightName, insightSet: InsightSet): InsightModels[InsightName] | null;
export declare function getLCP(insightSet: InsightSet): {
value: Types.Timing.Micro;
event: Types.Events.LargestContentfulPaintCandidate;
} | null;
export declare function getINP(insightSet: InsightSet): {
value: Types.Timing.Micro;
event: Types.Events.SyntheticInteractionPair;
} | null;
export declare function getCLS(insightSet: InsightSet): {
value: number;
worstClusterEvent: Types.Events.Event | null;
};
export declare function evaluateLCPMetricScore(value: Types.Timing.Milli): number;
export declare function evaluateINPMetricScore(value: Types.Timing.Milli): number;
export declare function evaluateCLSMetricScore(value: number): number;
export interface CrUXFieldMetricTimingResult {
value: Types.Timing.Micro;
pageScope: any;
}
export interface CrUXFieldMetricNumberResult {
value: number;
pageScope: any;
}
export interface CrUXFieldMetricResults {
fcp: CrUXFieldMetricTimingResult | null;
lcp: CrUXFieldMetricTimingResult | null;
inp: CrUXFieldMetricTimingResult | null;
cls: CrUXFieldMetricNumberResult | null;
lcpBreakdown: {
ttfb: CrUXFieldMetricTimingResult | null;
loadDelay: CrUXFieldMetricTimingResult | null;
loadDuration: CrUXFieldMetricTimingResult | null;
renderDelay: CrUXFieldMetricTimingResult | null;
};
}
export declare function getFieldMetricsForInsightSet(insightSet: InsightSet, metadata: Types.File.MetaData | null, scope?: any | null): CrUXFieldMetricResults | null;
export declare function calculateMetricWeightsForSorting(insightSet: InsightSet, metadata: Types.File.MetaData | null): {
lcp: number;
inp: number;
cls: number;
};
/**
* Estimates the FCP & LCP savings for wasted bytes in `wastedBytesByRequestId`.
*/
export declare function metricSavingsForWastedBytes(wastedBytesByRequestId: Map<string, number>, context: InsightSetContext): MetricSavings | undefined;
/**
* Returns whether the network request was sent encoded.
*/
export declare function isRequestCompressed(request: Types.Events.SyntheticNetworkRequest): boolean;
export declare function isRequestServedFromBrowserCache(request: Types.Events.SyntheticNetworkRequest): boolean;
/**
* Estimates the number of bytes the content of this network record would have consumed on the network based on the
* uncompressed size (totalBytes). Uses the actual transfer size from the network record if applicable,
* minus the size of the response headers.
*
* @param totalBytes Uncompressed size of the resource
*/
export declare function estimateCompressedContentSize(request: Types.Events.SyntheticNetworkRequest | undefined, totalBytes: number, resourceType: Protocol.Network.ResourceType): number;
/**
* Utility function to estimate the ratio of the compression of a script.
* This excludes the size of the response headers.
*/
export declare function estimateCompressionRatioForScript(script: Handlers.ModelHandlers.Scripts.Script): number;
export declare function calculateDocFirstByteTs(docRequest: Types.Events.SyntheticNetworkRequest): Types.Timing.Micro | null;