import { createPinboard } from "./server.js"; //#region src/outlier.d.ts declare namespace createOutlierDetector { type Deps = { /** Live worker count the ejection cap is computed against. */ workerCount(): Promise; now?: (() => number) | undefined; }; type Instance = { /** SessionIds currently withheld from the placement candidate set. */ ejected(): string[]; /** Serve/wake outcome for a placed worker: ok resets its streak, a * failure counts toward ejection. */ report(sessionId: string, ok: boolean): Promise; }; } /** * Envoy-style outlier ejection: consecutive activation failures eject a * worker from the placement candidate set for a doubling cooldown, capped so * a fleet-wide failure never empties the set. */ declare const createOutlierDetector: (deps: createOutlierDetector.Deps, options: createPinboard.OutlierOptions) => createOutlierDetector.Instance; //#endregion export { createOutlierDetector }; //# sourceMappingURL=outlier.d.ts.map