import { WorkerRecord } from "./keys.js"; import { Transport } from "./proxy.js"; //#region src/stats.d.ts type WorkerStatsResult = { sessionId: string; clientId: string; hostname: string; } & ({ stats: Record; } | { error: "unreachable"; }); /** Collects `GET /_pinned/stats` from every worker, attested per * hop; a failing or slow worker reports `error: "unreachable"`. */ declare const collectWorkerStats: (workers: WorkerRecord[], now: number, fetchImpl: Transport.FetchLike) => Promise; //#endregion export { WorkerStatsResult, collectWorkerStats }; //# sourceMappingURL=stats.d.ts.map