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>
39 lines
No EOL
1.8 KiB
Text
39 lines
No EOL
1.8 KiB
Text
export { ResourceSummaryComputed as ResourceSummary };
|
|
export type ResourceEntry = {
|
|
count: number;
|
|
resourceSize: number;
|
|
transferSize: number;
|
|
};
|
|
export type ResourceType = "stylesheet" | "image" | "media" | "font" | "script" | "document" | "other" | "third-party" | "total";
|
|
declare const ResourceSummaryComputed: typeof ResourceSummary & {
|
|
request: (dependencies: {
|
|
URL: LH.Artifacts["URL"];
|
|
devtoolsLog: LH.DevtoolsLog;
|
|
}, context: LH.Artifacts.ComputedContext) => Promise<Record<ResourceType, ResourceEntry>>;
|
|
};
|
|
/** @typedef {{count: number, resourceSize: number, transferSize: number}} ResourceEntry */
|
|
/** @typedef {'stylesheet'|'image'|'media'|'font'|'script'|'document'|'other'|'third-party'|'total'} ResourceType */
|
|
declare class ResourceSummary {
|
|
/**
|
|
* @param {LH.Artifacts.NetworkRequest} record
|
|
* @return {ResourceType}
|
|
*/
|
|
static determineResourceType(record: LH.Artifacts.NetworkRequest): ResourceType;
|
|
/**
|
|
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
* @param {LH.Artifacts.URL} URLArtifact
|
|
* @param {LH.Artifacts.EntityClassification} classifiedEntities
|
|
* @return {Record<ResourceType, ResourceEntry>}
|
|
*/
|
|
static summarize(networkRecords: Array<LH.Artifacts.NetworkRequest>, URLArtifact: LH.Artifacts.URL, classifiedEntities: LH.Artifacts.EntityClassification): Record<ResourceType, ResourceEntry>;
|
|
/**
|
|
* @param {{URL: LH.Artifacts['URL'], devtoolsLog: LH.DevtoolsLog}} data
|
|
* @param {LH.Artifacts.ComputedContext} context
|
|
* @return {Promise<Record<ResourceType,ResourceEntry>>}
|
|
*/
|
|
static compute_(data: {
|
|
URL: LH.Artifacts["URL"];
|
|
devtoolsLog: LH.DevtoolsLog;
|
|
}, context: LH.Artifacts.ComputedContext): Promise<Record<ResourceType, ResourceEntry>>;
|
|
}
|
|
//# sourceMappingURL=resource-summary.d.ts.map |