export type Connection = import('./legacy/gather/connections/connection.js').Connection; export type ArbitraryEqualityMap = import('./lib/arbitrary-equality-map.js').ArbitraryEqualityMap; export type Config = LH.Config.LegacyResolvedConfig; /** @typedef {import('./legacy/gather/connections/connection.js').Connection} Connection */ /** @typedef {import('./lib/arbitrary-equality-map.js').ArbitraryEqualityMap} ArbitraryEqualityMap */ /** @typedef {LH.Config.LegacyResolvedConfig} Config */ export class Runner { /** * @template {LH.Config.LegacyResolvedConfig | LH.Config.ResolvedConfig} TConfig * @param {LH.Artifacts} artifacts * @param {{resolvedConfig: TConfig, driverMock?: Driver, computedCache: Map}} options * @return {Promise} */ static audit(artifacts: LH.Artifacts, options: { resolvedConfig: TConfig; driverMock?: Driver | undefined; computedCache: Map; }): Promise; /** * @param {LH.Artifacts} artifacts * @param {LH.Artifacts.ComputedContext} context */ static getEntityClassification(artifacts: LH.Artifacts, context: LH.Artifacts.ComputedContext): Promise; /** * User can run -G solo, -A solo, or -GA together * -G and -A will run partial lighthouse pipelines, * and -GA will run everything plus save artifacts and lhr to disk. * * @template {LH.Config.LegacyResolvedConfig | LH.Config.ResolvedConfig} TConfig * @param {(runnerData: {resolvedConfig: TConfig, driverMock?: Driver}) => Promise} gatherFn * @param {{resolvedConfig: TConfig, driverMock?: Driver, computedCache: Map}} options * @return {Promise} */ static gather(gatherFn: (runnerData: { resolvedConfig: TConfig_1; driverMock?: Driver | undefined; }) => Promise, options: { resolvedConfig: TConfig_1; driverMock?: Driver | undefined; computedCache: Map; }): Promise; /** * @param {any} err * @param {LH.Config.Settings} settings */ static createRunnerError(err: any, settings: LH.Config.Settings): any; /** * This handles both the auditMode case where gatherer entries need to be merged in and * the gather/audit case where timingEntriesFromRunner contains all entries from this run, * including those also in timingEntriesFromArtifacts. * @param {LH.Artifacts} artifacts * @return {LH.Result.Timing} */ static _getTiming(artifacts: LH.Artifacts): LH.Result.Timing; /** * Establish connection, load page and collect all required artifacts * @param {string} requestedUrl * @param {{resolvedConfig: Config, computedCache: Map, driverMock?: Driver}} runnerOpts * @param {Connection} connection * @return {Promise} */ static _gatherArtifactsFromBrowser(requestedUrl: string, runnerOpts: { resolvedConfig: Config; computedCache: Map; driverMock?: Driver; }, connection: Connection): Promise; /** * Run all audits with specified settings and artifacts. * @param {LH.Config.Settings} settings * @param {Array} audits * @param {LH.Artifacts} artifacts * @param {Array} runWarnings * @param {Map} computedCache * @return {Promise>>} */ static _runAudits(settings: LH.Config.Settings, audits: Array, artifacts: LH.Artifacts, runWarnings: Array, computedCache: Map): Promise>>; /** * Checks that the audit's required artifacts exist and runs the audit if so. * Otherwise returns error audit result. * @param {LH.Config.AuditDefn} auditDefn * @param {LH.Artifacts} artifacts * @param {Pick} sharedAuditContext * @param {Array} runWarnings * @return {Promise>} * @private */ private static _runAudit; /** * Searches a pass's artifacts for any `lhrRuntimeError` error artifacts. * Returns the first one found or `null` if none found. * @param {LH.Artifacts} artifacts * @return {LH.RawIcu|undefined} */ static getArtifactRuntimeError(artifacts: LH.Artifacts): LH.RawIcu | undefined; /** * Returns list of audit names for external querying. * @return {Array} */ static getAuditList(): Array; /** * Returns list of gatherer names for external querying. * @return {Array} */ static getGathererList(): Array; /** * Get path to use for -G and -A modes. Defaults to $CWD/latest-run * @param {LH.Config.Settings} settings * @return {string} */ static _getDataSavePath(settings: LH.Config.Settings): string; } import { Driver } from './legacy/gather/driver.js'; import { Audit } from './audits/audit.js'; //# sourceMappingURL=runner.d.ts.map