Rocky_Mountain_Vending/.pnpm-store/v10/files/a5/aa508a06d5fc3b24761b086a4a407e8f1f71a931f43ebacb1a7351f92c37a791ed8c9f6b4c62f3d965f2f0c1939db651dc62e007e7e8cdfb3b84ef04e79132
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

40 lines
2.2 KiB
Text

import * as Graph from '../graph/graph.js';
import type * as Types from '../types/types.js';
import { Metric, type MetricCoefficients } from './Metric.js';
interface FirstPaintBasedGraphOpts<T> {
/**
* The timestamp used to filter out tasks that occurred after our paint of interest.
* Typically this is First Contentful Paint or First Meaningful Paint.
*/
cutoffTimestamp: number;
/**
* The function that determines which resources should be considered *possibly*
* render-blocking.
*/
treatNodeAsRenderBlocking: (node: Graph.NetworkNode<T>) => boolean;
/**
* The function that determines which CPU nodes should also be included in our
* blocking node IDs set, beyond what getRenderBlockingNodeData() already includes.
*/
additionalCpuNodesToTreatAsRenderBlocking?: (node: Graph.CPUNode) => boolean;
}
declare class FirstContentfulPaint extends Metric {
static get coefficients(): MetricCoefficients;
/**
* Computes the set of URLs that *appeared* to be render-blocking based on our filter,
* *but definitely were not* render-blocking based on the timing of their EvaluateScript task.
* It also computes the set of corresponding CPU node ids that were needed for the paint at the
* given timestamp.
*/
static getRenderBlockingNodeData<T = unknown>(graph: Graph.Node, { cutoffTimestamp, treatNodeAsRenderBlocking, additionalCpuNodesToTreatAsRenderBlocking }: FirstPaintBasedGraphOpts<T>): {
definitelyNotRenderBlockingScriptUrls: Set<string>;
renderBlockingCpuNodeIds: Set<string>;
};
/**
* Computes the graph required for the first paint of interest.
*/
static getFirstPaintBasedGraph<T>(dependencyGraph: Graph.Node, { cutoffTimestamp, treatNodeAsRenderBlocking, additionalCpuNodesToTreatAsRenderBlocking }: FirstPaintBasedGraphOpts<T>): Graph.Node<T>;
static getOptimisticGraph<T>(dependencyGraph: Graph.Node<T>, processedNavigation: Types.Simulation.ProcessedNavigation): Graph.Node<T>;
static getPessimisticGraph<T>(dependencyGraph: Graph.Node<T>, processedNavigation: Types.Simulation.ProcessedNavigation): Graph.Node<T>;
}
export { FirstContentfulPaint };