import type { AlibabaCodingPlanTier } from "./types.js"; export declare const ALIBABA_CODING_PLAN_LIMITS: Readonly>; export interface QwenLocalQuotaStateFileV1 { version: 1; utcDay: string; dayCount: number; recent: number[]; updatedAt: number; } export interface AlibabaCodingPlanStateFileV1 { version: 1; recent: number[]; updatedAt: number; } export interface QwenComputedQuota { day: { used: number; limit: number; percentRemaining: number; resetTimeIso: string; }; rpm: { used: number; limit: number; percentRemaining: number; resetTimeIso?: string; }; } interface RollingComputedQuotaWindow { used: number; limit: number; percentRemaining: number; resetTimeIso?: string; } export interface AlibabaCodingPlanComputedQuota { tier: AlibabaCodingPlanTier; fiveHour: RollingComputedQuotaWindow; weekly: RollingComputedQuotaWindow; monthly: RollingComputedQuotaWindow; } export declare function getQwenLocalQuotaPath(): string; export declare function getAlibabaCodingPlanQuotaPath(): string; export declare function readQwenLocalQuotaState(params?: { nowMs?: number; }): Promise; export declare function readAlibabaCodingPlanQuotaState(params?: { nowMs?: number; }): Promise; export declare function recordQwenCompletion(params?: { atMs?: number; }): Promise; export declare function recordAlibabaCodingPlanCompletion(params?: { atMs?: number; }): Promise; export declare function computeQwenQuota(params: { state: QwenLocalQuotaStateFileV1; nowMs?: number; dayLimit?: number; rpmLimit?: number; }): QwenComputedQuota; export declare function computeAlibabaCodingPlanQuota(params: { state: AlibabaCodingPlanStateFileV1; tier: AlibabaCodingPlanTier; nowMs?: number; limits?: { fiveHour: number; weekly: number; monthly: number; }; }): AlibabaCodingPlanComputedQuota; export {}; //# sourceMappingURL=qwen-local-quota.d.ts.map