export declare class DownloadFailure extends Error { readonly status: number | null; readonly kind: string; readonly attempts: number; readonly retryable: boolean; constructor(status: number | null, kind: string, attempts: number, retryable?: boolean); } export interface FailureInfo { status: number | null; kind: string; attempts: number; } export declare function isAbort(err: unknown): boolean; export declare function isAuthExpired(err: unknown): boolean; /** Reduces any failure to a status code and a kind. Messages are never kept: they can carry URLs or names. */ export declare function describeFailure(err: unknown): FailureInfo; export interface ErrorRecord extends FailureInfo { type: string; id?: number; } export declare class ErrorLog { private readonly file; private count; constructor(file: string); static create(file: string, truncate: boolean): Promise; get total(): number; record(entry: ErrorRecord): Promise; } export interface ErrorGroup { type: string; status: number | null; kind: string; count: number; } export declare function groupErrors(file: string): Promise; //# sourceMappingURL=errors.d.ts.map