export type ArbitraryEqualityMap = import("./lib/arbitrary-equality-map.js").ArbitraryEqualityMap; /** @typedef {import('./lib/arbitrary-equality-map.js').ArbitraryEqualityMap} ArbitraryEqualityMap */ export class Runner { /** * @param {LH.Artifacts} artifacts * @param {{resolvedConfig: LH.Config.ResolvedConfig, computedCache: Map}} options * @return {Promise} */ static audit(artifacts: LH.Artifacts, options: { resolvedConfig: LH.Config.ResolvedConfig; 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. * * @param {(runnerData: {resolvedConfig: LH.Config.ResolvedConfig}) => Promise} gatherFn * @param {{resolvedConfig: LH.Config.ResolvedConfig, computedCache: Map}} options * @return {Promise} */ static gather(gatherFn: (runnerData: { resolvedConfig: LH.Config.ResolvedConfig; }) => Promise, options: { resolvedConfig: LH.Config.ResolvedConfig; 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; /** * 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; } //# sourceMappingURL=runner.d.ts.map