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>
48 lines
No EOL
2.1 KiB
Text
48 lines
No EOL
2.1 KiB
Text
export default OptimizedImages;
|
|
export type SimplifiedNetworkRecord = {
|
|
requestId: string;
|
|
url: string;
|
|
mimeType: string;
|
|
resourceSize: number;
|
|
};
|
|
/** @typedef {{requestId: string, url: string, mimeType: string, resourceSize: number}} SimplifiedNetworkRecord */
|
|
declare class OptimizedImages extends BaseGatherer {
|
|
/**
|
|
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
* @return {Array<SimplifiedNetworkRecord>}
|
|
*/
|
|
static filterImageRequests(networkRecords: Array<LH.Artifacts.NetworkRequest>): Array<SimplifiedNetworkRecord>;
|
|
/** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
|
|
meta: LH.Gatherer.GathererMeta<"DevtoolsLog">;
|
|
_encodingStartAt: number;
|
|
/**
|
|
* @param {LH.Gatherer.ProtocolSession} session
|
|
* @param {string} requestId
|
|
* @param {'jpeg'|'webp'} encoding Either webp or jpeg.
|
|
* @return {Promise<LH.Crdp.Audits.GetEncodedResponseResponse>}
|
|
*/
|
|
_getEncodedResponse(session: LH.Gatherer.ProtocolSession, requestId: string, encoding: "jpeg" | "webp"): Promise<LH.Crdp.Audits.GetEncodedResponseResponse>;
|
|
/**
|
|
* @param {LH.Gatherer.ProtocolSession} session
|
|
* @param {SimplifiedNetworkRecord} networkRecord
|
|
* @return {Promise<{originalSize: number, jpegSize?: number, webpSize?: number}>}
|
|
*/
|
|
calculateImageStats(session: LH.Gatherer.ProtocolSession, networkRecord: SimplifiedNetworkRecord): Promise<{
|
|
originalSize: number;
|
|
jpegSize?: number;
|
|
webpSize?: number;
|
|
}>;
|
|
/**
|
|
* @param {LH.Gatherer.ProtocolSession} session
|
|
* @param {Array<SimplifiedNetworkRecord>} imageRecords
|
|
* @return {Promise<LH.Artifacts['OptimizedImages']>}
|
|
*/
|
|
computeOptimizedImages(session: LH.Gatherer.ProtocolSession, imageRecords: Array<SimplifiedNetworkRecord>): Promise<LH.Artifacts["OptimizedImages"]>;
|
|
/**
|
|
* @param {LH.Gatherer.Context<'DevtoolsLog'>} context
|
|
* @return {Promise<LH.Artifacts['OptimizedImages']>}
|
|
*/
|
|
getArtifact(context: LH.Gatherer.Context<"DevtoolsLog">): Promise<LH.Artifacts["OptimizedImages"]>;
|
|
}
|
|
import BaseGatherer from '../../base-gatherer.js';
|
|
//# sourceMappingURL=optimized-images.d.ts.map |