/** * GitHub rate-limit header parser. * * GitHub returns 403 for primary rate-limit (with `X-RateLimit-Remaining: 0` * and `X-RateLimit-Reset: `) and 429 + `Retry-After: ` for * secondary rate-limit. Backfill must pause and resume rather than error. */ export interface RateLimitInfo { readonly sleepSeconds: number; readonly reason: 'primary' | 'secondary' | 'none'; } /** * Parse rate-limit signal from a GitHub HTTP response. * * @param headers Lower-cased HTTP response headers. * @param status HTTP status code. * @param now Optional current epoch seconds (for deterministic tests). */ export declare function parseRateLimit(headers: Record, status: number, now?: number): RateLimitInfo; //# sourceMappingURL=ratelimit.d.ts.map