import type { ProviderQuotaResult, QuotaWindow } from "@penclipai/adapter-utils"; export declare function claudeConfigDir(): string; interface ClaudeAuthStatus { loggedIn: boolean; authMethod: string | null; subscriptionType: string | null; } export declare function readClaudeAuthStatus(): Promise; /** * Read the credential that a `claude` login performed inside an isolated auth * home left in the macOS Keychain. Only that home's own suffixed item is * consulted — never the unsuffixed item that holds the server operator's * machine-level login. Returns null off macOS. */ export declare function readIsolatedClaudeKeychainToken(loginHome: string): Promise; export declare function readClaudeToken(options?: { allowKeychain?: boolean; }): Promise; /** Convert a utilization value to a 0-100 integer percent. Returns null for null/undefined input. * Handles both 0-1 fractions (legacy) and 0-100 percentages (current API). */ export declare function toPercent(utilization: number | null | undefined): number | null; /** fetch with an abort-based timeout so a hanging provider api doesn't block the response indefinitely */ export declare function fetchWithTimeout(url: string, init: RequestInit, ms?: number): Promise; export declare function fetchClaudeQuota(token: string, signal?: AbortSignal): Promise; export declare function parseClaudeCliUsageText(text: string): QuotaWindow[]; export declare function captureClaudeCliUsageText(timeoutMs?: number): Promise; export declare function fetchClaudeCliQuota(): Promise; export declare function getQuotaWindows(): Promise; export {}; //# sourceMappingURL=quota.d.ts.map