lighthouse
Version:
Automated auditing, performance metrics, and best practices for the web.
40 lines • 1.77 kB
TypeScript
export { EntityClassificationComputed as EntityClassification };
export type EntityCache = Map<string, LH.Artifacts.Entity>;
declare const EntityClassificationComputed: typeof EntityClassification & {
request: (dependencies: {
URL: LH.Artifacts["URL"];
devtoolsLog: LH.DevtoolsLog;
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.EntityClassification>;
};
/** @typedef {Map<string, LH.Artifacts.Entity>} EntityCache */
declare class EntityClassification {
/**
* @param {EntityCache} entityCache
* @param {string} url
* @param {string=} extensionName
* @return {LH.Artifacts.Entity}
*/
static makeupChromeExtensionEntity_(entityCache: EntityCache, url: string, extensionName?: string | undefined): LH.Artifacts.Entity;
/**
* @param {EntityCache} entityCache
* @param {string} url
* @return {LH.Artifacts.Entity | undefined}
*/
static _makeUpAnEntity(entityCache: EntityCache, url: string): LH.Artifacts.Entity | undefined;
/**
* Preload Chrome extensions found in the devtoolsLog into cache.
* @param {EntityCache} entityCache
* @param {LH.DevtoolsLog} devtoolsLog
*/
static _preloadChromeExtensionsToCache(entityCache: EntityCache, devtoolsLog: LH.DevtoolsLog): void;
/**
* @param {{URL: LH.Artifacts['URL'], devtoolsLog: LH.DevtoolsLog}} data
* @param {LH.Artifacts.ComputedContext} context
* @return {Promise<LH.Artifacts.EntityClassification>}
*/
static compute_(data: {
URL: LH.Artifacts["URL"];
devtoolsLog: LH.DevtoolsLog;
}, context: LH.Artifacts.ComputedContext): Promise<LH.Artifacts.EntityClassification>;
}
//# sourceMappingURL=entity-classification.d.ts.map