lighthouse 9.5.0-dev.20230118 → 9.5.0-dev.20230119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin.d.ts +5 -0
- package/cli/cli-flags.d.ts +258 -0
- package/cli/commands/commands.d.ts +4 -0
- package/cli/commands/list-audits.d.ts +2 -0
- package/cli/commands/list-locales.d.ts +2 -0
- package/cli/commands/list-trace-categories.d.ts +2 -0
- package/cli/index.d.ts +3 -0
- package/cli/printer.d.ts +28 -0
- package/cli/run.d.ts +24 -0
- package/cli/sentry-prompt.d.ts +5 -0
- package/cli/test/smokehouse/config/exclusions.d.ts +12 -0
- package/cli/test/smokehouse/core-tests.d.ts +4 -0
- package/cli/test/smokehouse/frontends/back-compat-util.d.ts +16 -0
- package/cli/test/smokehouse/frontends/lib.d.ts +8 -0
- package/cli/test/smokehouse/frontends/node.d.ts +2 -0
- package/cli/test/smokehouse/frontends/smokehouse-bin.d.ts +3 -0
- package/cli/test/smokehouse/lib/child-process-error.d.ts +21 -0
- package/cli/test/smokehouse/lib/concurrent-mapper.d.ts +78 -0
- package/cli/test/smokehouse/lib/local-console.d.ts +33 -0
- package/cli/test/smokehouse/lighthouse-runners/bundle.d.ts +16 -0
- package/cli/test/smokehouse/lighthouse-runners/cli.d.ts +18 -0
- package/cli/test/smokehouse/lighthouse-runners/devtools.d.ts +23 -0
- package/cli/test/smokehouse/report-assert-test.d.ts +2 -0
- package/cli/test/smokehouse/report-assert.d.ts +50 -0
- package/cli/test/smokehouse/smokehouse.d.ts +35 -0
- package/cli/test/smokehouse/version-check-test.d.ts +2 -0
- package/cli/test/smokehouse/version-check.d.ts +15 -0
- package/core/audits/accessibility/accesskeys.d.ts +10 -0
- package/core/audits/accessibility/aria-allowed-attr.d.ts +10 -0
- package/core/audits/accessibility/aria-command-name.d.ts +10 -0
- package/core/audits/accessibility/aria-hidden-body.d.ts +10 -0
- package/core/audits/accessibility/aria-hidden-focus.d.ts +10 -0
- package/core/audits/accessibility/aria-input-field-name.d.ts +10 -0
- package/core/audits/accessibility/aria-meter-name.d.ts +10 -0
- package/core/audits/accessibility/aria-progressbar-name.d.ts +10 -0
- package/core/audits/accessibility/aria-required-attr.d.ts +10 -0
- package/core/audits/accessibility/aria-required-children.d.ts +10 -0
- package/core/audits/accessibility/aria-required-parent.d.ts +10 -0
- package/core/audits/accessibility/aria-roles.d.ts +10 -0
- package/core/audits/accessibility/aria-toggle-field-name.d.ts +10 -0
- package/core/audits/accessibility/aria-tooltip-name.d.ts +10 -0
- package/core/audits/accessibility/aria-treeitem-name.d.ts +10 -0
- package/core/audits/accessibility/aria-valid-attr-value.d.ts +10 -0
- package/core/audits/accessibility/aria-valid-attr.d.ts +10 -0
- package/core/audits/accessibility/axe-audit.d.ts +17 -0
- package/core/audits/accessibility/button-name.d.ts +10 -0
- package/core/audits/accessibility/bypass.d.ts +10 -0
- package/core/audits/accessibility/color-contrast.d.ts +10 -0
- package/core/audits/accessibility/definition-list.d.ts +10 -0
- package/core/audits/accessibility/dlitem.d.ts +10 -0
- package/core/audits/accessibility/document-title.d.ts +10 -0
- package/core/audits/accessibility/duplicate-id-active.d.ts +10 -0
- package/core/audits/accessibility/duplicate-id-aria.d.ts +10 -0
- package/core/audits/accessibility/form-field-multiple-labels.d.ts +10 -0
- package/core/audits/accessibility/frame-title.d.ts +10 -0
- package/core/audits/accessibility/heading-order.d.ts +10 -0
- package/core/audits/accessibility/html-has-lang.d.ts +10 -0
- package/core/audits/accessibility/html-lang-valid.d.ts +10 -0
- package/core/audits/accessibility/image-alt.d.ts +10 -0
- package/core/audits/accessibility/input-image-alt.d.ts +10 -0
- package/core/audits/accessibility/label.d.ts +10 -0
- package/core/audits/accessibility/link-name.d.ts +10 -0
- package/core/audits/accessibility/list.d.ts +10 -0
- package/core/audits/accessibility/listitem.d.ts +10 -0
- package/core/audits/accessibility/manual/custom-controls-labels.d.ts +8 -0
- package/core/audits/accessibility/manual/custom-controls-roles.d.ts +8 -0
- package/core/audits/accessibility/manual/focus-traps.d.ts +8 -0
- package/core/audits/accessibility/manual/focusable-controls.d.ts +8 -0
- package/core/audits/accessibility/manual/interactive-element-affordance.d.ts +8 -0
- package/core/audits/accessibility/manual/logical-tab-order.d.ts +8 -0
- package/core/audits/accessibility/manual/managed-focus.d.ts +8 -0
- package/core/audits/accessibility/manual/offscreen-content-hidden.d.ts +9 -0
- package/core/audits/accessibility/manual/use-landmarks.d.ts +8 -0
- package/core/audits/accessibility/manual/visual-order-follows-dom.d.ts +8 -0
- package/core/audits/accessibility/meta-refresh.d.ts +10 -0
- package/core/audits/accessibility/meta-viewport.d.ts +10 -0
- package/core/audits/accessibility/object-alt.d.ts +10 -0
- package/core/audits/accessibility/tabindex.d.ts +10 -0
- package/core/audits/accessibility/td-headers-attr.d.ts +10 -0
- package/core/audits/accessibility/th-has-data-cells.d.ts +10 -0
- package/core/audits/accessibility/valid-lang.d.ts +10 -0
- package/core/audits/accessibility/video-caption.d.ts +10 -0
- package/core/audits/audit.d.ts +150 -0
- package/core/audits/audit.js +1 -0
- package/core/audits/autocomplete.d.ts +36 -0
- package/core/audits/bf-cache.d.ts +21 -0
- package/core/audits/bootup-time.d.ts +26 -0
- package/core/audits/byte-efficiency/byte-efficiency-audit.d.ts +82 -0
- package/core/audits/byte-efficiency/duplicated-javascript.d.ts +52 -0
- package/core/audits/byte-efficiency/efficient-animated-content.d.ts +23 -0
- package/core/audits/byte-efficiency/legacy-javascript.d.ts +99 -0
- package/core/audits/byte-efficiency/modern-image-formats.d.ts +38 -0
- package/core/audits/byte-efficiency/offscreen-images.d.ts +75 -0
- package/core/audits/byte-efficiency/render-blocking-resources.d.ts +55 -0
- package/core/audits/byte-efficiency/total-byte-weight.d.ts +21 -0
- package/core/audits/byte-efficiency/unminified-css.d.ts +36 -0
- package/core/audits/byte-efficiency/unminified-javascript.d.ts +37 -0
- package/core/audits/byte-efficiency/unused-css-rules.d.ts +16 -0
- package/core/audits/byte-efficiency/unused-javascript.d.ts +27 -0
- package/core/audits/byte-efficiency/uses-long-cache-ttl.d.ts +61 -0
- package/core/audits/byte-efficiency/uses-optimized-images.d.ts +33 -0
- package/core/audits/byte-efficiency/uses-responsive-images-snapshot.d.ts +16 -0
- package/core/audits/byte-efficiency/uses-responsive-images.d.ts +45 -0
- package/core/audits/byte-efficiency/uses-text-compression.d.ts +14 -0
- package/core/audits/content-width.d.ts +17 -0
- package/core/audits/critical-request-chains.d.ts +44 -0
- package/core/audits/csp-xss.d.ts +51 -0
- package/core/audits/deprecations.d.ts +19 -0
- package/core/audits/diagnostics.d.ts +11 -0
- package/core/audits/dobetterweb/charset.d.ts +19 -0
- package/core/audits/dobetterweb/doctype.d.ts +21 -0
- package/core/audits/dobetterweb/dom-size.d.ts +26 -0
- package/core/audits/dobetterweb/geolocation-on-start.d.ts +16 -0
- package/core/audits/dobetterweb/inspector-issues.d.ts +45 -0
- package/core/audits/dobetterweb/js-libraries.d.ts +15 -0
- package/core/audits/dobetterweb/no-document-write.d.ts +16 -0
- package/core/audits/dobetterweb/notification-on-start.d.ts +16 -0
- package/core/audits/dobetterweb/password-inputs-can-be-pasted-into.d.ts +15 -0
- package/core/audits/dobetterweb/uses-http2.d.ts +69 -0
- package/core/audits/dobetterweb/uses-passive-event-listeners.d.ts +16 -0
- package/core/audits/errors-in-console.d.ts +31 -0
- package/core/audits/final-screenshot.d.ts +11 -0
- package/core/audits/font-display.d.ts +32 -0
- package/core/audits/image-aspect-ratio.d.ts +30 -0
- package/core/audits/image-size-responsive.d.ts +28 -0
- package/core/audits/installable-manifest.d.ts +118 -0
- package/core/audits/is-on-https.d.ts +23 -0
- package/core/audits/largest-contentful-paint-element.d.ts +14 -0
- package/core/audits/layout-shift-elements.d.ts +15 -0
- package/core/audits/lcp-lazy-loaded.d.ts +21 -0
- package/core/audits/long-tasks.d.ts +16 -0
- package/core/audits/main-thread-tasks.d.ts +11 -0
- package/core/audits/mainthread-work-breakdown.d.ts +28 -0
- package/core/audits/manual/manual-audit.d.ts +13 -0
- package/core/audits/manual/pwa-cross-browser.d.ts +12 -0
- package/core/audits/manual/pwa-each-page-has-url.d.ts +12 -0
- package/core/audits/manual/pwa-page-transitions.d.ts +12 -0
- package/core/audits/maskable-icon.d.ts +25 -0
- package/core/audits/metrics/cumulative-layout-shift.d.ts +21 -0
- package/core/audits/metrics/experimental-interaction-to-next-paint.d.ts +21 -0
- package/core/audits/metrics/first-contentful-paint-3g.d.ts +15 -0
- package/core/audits/metrics/first-contentful-paint.d.ts +25 -0
- package/core/audits/metrics/first-meaningful-paint.d.ts +28 -0
- package/core/audits/metrics/interactive.d.ts +31 -0
- package/core/audits/metrics/largest-contentful-paint.d.ts +25 -0
- package/core/audits/metrics/max-potential-fid.d.ts +23 -0
- package/core/audits/metrics/speed-index.d.ts +27 -0
- package/core/audits/metrics/total-blocking-time.d.ts +32 -0
- package/core/audits/metrics.d.ts +11 -0
- package/core/audits/multi-check-audit.d.ts +28 -0
- package/core/audits/network-requests.d.ts +11 -0
- package/core/audits/network-rtt.d.ts +15 -0
- package/core/audits/network-server-latency.d.ts +15 -0
- package/core/audits/no-unload-listeners.d.ts +16 -0
- package/core/audits/non-composited-animations.d.ts +21 -0
- package/core/audits/oopif-iframe-test-audit.d.ts +14 -0
- package/core/audits/performance-budget.d.ts +39 -0
- package/core/audits/predictive-perf.d.ts +11 -0
- package/core/audits/preload-fonts.d.ts +29 -0
- package/core/audits/preload-lcp-image.d.ts +67 -0
- package/core/audits/redirects.d.ts +33 -0
- package/core/audits/resource-summary.d.ts +16 -0
- package/core/audits/screenshot-thumbnails.d.ts +32 -0
- package/core/audits/script-elements-test-audit.d.ts +14 -0
- package/core/audits/script-treemap-data.d.ts +42 -0
- package/core/audits/seo/canonical.d.ts +51 -0
- package/core/audits/seo/crawlable-anchors.d.ts +16 -0
- package/core/audits/seo/font-size.d.ts +24 -0
- package/core/audits/seo/hreflang.d.ts +28 -0
- package/core/audits/seo/http-status-code.d.ts +16 -0
- package/core/audits/seo/is-crawlable.d.ts +38 -0
- package/core/audits/seo/link-text.d.ts +16 -0
- package/core/audits/seo/manual/structured-data.d.ts +12 -0
- package/core/audits/seo/meta-description.d.ts +16 -0
- package/core/audits/seo/plugins.d.ts +15 -0
- package/core/audits/seo/robots-txt.d.ts +18 -0
- package/core/audits/seo/tap-targets.d.ts +50 -0
- package/core/audits/server-response-time.d.ts +21 -0
- package/core/audits/service-worker.d.ts +46 -0
- package/core/audits/splash-screen.d.ts +37 -0
- package/core/audits/themed-omnibox.d.ts +42 -0
- package/core/audits/third-party-facades.d.ts +41 -0
- package/core/audits/third-party-summary.d.ts +58 -0
- package/core/audits/timing-budget.d.ts +43 -0
- package/core/audits/unsized-images.d.ts +39 -0
- package/core/audits/user-timings.d.ts +43 -0
- package/core/audits/uses-rel-preconnect.d.ts +37 -0
- package/core/audits/uses-rel-preload.d.ts +61 -0
- package/core/audits/valid-source-maps.d.ts +27 -0
- package/core/audits/viewport.d.ts +17 -0
- package/core/audits/violation-audit.d.ts +14 -0
- package/core/audits/work-during-interaction.d.ts +82 -0
- package/core/computed/computed-artifact.d.ts +15 -0
- package/core/computed/critical-request-chains.d.ts +40 -0
- package/core/computed/image-records.d.ts +24 -0
- package/core/computed/js-bundles.d.ts +13 -0
- package/core/computed/load-simulator.d.ts +28 -0
- package/core/computed/main-resource.d.ts +25 -0
- package/core/computed/main-thread-tasks.d.ts +15 -0
- package/core/computed/manifest-values.d.ts +24 -0
- package/core/computed/metrics/cumulative-layout-shift.d.ts +53 -0
- package/core/computed/metrics/first-contentful-paint-all-frames.d.ts +19 -0
- package/core/computed/metrics/first-contentful-paint.d.ts +15 -0
- package/core/computed/metrics/first-meaningful-paint.d.ts +15 -0
- package/core/computed/metrics/interactive.d.ts +61 -0
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +48 -0
- package/core/computed/metrics/lantern-first-meaningful-paint.d.ts +12 -0
- package/core/computed/metrics/lantern-interactive.d.ts +31 -0
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +25 -0
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +30 -0
- package/core/computed/metrics/lantern-metric.d.ts +78 -0
- package/core/computed/metrics/lantern-speed-index.d.ts +38 -0
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +31 -0
- package/core/computed/metrics/largest-contentful-paint-all-frames.d.ts +20 -0
- package/core/computed/metrics/largest-contentful-paint.d.ts +15 -0
- package/core/computed/metrics/max-potential-fid.d.ts +15 -0
- package/core/computed/metrics/metric.d.ts +38 -0
- package/core/computed/metrics/navigation-metric.d.ts +16 -0
- package/core/computed/metrics/responsiveness.d.ts +87 -0
- package/core/computed/metrics/speed-index.d.ts +10 -0
- package/core/computed/metrics/tbt-utils.d.ts +18 -0
- package/core/computed/metrics/timing-summary.d.ts +46 -0
- package/core/computed/metrics/total-blocking-time.d.ts +23 -0
- package/core/computed/module-duplication.d.ts +37 -0
- package/core/computed/network-analysis.d.ts +20 -0
- package/core/computed/network-records.d.ts +15 -0
- package/core/computed/network-records.js +1 -0
- package/core/computed/page-dependency-graph.d.ts +88 -0
- package/core/computed/processed-navigation.d.ts +15 -0
- package/core/computed/processed-trace.d.ts +14 -0
- package/core/computed/resource-summary.d.ts +44 -0
- package/core/computed/screenshots.d.ts +20 -0
- package/core/computed/speedline.d.ts +15 -0
- package/core/computed/unused-css.d.ts +62 -0
- package/core/computed/unused-javascript-summary.d.ts +71 -0
- package/core/computed/user-timings.d.ts +31 -0
- package/core/computed/viewport-meta.d.ts +35 -0
- package/core/config/budget.d.ts +74 -0
- package/core/config/config-helpers.d.ts +94 -0
- package/core/config/config-plugin.d.ts +46 -0
- package/core/config/config.d.ts +28 -0
- package/core/config/constants.d.ts +86 -0
- package/core/config/default-config.d.ts +5 -0
- package/core/config/default-config.js +1 -0
- package/core/config/desktop-config.d.ts +5 -0
- package/core/config/desktop-config.js +1 -0
- package/core/config/experimental-config.d.ts +13 -0
- package/core/config/filters.d.ts +83 -0
- package/core/config/full-config.d.ts +9 -0
- package/core/config/lr-desktop-config.d.ts +4 -0
- package/core/config/lr-mobile-config.d.ts +9 -0
- package/core/config/metrics-to-audits.d.ts +19 -0
- package/core/config/perf-config.d.ts +9 -0
- package/core/config/validation.d.ts +77 -0
- package/core/gather/base-artifacts.d.ts +16 -0
- package/core/gather/base-gatherer.d.ts +72 -0
- package/core/gather/base-gatherer.js +2 -0
- package/core/gather/driver/dom.d.ts +20 -0
- package/core/gather/driver/environment.d.ts +35 -0
- package/core/gather/driver/execution-context.d.ts +101 -0
- package/core/gather/driver/execution-context.js +1 -7
- package/core/gather/driver/navigation.d.ts +33 -0
- package/core/gather/driver/network-monitor.d.ts +82 -0
- package/core/gather/driver/network.d.ts +10 -0
- package/core/gather/driver/prepare.d.ts +46 -0
- package/core/gather/driver/service-workers.d.ts +16 -0
- package/core/gather/driver/storage.d.ts +24 -0
- package/core/gather/driver/target-manager.d.ts +61 -0
- package/core/gather/driver/wait-for-condition.d.ts +116 -0
- package/core/gather/driver/wait-for-condition.js +3 -2
- package/core/gather/driver.d.ts +30 -0
- package/core/gather/fetcher.d.ts +63 -0
- package/core/gather/fetcher.js +2 -0
- package/core/gather/gatherers/accessibility.d.ts +23 -0
- package/core/gather/gatherers/anchor-elements.d.ts +10 -0
- package/core/gather/gatherers/bf-cache-failures.d.ts +43 -0
- package/core/gather/gatherers/cache-contents.d.ts +11 -0
- package/core/gather/gatherers/console-messages.d.ts +39 -0
- package/core/gather/gatherers/css-usage.d.ts +39 -0
- package/core/gather/gatherers/devtools-log-compat.d.ts +13 -0
- package/core/gather/gatherers/devtools-log.d.ts +48 -0
- package/core/gather/gatherers/dobetterweb/doctype.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/domstats.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/optimized-images.d.ts +61 -0
- package/core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/response-compression.d.ts +30 -0
- package/core/gather/gatherers/dobetterweb/tags-blocking-first-paint.d.ts +53 -0
- package/core/gather/gatherers/full-page-screenshot.d.ts +35 -0
- package/core/gather/gatherers/gatherer.d.ts +46 -0
- package/core/gather/gatherers/global-listeners.d.ts +27 -0
- package/core/gather/gatherers/iframe-elements.d.ts +11 -0
- package/core/gather/gatherers/image-elements.d.ts +35 -0
- package/core/gather/gatherers/inputs.d.ts +10 -0
- package/core/gather/gatherers/inspector-issues.d.ts +38 -0
- package/core/gather/gatherers/installability-errors.d.ts +17 -0
- package/core/gather/gatherers/js-usage.d.ts +22 -0
- package/core/gather/gatherers/link-elements.d.ts +39 -0
- package/core/gather/gatherers/main-document-content.d.ts +27 -0
- package/core/gather/gatherers/meta-elements.d.ts +10 -0
- package/core/gather/gatherers/network-user-agent.d.ts +18 -0
- package/core/gather/gatherers/script-elements.d.ts +26 -0
- package/core/gather/gatherers/scripts.d.ts +27 -0
- package/core/gather/gatherers/seo/embedded-content.d.ts +10 -0
- package/core/gather/gatherers/seo/font-size.d.ts +131 -0
- package/core/gather/gatherers/seo/robots-txt.d.ts +10 -0
- package/core/gather/gatherers/seo/tap-targets.d.ts +21 -0
- package/core/gather/gatherers/service-worker.d.ts +16 -0
- package/core/gather/gatherers/source-maps.d.ts +50 -0
- package/core/gather/gatherers/stacks.d.ts +38 -0
- package/core/gather/gatherers/trace-compat.d.ts +13 -0
- package/core/gather/gatherers/trace-elements.d.ts +83 -0
- package/core/gather/gatherers/trace.d.ts +23 -0
- package/core/gather/gatherers/viewport-dimensions.d.ts +10 -0
- package/core/gather/gatherers/web-app-manifest.d.ts +32 -0
- package/core/gather/navigation-runner.d.ts +92 -0
- package/core/gather/runner-helpers.d.ts +39 -0
- package/core/gather/session.d.ts +50 -0
- package/core/gather/snapshot-runner.d.ts +10 -0
- package/core/gather/timespan-runner.d.ts +12 -0
- package/core/index.d.cts +4 -0
- package/core/index.d.ts +88 -0
- package/core/index.js +2 -0
- package/core/legacy/config/config.d.ts +107 -0
- package/core/legacy/config/legacy-default-config.d.ts +4 -0
- package/core/legacy/gather/connections/connection.d.ts +75 -0
- package/core/legacy/gather/connections/connection.js +1 -0
- package/core/legacy/gather/connections/cri.d.ts +27 -0
- package/core/legacy/gather/connections/raw.d.ts +20 -0
- package/core/legacy/gather/driver.d.ts +214 -0
- package/core/legacy/gather/driver.js +1 -0
- package/core/legacy/gather/gather-runner.d.ts +166 -0
- package/core/lib/arbitrary-equality-map.d.ts +47 -0
- package/core/lib/asset-saver.d.ts +101 -0
- package/core/lib/axe.d.ts +2 -0
- package/core/lib/bf-cache-strings.d.ts +121 -0
- package/core/lib/cdt/Common.d.ts +3 -0
- package/core/lib/cdt/Platform.d.ts +26 -0
- package/core/lib/cdt/SDK.d.ts +2 -0
- package/core/lib/cdt/generated/ParsedURL.d.ts +28 -0
- package/core/lib/cdt/generated/SourceMap.d.ts +100 -0
- package/core/lib/csp-evaluator.d.ts +41 -0
- package/core/lib/dependency-graph/base-node.d.ts +161 -0
- package/core/lib/dependency-graph/cpu-node.d.ts +34 -0
- package/core/lib/dependency-graph/cpu-node.js +1 -0
- package/core/lib/dependency-graph/network-node.d.ts +43 -0
- package/core/lib/dependency-graph/network-node.js +1 -0
- package/core/lib/dependency-graph/simulator/connection-pool.d.ts +58 -0
- package/core/lib/dependency-graph/simulator/connection-pool.js +1 -0
- package/core/lib/dependency-graph/simulator/dns-cache.d.ts +42 -0
- package/core/lib/dependency-graph/simulator/dns-cache.js +2 -0
- package/core/lib/dependency-graph/simulator/network-analyzer.d.ts +166 -0
- package/core/lib/dependency-graph/simulator/simulator-timing-map.d.ts +153 -0
- package/core/lib/dependency-graph/simulator/simulator-timing-map.js +2 -2
- package/core/lib/dependency-graph/simulator/simulator.d.ts +154 -0
- package/core/lib/dependency-graph/simulator/simulator.js +3 -2
- package/core/lib/dependency-graph/simulator/tcp-connection.d.ts +89 -0
- package/core/lib/deprecations-strings.d.ts +66 -0
- package/core/lib/emulation.d.ts +43 -0
- package/core/lib/i18n/i18n.d.ts +81 -0
- package/core/lib/icons.d.ts +22 -0
- package/core/lib/lantern-trace-saver.d.ts +20 -0
- package/core/lib/lh-env.d.ts +2 -0
- package/core/lib/lh-error.d.ts +328 -0
- package/core/lib/lh-trace-processor.d.ts +5 -0
- package/core/lib/manifest-parser.d.ts +186 -0
- package/core/lib/median-run.d.ts +17 -0
- package/core/lib/minification-estimator.d.ts +9 -0
- package/core/lib/minify-devtoolslog.d.ts +6 -0
- package/core/lib/minify-trace.d.ts +6 -0
- package/core/lib/navigation-error.d.ts +39 -0
- package/core/lib/network-recorder.d.ts +115 -0
- package/core/lib/network-request.d.ts +245 -0
- package/core/lib/network-request.js +1 -0
- package/core/lib/page-functions.d.ts +149 -0
- package/core/lib/proto-preprocessor.d.ts +13 -0
- package/core/lib/rect-helpers.d.ts +100 -0
- package/core/lib/script-helpers.d.ts +17 -0
- package/core/lib/sentry.d.ts +32 -0
- package/core/lib/stack-packs.d.ts +16 -0
- package/core/lib/statistics.d.ts +28 -0
- package/core/lib/tappable-rects.d.ts +8 -0
- package/core/lib/third-party-web.d.ts +32 -0
- package/core/lib/timing-trace-saver.d.ts +21 -0
- package/core/lib/tracehouse/cpu-profile-model.d.ts +228 -0
- package/core/lib/tracehouse/main-thread-tasks.d.ts +162 -0
- package/core/lib/tracehouse/main-thread-tasks.js +1 -0
- package/core/lib/tracehouse/task-groups.d.ts +66 -0
- package/core/lib/tracehouse/task-summary.d.ts +18 -0
- package/core/lib/tracehouse/trace-processor.d.ts +275 -0
- package/core/lib/traces/metric-trace-events.d.ts +65 -0
- package/core/lib/url-utils.d.ts +100 -0
- package/core/runner.d.ts +109 -0
- package/core/scoring.d.ts +26 -0
- package/core/user-flow.d.ts +106 -0
- package/core/user-flow.js +1 -0
- package/core/util.d.cts +230 -0
- package/eslint-local-rules.d.cts +6 -0
- package/esm-utils.d.ts +14 -0
- package/flow-report/api.d.ts +7 -0
- package/flow-report/clients/standalone.d.ts +7 -0
- package/flow-report/src/app.d.ts +11 -0
- package/flow-report/src/common.d.ts +20 -0
- package/flow-report/src/header.d.ts +10 -0
- package/flow-report/src/help-dialog.d.ts +10 -0
- package/flow-report/src/i18n/i18n.d.ts +209 -0
- package/flow-report/src/i18n/localized-strings.d.ts +9 -0
- package/flow-report/src/i18n/ui-strings.d.ts +48 -0
- package/flow-report/src/icons.d.ts +18 -0
- package/flow-report/src/sidebar/flow.d.ts +8 -0
- package/flow-report/src/sidebar/sidebar.d.ts +17 -0
- package/flow-report/src/summary/category.d.ts +19 -0
- package/flow-report/src/summary/summary.d.ts +18 -0
- package/flow-report/src/topbar.d.ts +15 -0
- package/flow-report/src/util.d.ts +30 -0
- package/flow-report/src/wrappers/category-score.d.ts +12 -0
- package/flow-report/src/wrappers/markdown.d.ts +10 -0
- package/flow-report/src/wrappers/report.d.ts +10 -0
- package/flow-report/src/wrappers/styles.d.ts +8 -0
- package/flow-report/test/app-test.d.ts +7 -0
- package/flow-report/test/common-test.d.ts +7 -0
- package/flow-report/test/flow-report-pptr-test.d.ts +7 -0
- package/flow-report/test/header-test.d.ts +7 -0
- package/flow-report/test/sample-flow.d.ts +7 -0
- package/flow-report/test/setup/env-setup.d.ts +11 -0
- package/flow-report/test/sidebar/flow-test.d.ts +7 -0
- package/flow-report/test/sidebar/sidebar-test.d.ts +7 -0
- package/flow-report/test/summary/category-test.d.ts +7 -0
- package/flow-report/test/summary/summary-test.d.ts +7 -0
- package/flow-report/test/topbar-test.d.ts +7 -0
- package/flow-report/test/util-test.d.ts +7 -0
- package/flow-report/test/wrappers/category-score-test.d.ts +7 -0
- package/flow-report/test/wrappers/markdown-test.d.ts +7 -0
- package/flow-report/tsconfig.json +1 -1
- package/package.json +5 -2
- package/report/clients/bundle.d.ts +6 -0
- package/report/clients/standalone.d.ts +2 -0
- package/report/generator/file-namer.d.ts +35 -0
- package/report/generator/flow-report-assets.d.ts +9 -0
- package/report/generator/report-assets.d.ts +8 -0
- package/report/generator/report-generator.d.ts +59 -0
- package/report/renderer/api.d.ts +31 -0
- package/report/renderer/category-renderer.d.ts +176 -0
- package/report/renderer/components.d.ts +10 -0
- package/report/renderer/crc-details-renderer.d.ts +73 -0
- package/report/renderer/details-renderer.d.ts +141 -0
- package/report/renderer/dom.d.ts +125 -0
- package/report/renderer/drop-down-menu.d.ts +70 -0
- package/report/renderer/element-screenshot-renderer.d.ts +79 -0
- package/report/renderer/features-util.d.ts +13 -0
- package/report/renderer/i18n.d.ts +106 -0
- package/report/renderer/logger.d.ts +47 -0
- package/report/renderer/open-tab.d.ts +19 -0
- package/report/renderer/performance-category-renderer.d.ts +56 -0
- package/report/renderer/pwa-category-renderer.d.ts +55 -0
- package/report/renderer/report-renderer.d.ts +57 -0
- package/report/renderer/report-ui-features.d.ts +71 -0
- package/report/renderer/snippet-renderer.d.ts +85 -0
- package/report/renderer/swap-locale-feature.d.ts +31 -0
- package/report/renderer/text-encoding.d.ts +26 -0
- package/report/renderer/topbar-features.d.ts +82 -0
- package/report/renderer/util.d.ts +230 -0
- package/report/test-assets/faux-psi.d.ts +34 -0
- package/report/types/augment-dom.d.ts +1 -1
- package/root.d.ts +3 -0
- package/shared/localization/format.d.ts +106 -0
- package/shared/localization/i18n-module.d.ts +4 -0
- package/shared/localization/locales.d.ts +7 -0
- package/shared/localization/swap-flow-locale.d.ts +6 -0
- package/shared/localization/swap-locale.d.ts +39 -0
- package/shared/type-verifiers.d.ts +23 -0
- package/third-party/axe/valid-langs.d.ts +9 -0
- package/types/artifacts.d.ts +40 -38
- package/types/audit.d.ts +6 -6
- package/types/config.d.ts +3 -3
- package/types/externs.d.ts +7 -3
- package/types/gatherer.d.ts +27 -21
- package/types/{cssstyle/index.d.ts → internal/cssstyle.d.ts} +0 -0
- package/types/{enquirer.d.ts → internal/enquirer.d.ts} +0 -0
- package/types/{es-main.d.ts → internal/es-main.d.ts} +0 -0
- package/types/internal/global.d.ts +15 -0
- package/types/{http-link-header/index.d.ts → internal/http-link-header.d.ts} +0 -0
- package/types/{jsonlint-mod.d.ts → internal/jsonlint-mod.d.ts} +0 -0
- package/types/{lighthouse-logger/index.d.ts → internal/lighthouse-logger.d.ts} +0 -0
- package/types/{lookup-closest-locale/index.d.ts → internal/lookup-closest-locale.d.ts} +3 -1
- package/types/{metaviewport-parser/index.d.ts → internal/metaviewport-parser.d.ts} +0 -0
- package/types/{node-fetch.d.ts → internal/node-fetch.d.ts} +0 -0
- package/types/{node.d.ts → internal/node.d.ts} +0 -0
- package/types/{parse-cache-control/index.d.ts → internal/parse-cache-control.d.ts} +0 -0
- package/types/{pretty-json-stringify/index.d.ts → internal/pretty-json-stringify.d.ts} +0 -0
- package/types/{query-selector.d.ts → internal/query-selector.d.ts} +1 -1
- package/types/{rollup-plugin-postprocess.d.ts → internal/rollup-plugin-postprocess.d.ts} +0 -0
- package/types/{smokehouse.d.ts → internal/smokehouse.d.ts} +3 -3
- package/types/{test.d.ts → internal/test.d.ts} +0 -0
- package/types/lh.d.ts +81 -0
- package/types/lh.js +13 -0
- package/types/lhr/audit-details.d.ts +2 -2
- package/types/lhr/audit-result.d.ts +2 -2
- package/types/lhr/flow-result.d.ts +1 -1
- package/types/lhr/lhr.d.ts +2 -2
- package/types/lhr/settings.d.ts +1 -1
- package/types/lhr/treemap.d.ts +2 -2
- package/types/protocol.d.ts +8 -3
- package/types/puppeteer.d.ts +11 -6
- package/types/user-flow.d.ts +14 -5
- package/types/global-lh.d.ts +0 -85
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default InstallabilityErrors;
|
|
2
|
+
declare class InstallabilityErrors extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* Creates an Artifacts.InstallabilityErrors, tranforming data from the protocol
|
|
5
|
+
* for old versions of Chrome.
|
|
6
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
7
|
+
* @return {Promise<LH.Artifacts['InstallabilityErrors']>}
|
|
8
|
+
*/
|
|
9
|
+
static getInstallabilityErrors(session: LH.Gatherer.FRProtocolSession): Promise<LH.Artifacts['InstallabilityErrors']>;
|
|
10
|
+
/**
|
|
11
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
12
|
+
* @return {Promise<LH.Artifacts['InstallabilityErrors']>}
|
|
13
|
+
*/
|
|
14
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['InstallabilityErrors']>;
|
|
15
|
+
}
|
|
16
|
+
import FRGatherer from "../base-gatherer.js";
|
|
17
|
+
//# sourceMappingURL=installability-errors.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default JsUsage;
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Tracks unused JavaScript
|
|
4
|
+
*/
|
|
5
|
+
declare class JsUsage extends FRGatherer {
|
|
6
|
+
/** @type {LH.Crdp.Profiler.ScriptCoverage[]} */
|
|
7
|
+
_scriptUsages: LH.Crdp.Profiler.ScriptCoverage[];
|
|
8
|
+
/**
|
|
9
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
10
|
+
*/
|
|
11
|
+
startInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
14
|
+
*/
|
|
15
|
+
stopInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* @return {Promise<LH.Artifacts['JsUsage']>}
|
|
18
|
+
*/
|
|
19
|
+
getArtifact(): Promise<LH.Artifacts['JsUsage']>;
|
|
20
|
+
}
|
|
21
|
+
import FRGatherer from "../base-gatherer.js";
|
|
22
|
+
//# sourceMappingURL=js-usage.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export default LinkElements;
|
|
2
|
+
declare class LinkElements extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
5
|
+
* @return {Promise<LH.Artifacts['LinkElements']>}
|
|
6
|
+
*/
|
|
7
|
+
static getLinkElementsInDOM(context: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['LinkElements']>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
10
|
+
* @param {LH.Artifacts['DevtoolsLog']} devtoolsLog
|
|
11
|
+
* @return {Promise<LH.Artifacts['LinkElements']>}
|
|
12
|
+
*/
|
|
13
|
+
static getLinkElementsInHeaders(context: LH.Gatherer.FRTransitionalContext, devtoolsLog: LH.Artifacts['DevtoolsLog']): Promise<LH.Artifacts['LinkElements']>;
|
|
14
|
+
/**
|
|
15
|
+
* This needs to be in the constructor.
|
|
16
|
+
* https://github.com/GoogleChrome/lighthouse/issues/12134
|
|
17
|
+
* @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>}
|
|
18
|
+
*/
|
|
19
|
+
meta: LH.Gatherer.GathererMeta<'DevtoolsLog'>;
|
|
20
|
+
/**
|
|
21
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
22
|
+
* @param {LH.Artifacts['DevtoolsLog']} devtoolsLog
|
|
23
|
+
* @return {Promise<LH.Artifacts['LinkElements']>}
|
|
24
|
+
*/
|
|
25
|
+
_getArtifact(context: LH.Gatherer.FRTransitionalContext, devtoolsLog: LH.Artifacts['DevtoolsLog']): Promise<LH.Artifacts['LinkElements']>;
|
|
26
|
+
/**
|
|
27
|
+
* @param {LH.Gatherer.PassContext} context
|
|
28
|
+
* @param {LH.Gatherer.LoadData} loadData
|
|
29
|
+
* @return {Promise<LH.Artifacts['LinkElements']>}
|
|
30
|
+
*/
|
|
31
|
+
afterPass(context: LH.Gatherer.PassContext, loadData: LH.Gatherer.LoadData): Promise<LH.Artifacts['LinkElements']>;
|
|
32
|
+
/**
|
|
33
|
+
* @param {LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>} context
|
|
34
|
+
* @return {Promise<LH.Artifacts['LinkElements']>}
|
|
35
|
+
*/
|
|
36
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>): Promise<LH.Artifacts['LinkElements']>;
|
|
37
|
+
}
|
|
38
|
+
import FRGatherer from "../base-gatherer.js";
|
|
39
|
+
//# sourceMappingURL=link-elements.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default MainDocumentContent;
|
|
2
|
+
/**
|
|
3
|
+
* Collects the content of the main html document.
|
|
4
|
+
*/
|
|
5
|
+
declare class MainDocumentContent extends FRGatherer {
|
|
6
|
+
/** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
|
|
7
|
+
meta: LH.Gatherer.GathererMeta<'DevtoolsLog'>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
10
|
+
* @param {LH.Artifacts['DevtoolsLog']} devtoolsLog
|
|
11
|
+
* @return {Promise<LH.Artifacts['MainDocumentContent']>}
|
|
12
|
+
*/
|
|
13
|
+
_getArtifact(context: LH.Gatherer.FRTransitionalContext, devtoolsLog: LH.Artifacts['DevtoolsLog']): Promise<LH.Artifacts['MainDocumentContent']>;
|
|
14
|
+
/**
|
|
15
|
+
* @param {LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>} context
|
|
16
|
+
* @return {Promise<LH.Artifacts['MainDocumentContent']>}
|
|
17
|
+
*/
|
|
18
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>): Promise<LH.Artifacts['MainDocumentContent']>;
|
|
19
|
+
/**
|
|
20
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
21
|
+
* @param {LH.Gatherer.LoadData} loadData
|
|
22
|
+
* @return {Promise<LH.Artifacts['MainDocumentContent']>}
|
|
23
|
+
*/
|
|
24
|
+
afterPass(passContext: LH.Gatherer.PassContext, loadData: LH.Gatherer.LoadData): Promise<LH.Artifacts['MainDocumentContent']>;
|
|
25
|
+
}
|
|
26
|
+
import FRGatherer from "../base-gatherer.js";
|
|
27
|
+
//# sourceMappingURL=main-document-content.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default MetaElements;
|
|
2
|
+
declare class MetaElements extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
5
|
+
* @return {Promise<LH.Artifacts['MetaElements']>}
|
|
6
|
+
*/
|
|
7
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['MetaElements']>;
|
|
8
|
+
}
|
|
9
|
+
import FRGatherer from "../base-gatherer.js";
|
|
10
|
+
//# sourceMappingURL=meta-elements.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default NetworkUserAgent;
|
|
2
|
+
/** @implements {LH.Gatherer.FRGathererInstance<'DevtoolsLog'>} */
|
|
3
|
+
declare class NetworkUserAgent extends FRGatherer implements LH.Gatherer.FRGathererInstance<'DevtoolsLog'> {
|
|
4
|
+
/**
|
|
5
|
+
* @param {LH.Artifacts['DevtoolsLog']} devtoolsLog
|
|
6
|
+
* @return {string}
|
|
7
|
+
*/
|
|
8
|
+
static getNetworkUserAgent(devtoolsLog: LH.Artifacts['DevtoolsLog']): string;
|
|
9
|
+
/** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
|
|
10
|
+
meta: LH.Gatherer.GathererMeta<'DevtoolsLog'>;
|
|
11
|
+
/**
|
|
12
|
+
* @param {LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>} context
|
|
13
|
+
* @return {Promise<LH.Artifacts['NetworkUserAgent']>}
|
|
14
|
+
*/
|
|
15
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>): Promise<LH.Artifacts['NetworkUserAgent']>;
|
|
16
|
+
}
|
|
17
|
+
import FRGatherer from "../base-gatherer.js";
|
|
18
|
+
//# sourceMappingURL=network-user-agent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default ScriptElements;
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Gets JavaScript file contents.
|
|
4
|
+
*/
|
|
5
|
+
declare class ScriptElements extends FRGatherer {
|
|
6
|
+
/** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
|
|
7
|
+
meta: LH.Gatherer.GathererMeta<'DevtoolsLog'>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
10
|
+
* @param {LH.Artifacts.NetworkRequest[]} networkRecords
|
|
11
|
+
* @return {Promise<LH.Artifacts['ScriptElements']>}
|
|
12
|
+
*/
|
|
13
|
+
_getArtifact(context: LH.Gatherer.FRTransitionalContext, networkRecords: LH.Artifacts.NetworkRequest[]): Promise<LH.Artifacts['ScriptElements']>;
|
|
14
|
+
/**
|
|
15
|
+
* @param {LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>} context
|
|
16
|
+
*/
|
|
17
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext<'DevtoolsLog'>): Promise<import("../../index.js").Artifacts.ScriptElement[]>;
|
|
18
|
+
/**
|
|
19
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
20
|
+
* @param {LH.Gatherer.LoadData} loadData
|
|
21
|
+
*/
|
|
22
|
+
afterPass(passContext: LH.Gatherer.PassContext, loadData: LH.Gatherer.LoadData): Promise<import("../../index.js").Artifacts.ScriptElement[]>;
|
|
23
|
+
}
|
|
24
|
+
import FRGatherer from "../base-gatherer.js";
|
|
25
|
+
import { NetworkRequest } from "../../lib/network-request.js";
|
|
26
|
+
//# sourceMappingURL=script-elements.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Scripts;
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Gets JavaScript file contents.
|
|
4
|
+
*/
|
|
5
|
+
declare class Scripts extends FRGatherer {
|
|
6
|
+
/** @type {LH.Crdp.Debugger.ScriptParsedEvent[]} */
|
|
7
|
+
_scriptParsedEvents: LH.Crdp.Debugger.ScriptParsedEvent[];
|
|
8
|
+
/** @type {Array<string | undefined>} */
|
|
9
|
+
_scriptContents: Array<string | undefined>;
|
|
10
|
+
/** @type {string|null|undefined} */
|
|
11
|
+
_mainSessionId: string | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* @param {LH.Crdp.Debugger.ScriptParsedEvent} params
|
|
14
|
+
*/
|
|
15
|
+
onScriptParsed(params: LH.Crdp.Debugger.ScriptParsedEvent): void;
|
|
16
|
+
/**
|
|
17
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
18
|
+
*/
|
|
19
|
+
startInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
22
|
+
*/
|
|
23
|
+
stopInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
24
|
+
getArtifact(): Promise<import("../../index.js").Artifacts.Script[]>;
|
|
25
|
+
}
|
|
26
|
+
import FRGatherer from "../base-gatherer.js";
|
|
27
|
+
//# sourceMappingURL=scripts.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default EmbeddedContent;
|
|
2
|
+
declare class EmbeddedContent extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
5
|
+
* @return {Promise<LH.Artifacts['EmbeddedContent']>}
|
|
6
|
+
*/
|
|
7
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['EmbeddedContent']>;
|
|
8
|
+
}
|
|
9
|
+
import FRGatherer from "../../base-gatherer.js";
|
|
10
|
+
//# sourceMappingURL=embedded-content.d.ts.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export default FontSize;
|
|
2
|
+
export type Driver = typeof import("../../../legacy/gather/driver.js");
|
|
3
|
+
export type NodeFontData = LH.Artifacts.FontSize['analyzedFailingNodesData'][0];
|
|
4
|
+
export type BackendIdsToFontData = Map<number, {
|
|
5
|
+
fontSize: number;
|
|
6
|
+
textLength: number;
|
|
7
|
+
}>;
|
|
8
|
+
declare class FontSize extends FRGatherer {
|
|
9
|
+
/**
|
|
10
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
11
|
+
* @param {Array<NodeFontData>} failingNodes
|
|
12
|
+
*/
|
|
13
|
+
static fetchFailingNodeSourceRules(session: LH.Gatherer.FRProtocolSession, failingNodes: Array<NodeFontData>): Promise<{
|
|
14
|
+
analyzedFailingNodesData: {
|
|
15
|
+
nodeId: number;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
textLength: number;
|
|
18
|
+
parentNode: {
|
|
19
|
+
backendNodeId: number;
|
|
20
|
+
attributes: string[];
|
|
21
|
+
nodeName: string;
|
|
22
|
+
parentNode?: {
|
|
23
|
+
backendNodeId: number;
|
|
24
|
+
attributes: string[];
|
|
25
|
+
nodeName: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
};
|
|
28
|
+
cssRule?: {
|
|
29
|
+
type: "Inline" | "Regular" | "Attributes";
|
|
30
|
+
range?: {
|
|
31
|
+
startLine: number;
|
|
32
|
+
startColumn: number;
|
|
33
|
+
} | undefined;
|
|
34
|
+
parentRule?: {
|
|
35
|
+
origin: import("devtools-protocol").Protocol.CSS.StyleSheetOrigin;
|
|
36
|
+
selectors: {
|
|
37
|
+
text: string;
|
|
38
|
+
}[];
|
|
39
|
+
} | undefined;
|
|
40
|
+
styleSheetId?: string | undefined;
|
|
41
|
+
stylesheet?: import("devtools-protocol").Protocol.CSS.CSSStyleSheetHeader | undefined;
|
|
42
|
+
cssProperties?: import("devtools-protocol").Protocol.CSS.CSSProperty[] | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
}[];
|
|
45
|
+
analyzedFailingTextLength: number;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the TextNodes in a DOM Snapshot.
|
|
49
|
+
* Every entry is associated with a TextNode in the layout tree (not display: none).
|
|
50
|
+
* @param {LH.Crdp.DOMSnapshot.CaptureSnapshotResponse} snapshot
|
|
51
|
+
*/
|
|
52
|
+
getTextNodesInLayoutFromSnapshot(snapshot: LH.Crdp.DOMSnapshot.CaptureSnapshotResponse): {
|
|
53
|
+
nodeIndex: number;
|
|
54
|
+
backendNodeId: number;
|
|
55
|
+
fontSize: number;
|
|
56
|
+
textLength: number;
|
|
57
|
+
parentNode: {
|
|
58
|
+
parentNode: {
|
|
59
|
+
backendNodeId: number;
|
|
60
|
+
attributes: string[];
|
|
61
|
+
nodeName: string;
|
|
62
|
+
} | undefined;
|
|
63
|
+
backendNodeId: number;
|
|
64
|
+
attributes: string[];
|
|
65
|
+
nodeName: string;
|
|
66
|
+
};
|
|
67
|
+
}[];
|
|
68
|
+
/**
|
|
69
|
+
* Get all the failing text nodes that don't meet the legible text threshold.
|
|
70
|
+
* @param {LH.Crdp.DOMSnapshot.CaptureSnapshotResponse} snapshot
|
|
71
|
+
*/
|
|
72
|
+
findFailingNodes(snapshot: LH.Crdp.DOMSnapshot.CaptureSnapshotResponse): {
|
|
73
|
+
totalTextLength: number;
|
|
74
|
+
failingTextLength: number;
|
|
75
|
+
failingNodes: {
|
|
76
|
+
nodeId: number;
|
|
77
|
+
fontSize: number;
|
|
78
|
+
textLength: number;
|
|
79
|
+
parentNode: {
|
|
80
|
+
backendNodeId: number;
|
|
81
|
+
attributes: string[];
|
|
82
|
+
nodeName: string;
|
|
83
|
+
parentNode?: {
|
|
84
|
+
backendNodeId: number;
|
|
85
|
+
attributes: string[];
|
|
86
|
+
nodeName: string;
|
|
87
|
+
} | undefined;
|
|
88
|
+
};
|
|
89
|
+
cssRule?: {
|
|
90
|
+
type: "Inline" | "Regular" | "Attributes";
|
|
91
|
+
range?: {
|
|
92
|
+
startLine: number;
|
|
93
|
+
startColumn: number;
|
|
94
|
+
} | undefined;
|
|
95
|
+
parentRule?: {
|
|
96
|
+
origin: import("devtools-protocol").Protocol.CSS.StyleSheetOrigin;
|
|
97
|
+
selectors: {
|
|
98
|
+
text: string;
|
|
99
|
+
}[];
|
|
100
|
+
} | undefined;
|
|
101
|
+
styleSheetId?: string | undefined;
|
|
102
|
+
stylesheet?: import("devtools-protocol").Protocol.CSS.CSSStyleSheetHeader | undefined;
|
|
103
|
+
cssProperties?: import("devtools-protocol").Protocol.CSS.CSSProperty[] | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
109
|
+
* @return {Promise<LH.Artifacts.FontSize>} font-size analysis
|
|
110
|
+
*/
|
|
111
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts.FontSize>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Returns the governing/winning CSS font-size rule for the set of styles given.
|
|
115
|
+
* This is roughly a stripped down version of the CSSMatchedStyle class in DevTools.
|
|
116
|
+
*
|
|
117
|
+
* @see https://cs.chromium.org/chromium/src/third_party/blink/renderer/devtools/front_end/sdk/CSSMatchedStyles.js?q=CSSMatchedStyles+f:devtools+-f:out&sq=package:chromium&dr=C&l=59-134
|
|
118
|
+
* @param {LH.Crdp.CSS.GetMatchedStylesForNodeResponse} matched CSS rules
|
|
119
|
+
* @return {NodeFontData['cssRule']|undefined}
|
|
120
|
+
*/
|
|
121
|
+
export function getEffectiveFontRule({ attributesStyle, inlineStyle, matchedCSSRules, inherited }: LH.Crdp.CSS.GetMatchedStylesForNodeResponse): NodeFontData['cssRule'] | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Finds the most specific directly matched CSS font-size rule from the list.
|
|
124
|
+
*
|
|
125
|
+
* @param {Array<LH.Crdp.CSS.RuleMatch>} matchedCSSRules
|
|
126
|
+
* @param {function(LH.Crdp.CSS.CSSStyle):boolean|string|undefined} isDeclarationOfInterest
|
|
127
|
+
* @return {NodeFontData['cssRule']|undefined}
|
|
128
|
+
*/
|
|
129
|
+
export function findMostSpecificMatchedCSSRule(matchedCSSRules: import("devtools-protocol").Protocol.CSS.RuleMatch[] | undefined, isDeclarationOfInterest: (arg0: LH.Crdp.CSS.CSSStyle) => boolean | string | undefined): NodeFontData['cssRule'] | undefined;
|
|
130
|
+
import FRGatherer from "../../base-gatherer.js";
|
|
131
|
+
//# sourceMappingURL=font-size.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default RobotsTxt;
|
|
2
|
+
declare class RobotsTxt extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
5
|
+
* @return {Promise<LH.Artifacts['RobotsTxt']>}
|
|
6
|
+
*/
|
|
7
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['RobotsTxt']>;
|
|
8
|
+
}
|
|
9
|
+
import FRGatherer from "../../base-gatherer.js";
|
|
10
|
+
//# sourceMappingURL=robots-txt.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default TapTargets;
|
|
2
|
+
declare class TapTargets extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
5
|
+
* @param {string} className
|
|
6
|
+
* @return {Promise<string>}
|
|
7
|
+
*/
|
|
8
|
+
addStyleRule(session: LH.Gatherer.FRProtocolSession, className: string): Promise<string>;
|
|
9
|
+
/**
|
|
10
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
11
|
+
* @param {string} styleSheetId
|
|
12
|
+
*/
|
|
13
|
+
removeStyleRule(session: LH.Gatherer.FRProtocolSession, styleSheetId: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
16
|
+
* @return {Promise<LH.Artifacts.TapTarget[]>} All visible tap targets with their positions and sizes
|
|
17
|
+
*/
|
|
18
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts.TapTarget[]>;
|
|
19
|
+
}
|
|
20
|
+
import FRGatherer from "../../base-gatherer.js";
|
|
21
|
+
//# sourceMappingURL=tap-targets.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default ServiceWorker;
|
|
2
|
+
declare class ServiceWorker extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
5
|
+
* @return {Promise<LH.Artifacts['ServiceWorker']>}
|
|
6
|
+
*/
|
|
7
|
+
beforePass(passContext: LH.Gatherer.PassContext): Promise<LH.Artifacts['ServiceWorker']>;
|
|
8
|
+
afterPass(): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
11
|
+
* @return {Promise<LH.Artifacts['ServiceWorker']>}
|
|
12
|
+
*/
|
|
13
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['ServiceWorker']>;
|
|
14
|
+
}
|
|
15
|
+
import FRGatherer from "../base-gatherer.js";
|
|
16
|
+
//# sourceMappingURL=service-worker.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export default SourceMaps;
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Gets JavaScript source maps.
|
|
4
|
+
*/
|
|
5
|
+
declare class SourceMaps extends FRGatherer {
|
|
6
|
+
/** @type {LH.Crdp.Debugger.ScriptParsedEvent[]} */
|
|
7
|
+
_scriptParsedEvents: LH.Crdp.Debugger.ScriptParsedEvent[];
|
|
8
|
+
/**
|
|
9
|
+
* @param {LH.Crdp.Debugger.ScriptParsedEvent} event
|
|
10
|
+
*/
|
|
11
|
+
onScriptParsed(event: LH.Crdp.Debugger.ScriptParsedEvent): void;
|
|
12
|
+
/**
|
|
13
|
+
* @param {LH.Gatherer.FRTransitionalDriver} driver
|
|
14
|
+
* @param {string} sourceMapUrl
|
|
15
|
+
* @return {Promise<LH.Artifacts.RawSourceMap>}
|
|
16
|
+
*/
|
|
17
|
+
fetchSourceMap(driver: LH.Gatherer.FRTransitionalDriver, sourceMapUrl: string): Promise<LH.Artifacts.RawSourceMap>;
|
|
18
|
+
/**
|
|
19
|
+
* @param {string} sourceMapURL
|
|
20
|
+
* @return {LH.Artifacts.RawSourceMap}
|
|
21
|
+
*/
|
|
22
|
+
parseSourceMapFromDataUrl(sourceMapURL: string): LH.Artifacts.RawSourceMap;
|
|
23
|
+
/**
|
|
24
|
+
* @param {string} url
|
|
25
|
+
* @param {string} base
|
|
26
|
+
* @return {string|undefined}
|
|
27
|
+
*/
|
|
28
|
+
_resolveUrl(url: string, base: string): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @param {LH.Gatherer.FRTransitionalDriver} driver
|
|
31
|
+
* @param {LH.Crdp.Debugger.ScriptParsedEvent} event
|
|
32
|
+
* @return {Promise<LH.Artifacts.SourceMap>}
|
|
33
|
+
*/
|
|
34
|
+
_retrieveMapFromScriptParsedEvent(driver: LH.Gatherer.FRTransitionalDriver, event: LH.Crdp.Debugger.ScriptParsedEvent): Promise<LH.Artifacts.SourceMap>;
|
|
35
|
+
/**
|
|
36
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
37
|
+
*/
|
|
38
|
+
startSensitiveInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
41
|
+
*/
|
|
42
|
+
stopSensitiveInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
45
|
+
* @return {Promise<LH.Artifacts['SourceMaps']>}
|
|
46
|
+
*/
|
|
47
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['SourceMaps']>;
|
|
48
|
+
}
|
|
49
|
+
import FRGatherer from "../base-gatherer.js";
|
|
50
|
+
//# sourceMappingURL=source-maps.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export default Stacks;
|
|
2
|
+
export type JSLibraryDetectorTestResult = false | {
|
|
3
|
+
version: string | number | null;
|
|
4
|
+
};
|
|
5
|
+
export type JSLibraryDetectorTest = {
|
|
6
|
+
id: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
url: string;
|
|
9
|
+
/**
|
|
10
|
+
* npm module name, if applicable to library.
|
|
11
|
+
*/
|
|
12
|
+
npm: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Returns false if library is not present, otherwise returns an object that contains the library version (set to null if the version is not detected).
|
|
15
|
+
*/
|
|
16
|
+
test: (arg0: Window) => JSLibraryDetectorTestResult | Promise<JSLibraryDetectorTestResult>;
|
|
17
|
+
};
|
|
18
|
+
export type JSLibrary = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
version: string | number | null;
|
|
22
|
+
npm: string | null;
|
|
23
|
+
};
|
|
24
|
+
/** @implements {LH.Gatherer.FRGathererInstance} */
|
|
25
|
+
declare class Stacks extends FRGatherer implements LH.Gatherer.FRGathererInstance {
|
|
26
|
+
/**
|
|
27
|
+
* @param {LH.Gatherer.FRTransitionalDriver['executionContext']} executionContext
|
|
28
|
+
* @return {Promise<LH.Artifacts['Stacks']>}
|
|
29
|
+
*/
|
|
30
|
+
static collectStacks(executionContext: LH.Gatherer.FRTransitionalDriver['executionContext']): Promise<LH.Artifacts['Stacks']>;
|
|
31
|
+
/**
|
|
32
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
33
|
+
* @return {Promise<LH.Artifacts['Stacks']>}
|
|
34
|
+
*/
|
|
35
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['Stacks']>;
|
|
36
|
+
}
|
|
37
|
+
import FRGatherer from "../base-gatherer.js";
|
|
38
|
+
//# sourceMappingURL=stacks.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default TraceCompat;
|
|
2
|
+
/** @implements {LH.Gatherer.FRGathererInstance<'Trace'>} */
|
|
3
|
+
declare class TraceCompat extends FRGatherer implements LH.Gatherer.FRGathererInstance<'Trace'> {
|
|
4
|
+
/** @type {LH.Gatherer.GathererMeta<'Trace'>} */
|
|
5
|
+
meta: LH.Gatherer.GathererMeta<'Trace'>;
|
|
6
|
+
/**
|
|
7
|
+
* @param {LH.Gatherer.FRTransitionalContext<'Trace'>} passContext
|
|
8
|
+
* @return {Promise<LH.Artifacts['traces']>}
|
|
9
|
+
*/
|
|
10
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext<'Trace'>): Promise<LH.Artifacts['traces']>;
|
|
11
|
+
}
|
|
12
|
+
import FRGatherer from "../base-gatherer.js";
|
|
13
|
+
//# sourceMappingURL=trace-compat.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export default TraceElements;
|
|
2
|
+
export type TraceElementData = {
|
|
3
|
+
nodeId: number;
|
|
4
|
+
score?: number;
|
|
5
|
+
animations?: {
|
|
6
|
+
name?: string;
|
|
7
|
+
failureReasonsMask?: number;
|
|
8
|
+
unsupportedProperties?: string[];
|
|
9
|
+
}[];
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
12
|
+
declare class TraceElements extends FRGatherer {
|
|
13
|
+
/**
|
|
14
|
+
* @param {Array<number>} rect
|
|
15
|
+
* @return {LH.Artifacts.Rect}
|
|
16
|
+
*/
|
|
17
|
+
static traceRectToLHRect(rect: Array<number>): LH.Artifacts.Rect;
|
|
18
|
+
/**
|
|
19
|
+
* This function finds the top (up to 5) elements that contribute to the CLS score of the page.
|
|
20
|
+
* Each layout shift event has a 'score' which is the amount added to the CLS as a result of the given shift(s).
|
|
21
|
+
* We calculate the score per element by taking the 'score' of each layout shift event and
|
|
22
|
+
* distributing it between all the nodes that were shifted, proportianal to the impact region of
|
|
23
|
+
* each shifted element.
|
|
24
|
+
* @param {Array<LH.TraceEvent>} mainThreadEvents
|
|
25
|
+
* @return {Array<TraceElementData>}
|
|
26
|
+
*/
|
|
27
|
+
static getTopLayoutShiftElements(mainThreadEvents: Array<LH.TraceEvent>): Array<TraceElementData>;
|
|
28
|
+
/**
|
|
29
|
+
* @param {LH.Trace} trace
|
|
30
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
31
|
+
* @return {Promise<TraceElementData|undefined>}
|
|
32
|
+
*/
|
|
33
|
+
static getResponsivenessElement(trace: LH.Trace, context: LH.Gatherer.FRTransitionalContext): Promise<TraceElementData | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* @param {LH.Trace} trace
|
|
36
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
37
|
+
* @return {Promise<{nodeId: number, type: string} | undefined>}
|
|
38
|
+
*/
|
|
39
|
+
static getLcpElement(trace: LH.Trace, context: LH.Gatherer.FRTransitionalContext): Promise<{
|
|
40
|
+
nodeId: number;
|
|
41
|
+
type: string;
|
|
42
|
+
} | undefined>;
|
|
43
|
+
/** @type {LH.Gatherer.GathererMeta<'Trace'>} */
|
|
44
|
+
meta: LH.Gatherer.GathererMeta<'Trace'>;
|
|
45
|
+
/** @type {Map<string, string>} */
|
|
46
|
+
animationIdToName: Map<string, string>;
|
|
47
|
+
/** @param {LH.Crdp.Animation.AnimationStartedEvent} args */
|
|
48
|
+
_onAnimationStarted({ animation: { id, name } }: LH.Crdp.Animation.AnimationStartedEvent): void;
|
|
49
|
+
/**
|
|
50
|
+
* Find the node ids of elements which are animated using the Animation trace events.
|
|
51
|
+
* @param {Array<LH.TraceEvent>} mainThreadEvents
|
|
52
|
+
* @return {Promise<Array<TraceElementData>>}
|
|
53
|
+
*/
|
|
54
|
+
getAnimatedElements(mainThreadEvents: Array<LH.TraceEvent>): Promise<Array<TraceElementData>>;
|
|
55
|
+
/**
|
|
56
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
57
|
+
*/
|
|
58
|
+
startInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
61
|
+
*/
|
|
62
|
+
stopInstrumentation(context: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
65
|
+
* @param {LH.Trace|undefined} trace
|
|
66
|
+
* @return {Promise<LH.Artifacts['TraceElements']>}
|
|
67
|
+
*/
|
|
68
|
+
_getArtifact(context: LH.Gatherer.FRTransitionalContext, trace: LH.Trace | undefined): Promise<LH.Artifacts['TraceElements']>;
|
|
69
|
+
/**
|
|
70
|
+
* @param {LH.Gatherer.FRTransitionalContext<'Trace'>} context
|
|
71
|
+
* @return {Promise<LH.Artifacts.TraceElement[]>}
|
|
72
|
+
*/
|
|
73
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext<'Trace'>): Promise<LH.Artifacts.TraceElement[]>;
|
|
74
|
+
/**
|
|
75
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
76
|
+
* @param {LH.Gatherer.LoadData} loadData
|
|
77
|
+
* @return {Promise<LH.Artifacts.TraceElement[]>}
|
|
78
|
+
*/
|
|
79
|
+
afterPass(passContext: LH.Gatherer.PassContext, loadData: LH.Gatherer.LoadData): Promise<LH.Artifacts.TraceElement[]>;
|
|
80
|
+
}
|
|
81
|
+
import FRGatherer from "../base-gatherer.js";
|
|
82
|
+
import Trace from "./trace.js";
|
|
83
|
+
//# sourceMappingURL=trace-elements.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default Trace;
|
|
2
|
+
declare class Trace extends FRGatherer {
|
|
3
|
+
static getDefaultTraceCategories(): string[];
|
|
4
|
+
/**
|
|
5
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
6
|
+
* @return {Promise<LH.Trace>}
|
|
7
|
+
*/
|
|
8
|
+
static endTraceAndCollectEvents(session: LH.Gatherer.FRProtocolSession): Promise<LH.Trace>;
|
|
9
|
+
static symbol: symbol;
|
|
10
|
+
/** @type {LH.Trace} */
|
|
11
|
+
_trace: LH.Trace;
|
|
12
|
+
/**
|
|
13
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
14
|
+
*/
|
|
15
|
+
startSensitiveInstrumentation({ driver, gatherMode, settings }: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
18
|
+
*/
|
|
19
|
+
stopSensitiveInstrumentation({ driver }: LH.Gatherer.FRTransitionalContext): Promise<void>;
|
|
20
|
+
getArtifact(): import("../../index.js").Trace;
|
|
21
|
+
}
|
|
22
|
+
import FRGatherer from "../base-gatherer.js";
|
|
23
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default ViewportDimensions;
|
|
2
|
+
declare class ViewportDimensions extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
5
|
+
* @return {Promise<LH.Artifacts.ViewportDimensions>}
|
|
6
|
+
*/
|
|
7
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts.ViewportDimensions>;
|
|
8
|
+
}
|
|
9
|
+
import FRGatherer from "../base-gatherer.js";
|
|
10
|
+
//# sourceMappingURL=viewport-dimensions.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default WebAppManifest;
|
|
2
|
+
declare class WebAppManifest extends FRGatherer {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
5
|
+
* @return {Promise<{url: string, data: string}|null>}
|
|
6
|
+
*/
|
|
7
|
+
static fetchAppManifest(session: LH.Gatherer.FRProtocolSession): Promise<{
|
|
8
|
+
url: string;
|
|
9
|
+
data: string;
|
|
10
|
+
} | null>;
|
|
11
|
+
/**
|
|
12
|
+
* Uses the debugger protocol to fetch the manifest from within the context of
|
|
13
|
+
* the target page, reusing any credentials, emulation, etc, already established
|
|
14
|
+
* there.
|
|
15
|
+
*
|
|
16
|
+
* Returns the parsed manifest or null if the page had no manifest. If the manifest
|
|
17
|
+
* was unparseable as JSON, manifest.value will be undefined and manifest.warning
|
|
18
|
+
* will have the reason. See manifest-parser.js for more information.
|
|
19
|
+
*
|
|
20
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
21
|
+
* @param {string} pageUrl
|
|
22
|
+
* @return {Promise<LH.Artifacts.Manifest|null>}
|
|
23
|
+
*/
|
|
24
|
+
static getWebAppManifest(session: LH.Gatherer.FRProtocolSession, pageUrl: string): Promise<LH.Artifacts.Manifest | null>;
|
|
25
|
+
/**
|
|
26
|
+
* @param {LH.Gatherer.FRTransitionalContext} context
|
|
27
|
+
* @return {Promise<LH.Artifacts['WebAppManifest']>}
|
|
28
|
+
*/
|
|
29
|
+
getArtifact(context: LH.Gatherer.FRTransitionalContext): Promise<LH.Artifacts['WebAppManifest']>;
|
|
30
|
+
}
|
|
31
|
+
import FRGatherer from "../base-gatherer.js";
|
|
32
|
+
//# sourceMappingURL=web-app-manifest.d.ts.map
|