import { EmailError, type FailurePhase } from '@fluxmail/core'; export interface GraphErrorLike { status?: number; code?: string; message?: string; retryAfterMs?: number; } export declare class GraphHttpError extends Error implements GraphErrorLike { readonly status: number; readonly code: string | undefined; readonly retryAfterMs?: number | undefined; constructor(status: number, code: string | undefined, message: string, retryAfterMs?: number | undefined); } export declare function isRetryableGraphError(err: unknown): boolean; /** Map a Graph or network error to an EmailError. `phase` applies when the error has none yet. */ export declare function toEmailError(err: unknown, phase?: FailurePhase): EmailError; //# sourceMappingURL=errors.d.ts.map