@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
11 lines • 881 B
TypeScript
/**
* Whether usage the provider reported AFTER a limit hold began shows the account can serve again (senpi#6536).
* A provider can lift a limit before the reset it stated (a usage reset the user redeemed); the stated reset is
* then only a ceiling. Only a reading newer than the hold counts, every window it reports must be under its
* limit (or already past its reset), and a reading with no windows or an error says nothing.
*/
import type { AccountLimits } from "./limit-store.ts";
export declare function usageShowsCapacity(limits: AccountLimits, since: number, now: number): boolean;
/** The accounts of `provider` whose reported usage, newer than `since`, shows they can serve again. */
export declare function accountsWithCapacity(snapshot: readonly AccountLimits[], provider: string, since: number, now: number): string[];
//# sourceMappingURL=usage-capacity.d.ts.map