/**
 * Quota Fetcher for GitHub Copilot OAuth (ghcp) Accounts
 *
 * Fetches quota information from GitHub `/copilot_internal/user` endpoint
 * using the account token managed by CLIProxy auth flow.
 */
import type { GhcpQuotaResult, GhcpQuotaSnapshot } from './quota-types';
interface RawGhcpQuotaSnapshot {
    entitlement?: number;
    overage_count?: number;
    overage_permitted?: boolean;
    percent_remaining?: number;
    quota_id?: string;
    quota_remaining?: number;
    remaining?: number;
    unlimited?: boolean;
}
interface TokenData {
    access_token?: string;
    token?: {
        access_token?: string;
    };
}
declare function normalizeSnapshot(raw?: RawGhcpQuotaSnapshot): GhcpQuotaSnapshot;
declare function extractAccessToken(tokenData: TokenData): string | null;
/**
 * Fetch quota for one ghcp account.
 */
export declare function fetchGhcpQuota(accountId: string, verbose?: boolean): Promise<GhcpQuotaResult>;
/**
 * Fetch quota for all ghcp accounts.
 */
export declare function fetchAllGhcpQuotas(verbose?: boolean): Promise<{
    account: string;
    quota: GhcpQuotaResult;
}[]>;
export { normalizeSnapshot as normalizeGhcpSnapshot, extractAccessToken as extractGhcpAccessToken };
//# sourceMappingURL=quota-fetcher-ghcp.d.ts.map