import { ConfigService } from '@nestjs/config';
import { PrismaService } from '../database/prisma.service';
export interface QuotaReservation {
    id: string;
}
export declare function pacificQuotaDate(now?: Date): Date;
export declare class QuotaService {
    private readonly prisma;
    private readonly config;
    constructor(prisma: PrismaService, config: ConfigService);
    reserve(operationId: string, attemptStartedAt: Date, provider: string, model: string): Promise<QuotaReservation>;
    complete(reservation: QuotaReservation, succeeded: boolean): Promise<void>;
    completeAttempt(operationId: string, attemptStartedAt: Date, succeeded: boolean): Promise<void>;
    private finalize;
}
