import type { AxiosResponse } from "axios"; export declare const enum ArweaveErrorType { TX_NOT_FOUND = "TX_NOT_FOUND", TX_FAILED = "TX_FAILED", TX_INVALID = "TX_INVALID", BLOCK_NOT_FOUND = "BLOCK_NOT_FOUND" } export default class ArweaveError extends Error { readonly type: ArweaveErrorType; readonly response?: AxiosResponse; constructor(type: ArweaveErrorType, optional?: { message?: string; response?: AxiosResponse; }); getType(): ArweaveErrorType; } type AxiosResponseLite = { status: number; statusText?: string; data: { error: string; } | any; }; export declare function getError(resp: AxiosResponseLite): string; export {};