Rocky_Mountain_Vending/.pnpm-store/v10/files/de/b07fd3116ba826d9b9e39586a9c0829a7444b75d0743ba7eeaed879f9477e7bfe5638001086c1d837a5e3a62969882897aaacbfe452f67d52fef03c7907a08
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

31 lines
1.4 KiB
Text

declare const BLOCKING_TIME_THRESHOLD = 50;
/**
* For TBT, We only want to consider tasks that fall in our time range
* - FCP and TTI for navigation mode
* - Trace start and trace end for timespan mode
*
* FCP is picked as `startTimeMs` because there is little risk of user input happening
* before FCP so Long Queuing Qelay regions do not harm user experience. Developers should be
* optimizing to reach FCP as fast as possible without having to worry about task lengths.
*
* TTI is picked as `endTimeMs` because we want a well defined end point for page load.
*
* @param startTimeMs Should be FCP in navigation mode and the trace start time in timespan mode
* @param endTimeMs Should be TTI in navigation mode and the trace end time in timespan mode
* @param topLevelEvent Leave unset if `event` is top level. Has no effect if `event` has the same duration as `topLevelEvent`.
*/
declare function calculateTbtImpactForEvent(event: {
start: number;
end: number;
duration: number;
}, startTimeMs: number, endTimeMs: number, topLevelEvent?: {
start: number;
end: number;
duration: number;
}): number;
declare function calculateSumOfBlockingTime(topLevelEvents: Array<{
start: number;
end: number;
duration: number;
}>, startTimeMs: number, endTimeMs: number): number;
export { BLOCKING_TIME_THRESHOLD, calculateSumOfBlockingTime, calculateTbtImpactForEvent, };