/** * OAuth/access-token subscription adapters: Claude, Codex, Gemini, * GitHub Copilot, Cursor, Grok, and Amp. Each is a constrained endpoint probe * authenticated with a user access token. */ import type { AccountAdapter, RawQuotaWindow } from "../types.js"; export declare const CLAUDE_OAUTH_TOKEN_REF = "CLAUDE_OAUTH_TOKEN"; export declare const CODEX_ACCESS_TOKEN_REF = "CODEX_ACCESS_TOKEN"; export declare const GEMINI_ACCESS_TOKEN_REF = "GEMINI_ACCESS_TOKEN"; export declare const COPILOT_TOKEN_REF = "GITHUB_COPILOT_TOKEN"; export declare const CURSOR_TOKEN_REF = "CURSOR_ACCESS_TOKEN"; export declare const GROK_TOKEN_REF = "GROK_ACCESS_TOKEN"; export declare const AMP_API_KEY_REF = "AMP_API_KEY"; /** Claude subscription usage via the OAuth usage endpoint. */ export declare const claudeOauthAdapter: AccountAdapter; /** * Parse ChatGPT `wham/usage` windows. * Prefer `used_percent` (official Codex shape); fall back to used/limit ratios. */ export declare function parseCodexUsage(body: unknown): RawQuotaWindow[]; /** Codex (ChatGPT subscription) usage via the wham endpoint. */ export declare const codexWhamAdapter: AccountAdapter; /** Gemini Code Assist quota via the Cloud Code internal endpoint. */ export declare const geminiQuotaAdapter: AccountAdapter; /** GitHub Copilot quota snapshots (token from the device flow). */ export declare const copilotDeviceAdapter: AccountAdapter; /** Cursor plan usage via the dashboard Connect RPC endpoint. */ export declare const cursorSubscriptionAdapter: AccountAdapter; /** Parse cli-chat-proxy `/v1/billing` (and compatible shapes). */ export declare function parseGrokBilling(body: unknown): RawQuotaWindow[]; /** * Parse Token Monitor-style Grok Build credits (`GetGrokCreditsConfig` / REST). * Accepts remaining+limit or used+limit without requiring Electron CLI spawn. */ export declare function parseGrokCredits(body: unknown): RawQuotaWindow[]; /** Grok subscription: CLI billing first, then grok.com credits REST fallback. */ export declare const grokSubscriptionAdapter: AccountAdapter; /** Amp balance via the internal RPC endpoint. */ export declare const ampSubscriptionAdapter: AccountAdapter; //# sourceMappingURL=oauth-subscriptions.d.ts.map