/** * HighLevel rate limit headers returned on every response. * Burst: `x-ratelimit-max` requests per `x-ratelimit-interval-milliseconds`. * Daily: `x-ratelimit-limit-daily` requests per day. */ export declare const RATE_LIMIT_HEADERS: { readonly dailyLimit: "x-ratelimit-limit-daily"; readonly dailyRemaining: "x-ratelimit-daily-remaining"; readonly dailyReset: "x-ratelimit-daily-reset"; readonly intervalMs: "x-ratelimit-interval-milliseconds"; readonly max: "x-ratelimit-max"; readonly remaining: "x-ratelimit-remaining"; }; /** Which limit a 429 response hit */ export type RateLimitScope = 'burst' | 'daily' | 'unknown'; export interface RateLimitInfo { scope: RateLimitScope; /** Length of the burst window in milliseconds */ intervalMs?: number; /** Maximum requests allowed per burst window */ max?: number; /** Requests remaining in the current burst window */ remaining?: number; /** Daily request limit */ dailyLimit?: number; /** Requests remaining today */ dailyRemaining?: number; /** Milliseconds until the daily limit resets, when the API reports it */ dailyResetMs?: number; } /** * Parse HighLevel's rate limit headers. Returns undefined when none are present. * On a 429 response the scope is `daily` when no daily requests remain, * otherwise `burst`. */ export declare function parseRateLimitHeaders(headers: any): RateLimitInfo | undefined; //# sourceMappingURL=rate-limit.d.ts.map