/**
 * GitHub rate-limit header parser.
 *
 * GitHub returns 403 for primary rate-limit (with `X-RateLimit-Remaining: 0`
 * and `X-RateLimit-Reset: <epoch>`) and 429 + `Retry-After: <seconds>` 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<string, string | undefined>, status: number, now?: number): RateLimitInfo;
//# sourceMappingURL=ratelimit.d.ts.map