/** When a job finished and how long its last run took, from its timestamps. */ export type RunSample = { at: number; ms: number; }; export type RunTimeSummary = { /** Jobs that finished inside the window. */ count: number; p50: number | null; p95: number | null; /** The median run time in each equal slice of the window, oldest first; * null where nothing finished. */ buckets: Array; }; /** Nearest-rank percentile of an ascending list: always a real run time. */ export declare const percentile: (sorted: readonly number[], fraction: number) => number | null; export declare const summarizeRunTimes: (runs: readonly RunSample[], { now, minutes, buckets }: { now: number; minutes: number; buckets: number; }) => RunTimeSummary; //# sourceMappingURL=run-times.d.ts.map