Rocky_Mountain_Vending/.pnpm-store/v10/files/38/2b1577f4b00deec27838eb0c6e53b622134c634167659b69be29bf4a248029fda85774f8db18b0f785bcfac7161a8ba66099f809481c8d2d74d3beb53b0fd1
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.2 KiB
Text

import type * as Handlers from '../handlers/handlers.js';
import * as Helpers from '../helpers/helpers.js';
import type * as Types from '../types/types.js';
import { type InsightModel, type InsightSetContext } from './types.js';
export declare const UIStrings: {
/**
* @description Title of an insight that provides information and suggestions of resources that could improve their caching.
*/
readonly title: "Use efficient cache lifetimes";
/**
* @description Text to tell the user about how caching can help improve performance.
*/
readonly description: "A long cache lifetime can speed up repeat visits to your page. [Learn more](https://web.dev/uses-long-cache-ttl/).";
/**
* @description Column for a font loaded by the page to render text.
*/
readonly requestColumn: "Request";
/**
* @description Column for a resource cache's Time To Live.
*/
readonly cacheTTL: "Cache TTL";
/**
* @description Text describing that there were no requests found that need caching.
*/
readonly noRequestsToCache: "No requests with inefficient cache policies";
/**
* @description Table row value representing the remaining items not shown in the table due to size constraints. This row will always represent at least 2 items.
* @example {5} PH1
*/
readonly others: "{PH1} others";
};
export declare const i18nString: (id: string, values?: Record<string, string> | undefined) => Record<string, string>;
export type CacheInsightModel = InsightModel<typeof UIStrings, {
requests: Array<{
request: Types.Events.SyntheticNetworkRequest;
ttl: number;
wastedBytes: number;
}>;
}>;
/**
* Determines if a request is "cacheable".
* A request is "cacheable" if it is of the appropriate protocol and resource type
* (see Helpers.Network.NON_NETWORK_SCHEMES and Helpers.Network.STATIC_RESOURCE_TYPE)
* and has the appropriate statusCodes.
*/
export declare function isCacheable(request: Types.Events.SyntheticNetworkRequest): boolean;
/**
* Returns max-age if defined, otherwise expires header if defined, and null if not.
*/
export declare function computeCacheLifetimeInSeconds(headers: Array<{
name: string;
value: string;
}>, cacheControl: Helpers.Network.CacheControl | null): number | null;
export declare function getCombinedHeaders(responseHeaders: Array<{
name: string;
value: string;
}>): Map<string, string>;
/**
* Returns whether a request contains headers that disable caching.
* Disabled caching is checked on the 'cache-control' and 'pragma' headers.
*/
export declare function cachingDisabled(headers: Map<string, string> | null, parsedCacheControl: Helpers.Network.CacheControl | null): boolean;
export interface CacheableRequest {
request: Types.Events.SyntheticNetworkRequest;
ttl: number;
wastedBytes: number;
}
export declare function generateInsight(parsedTrace: Handlers.Types.ParsedTrace, context: InsightSetContext): CacheInsightModel;
export declare function createOverlayForRequest(request: Types.Events.SyntheticNetworkRequest): Types.Overlays.EntryOutline;
export declare function createOverlays(model: CacheInsightModel): Types.Overlays.Overlay[];