import { SmrtCollection } from '@happyvertical/smrt-core'; import { UsersCliAuthApproveLimit } from '../models/CliAuthApproveLimit.js'; export type CliAuthApproveReservation = { allowed: true; windowStartedAt: string; } | { allowed: false; retryAfterSeconds: number; }; export declare class UsersCliAuthApproveLimitCollection extends SmrtCollection { static readonly _itemClass: typeof UsersCliAuthApproveLimit; /** * Atomically reserve one attempt across every process using this database. * Failed attempts retain their reservation; successful attempts release it. */ reserveAttempt(input: { maxAttempts: number; userId: string; windowMs: number; }): Promise; /** Release the reservation for an attempt that did not fail authentication. */ releaseAttempt(userId: string, windowStartedAt: string): Promise; } //# sourceMappingURL=CliAuthApproveLimitCollection.d.ts.map