/** * AgentCreditsClient — thin client for the `agentDeductCredits` Firebase callable. * * Called after each successful Gemini API call to deduct credits from the user's account. * Reads the CareerVivid API key from config and sends it with each request. */ export interface DeductResult { ok: true; creditsUsed: number; creditsRemaining: number; monthlyLimit: number; } export interface LimitReachedResult { ok: false; reason: "limit_reached"; creditsRemaining: number; } export type CreditDeductionResult = DeductResult | LimitReachedResult; export declare class AgentCreditsClient { private cvApiKey; private model; /** Running session totals */ private sessionCreditsUsed; private lastKnownRemaining; constructor(cvApiKey: string, model: string); /** * Deduct credits for one API call. * Returns the result — callers should check result.ok and handle limit_reached. */ deduct(calls?: number): Promise; /** Total credits used in this session */ get sessionUsed(): number; /** Last known remaining credits (may be null before first deduction) */ get remaining(): number | null; } //# sourceMappingURL=AgentCreditsClient.d.ts.map