File size: 1,157 Bytes
1944112 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /**
* Builds the callable `engine.environment` — a function with `.measure()` on it.
*
* A function rather than an object because the common case is asking for the
* whole report, and `environment()` should be the short spelling of that.
*
* @param {import("./engine.js").ScheduledEngine} engine
*/
export function environmentFacade(engine: import("./engine.js").ScheduledEngine): {
(opts?: {}): Promise<{
lines: {
id: any;
severity: any;
affects: any;
cause: any;
fix: any;
operable: boolean;
}[];
speed?: any;
scope: string;
ok: boolean;
severity: any;
device: any;
}>;
measure({ tokens }?: {
tokens?: number;
}): Promise<{
tokens: number;
tokensPerSecond: number;
basis: "measured" | "extrapolated";
modelBytes: number;
bytesPerSecond: number;
reference?: string;
modelId: string;
}>;
};
export namespace SEVERITY {
let BLOCKED: string;
let DEGRADED: string;
let TUNE: string;
let INFO: string;
let OK: string;
}
|