import { EmailError } from '@fluxmail/core'; export declare function isInsufficientScope(err: unknown): boolean; export declare function isRetryable(err: unknown): boolean; /** * A non-idempotent request can be committed before a 5xx reaches the client, * so retrying can duplicate its effect. Retry only responses that reject the * request before processing it. */ export declare function isRetryableForNonIdempotentRequest(err: unknown): boolean; /** Map googleapis errors onto the normalized EmailError codes. */ export declare function toEmailError(err: unknown): EmailError; export declare function withRetry(fn: () => Promise, maxRetries?: number, retryable?: (err: unknown) => boolean, signal?: AbortSignal): Promise; //# sourceMappingURL=errors.d.ts.map