/** * GraphQLErrorMapper — Classifies @octokit/graphql errors into ido4 error types. * * Centralizes all error classification so the GraphQL client and repositories * don't need to understand raw @octokit error shapes. */ import type { RateLimitState } from './types.js'; export declare class GraphQLErrorMapper { /** * Map an @octokit/graphql error to the appropriate ido4 error. * Always throws — never returns. */ static mapError(error: unknown, operation: string): never; /** * Extract rate limit state from response headers. * Returns null if the required headers are missing. */ static extractRateLimitState(headers: Record): RateLimitState | null; /** * Determine if an error is retryable. */ static isRetryable(error: unknown): boolean; /** Parse a numeric header value. Returns null if missing or unparsable. */ private static parseHeader; /** Parse reset date from headers, defaulting to 60s from now if missing. */ private static parseResetDate; } //# sourceMappingURL=error-mapper.d.ts.map