export { UnusedCSSComputed as UnusedCSS }; export type StyleSheetInfo = LH.Artifacts.CSSStyleSheetInfo & { networkRecord: LH.Artifacts.NetworkRequest; usedRules: Array; }; declare const UnusedCSSComputed: typeof UnusedCSS & { request: (dependencies: { Stylesheets: LH.Artifacts["Stylesheets"]; CSSUsage: LH.Artifacts["CSSUsage"]; devtoolsLog: LH.DevtoolsLog; }, context: LH.Artifacts.ComputedContext) => Promise; }; /** @typedef {LH.Artifacts.CSSStyleSheetInfo & {networkRecord: LH.Artifacts.NetworkRequest, usedRules: Array}} StyleSheetInfo */ declare class UnusedCSS { /** * @param {Array} styles The output of the Styles gatherer. * @param {Array} networkRecords * @return {Object} A map of styleSheetId to stylesheet information. */ static indexStylesheetsById(styles: Array, networkRecords: Array): { [x: string]: StyleSheetInfo; }; /** * Adds used rules to their corresponding stylesheet. * @param {Array} rules The output of the CSSUsage gatherer. * @param {Object} indexedStylesheets Stylesheet information indexed by id. */ static indexUsedRules(rules: Array, indexedStylesheets: { [x: string]: StyleSheetInfo; }): void; /** * @param {StyleSheetInfo} stylesheetInfo * @return {{wastedBytes: number, totalBytes: number, wastedPercent: number}} */ static computeUsage(stylesheetInfo: StyleSheetInfo): { wastedBytes: number; totalBytes: number; wastedPercent: number; }; /** * Trims stylesheet content down to the first rule-set definition. * @param {string=} content * @return {string} */ static determineContentPreview(content?: string | undefined): string; /** * @param {StyleSheetInfo} stylesheetInfo The stylesheetInfo object. * @return {LH.Audit.ByteEfficiencyItem} */ static mapSheetToResult(stylesheetInfo: StyleSheetInfo): LH.Audit.ByteEfficiencyItem; /** * @param {{Stylesheets: LH.Artifacts['Stylesheets'], CSSUsage: LH.Artifacts['CSSUsage'], devtoolsLog: LH.DevtoolsLog}} data * @param {LH.Artifacts.ComputedContext} context * @return {Promise} */ static compute_(data: { Stylesheets: LH.Artifacts["Stylesheets"]; CSSUsage: LH.Artifacts["CSSUsage"]; devtoolsLog: LH.DevtoolsLog; }, context: LH.Artifacts.ComputedContext): Promise; } //# sourceMappingURL=unused-css.d.ts.map