Rocky_Mountain_Vending/.pnpm-store/v10/files/0a/c99e47c64e60eac1d699b848699bbd4b934aa97028c9b9a8ed77b0dc95bccd7a445011b15c269d96c9a89a109c793488829f31385e6b7c05df0eb02abb09d2
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

74 lines
No EOL
3.4 KiB
Text

export default PrioritizeLcpImage;
export type InitiatorType = LH.Crdp.Network.Initiator["type"] | "redirect" | "fallbackToMain";
export type InitiatorPath = Array<{
url: string;
initiatorType: InitiatorType;
}>;
/**
* @typedef {LH.Crdp.Network.Initiator['type']|'redirect'|'fallbackToMain'} InitiatorType
* @typedef {Array<{url: string, initiatorType: InitiatorType}>} InitiatorPath
*/
declare class PrioritizeLcpImage extends Audit {
/**
*
* @param {LH.Artifacts.NetworkRequest} request
* @param {LH.Artifacts.NetworkRequest} mainResource
* @param {InitiatorPath} initiatorPath
* @return {boolean}
*/
static shouldPreloadRequest(request: LH.Artifacts.NetworkRequest, mainResource: LH.Artifacts.NetworkRequest, initiatorPath: InitiatorPath): boolean;
/**
* @param {LH.Gatherer.Simulation.GraphNode} graph
* @param {NetworkRequest} lcpRecord
* @return {LH.Gatherer.Simulation.GraphNetworkNode|undefined}
*/
static findLCPNode(graph: LH.Gatherer.Simulation.GraphNode, lcpRecord: NetworkRequest): LH.Gatherer.Simulation.GraphNetworkNode | undefined;
/**
* Get the initiator path starting with lcpRecord back to mainResource, inclusive.
* Navigation redirects *to* the mainResource are not included.
* Path returned will always be at least [lcpRecord, mainResource].
* @param {NetworkRequest} lcpRecord
* @param {NetworkRequest} mainResource
* @return {InitiatorPath}
*/
static getLcpInitiatorPath(lcpRecord: NetworkRequest, mainResource: NetworkRequest): InitiatorPath;
/**
* @param {LH.Artifacts.NetworkRequest} mainResource
* @param {LH.Gatherer.Simulation.GraphNode} graph
* @param {NetworkRequest|undefined} lcpRecord
* @return {{lcpNodeToPreload?: LH.Gatherer.Simulation.GraphNetworkNode, initiatorPath?: InitiatorPath}}
*/
static getLCPNodeToPreload(mainResource: LH.Artifacts.NetworkRequest, graph: LH.Gatherer.Simulation.GraphNode, lcpRecord: NetworkRequest | undefined): {
lcpNodeToPreload?: LH.Gatherer.Simulation.GraphNetworkNode;
initiatorPath?: InitiatorPath;
};
/**
* Computes the estimated effect of preloading the LCP image.
* @param {LH.Artifacts.TraceElement} lcpElement
* @param {LH.Gatherer.Simulation.GraphNetworkNode|undefined} lcpNode
* @param {LH.Gatherer.Simulation.GraphNode} graph
* @param {LH.Gatherer.Simulation.Simulator} simulator
* @return {{wastedMs: number, results: Array<{node: LH.Audit.Details.NodeValue, url: string, wastedMs: number}>}}
*/
static computeWasteWithGraph(lcpElement: LH.Artifacts.TraceElement, lcpNode: LH.Gatherer.Simulation.GraphNetworkNode | undefined, graph: LH.Gatherer.Simulation.GraphNode, simulator: LH.Gatherer.Simulation.Simulator): {
wastedMs: number;
results: Array<{
node: LH.Audit.Details.NodeValue;
url: string;
wastedMs: number;
}>;
};
/**
* @param {LH.Artifacts} artifacts
* @param {LH.Audit.Context} context
* @return {Promise<LH.Audit.Product>}
*/
static audit(artifacts: LH.Artifacts, context: LH.Audit.Context): Promise<LH.Audit.Product>;
}
export namespace UIStrings {
let title: string;
let description: string;
}
import { Audit } from './audit.js';
import { NetworkRequest } from '../lib/network-request.js';
//# sourceMappingURL=prioritize-lcp-image.d.ts.map