export type AuthSource = "GH_TOKEN" | "GITHUB_TOKEN" | "gh auth token" | "GITHUB_PERSONAL_ACCESS_TOKEN"; export declare function _resetTokenCache(): void; export declare function hasCachedToken(): boolean; export declare function clearTokenCache(): void; /** * `extra` lets callers layer additional headers (e.g. `If-None-Match` for * conditional REST requests) on top of the standard auth/version headers. */ export declare function makeAuthHeaders(extra?: Record): Promise<{ headers: Record; source: AuthSource; }>;