import type { CredentialRankingContext, CredentialRankingStrategy, UsageLimit, UsageProvider, UsageReport } from "../usage.js"; export declare const antigravityUsageProvider: UsageProvider; /** Map an Antigravity model id to its backend quota-counter key. */ export declare function getAntigravityCounterKeyForModel(modelId: string | undefined): string | undefined; /** * Scope an Antigravity report to the active model's backend counter, falling * back to legacy default counters only when that backend has no limits. * * Exhaustion checks are only safe with a concrete backend counter. A no-model * credential lookup (for example image-provider discovery) must not turn one * exhausted family into a provider-wide block. */ export declare function scopeAntigravityLimitsForModel(report: UsageReport, context: CredentialRankingContext | undefined): UsageLimit[]; /** * Antigravity quotas are returned per backend counter (Anthropic / Google / * OpenAI) and can include both daily and weekly windows. `fetchAntigravityUsage` * sorts `limits` ascending by `remainingFraction`; after model-family scoping, * the most-pressured relevant counter/window is index 0. * * Leave `secondary` unset: AuthStorage compares secondary metrics before * primary metrics, which is correct for providers with a fixed short/long * split but wrong here. Ranking Antigravity by the bottleneck counter first * avoids preferring an account at 95% Gemini daily / 0% Claude weekly over one * with healthier Gemini headroom. */ export declare const antigravityRankingStrategy: CredentialRankingStrategy;