import type { APIErrorCode, SignerErrorCode as SignerErrorCodeType } from 'rango-types'; export type ErrorDetail = { extraMessage: string; extraMessageDetail?: string | null | undefined; extraMessageErrorCode: SignerErrorCodeType | APIErrorCode | null; }; type ErrorRoot = string | Record | null; export declare class PrettyError extends Error { _isPrettyError: boolean; private readonly detail?; private readonly root?; private readonly code?; constructor(code: APIErrorCode, m: string, root?: ErrorRoot, detail?: string); static isPrettyError(obj: unknown): obj is PrettyError; static AssertionFailed(m: string): PrettyError; static BadStatusCode(message: string, statusCode: number | string): PrettyError; static CreateTransaction(detail: string): PrettyError; static WalletMissing(): PrettyError; static BlockchainMissing(): PrettyError; getErrorDetail(): ErrorDetail; } export declare function mapAppErrorCodesToAPIErrorCode(errorCode: string | null): APIErrorCode; type AxiosError = { isAxiosError: true; response?: { data?: { error?: string; }; }; }; export declare function isAxiosError(obj: unknown): obj is AxiosError; export declare const prettifyErrorMessage: (obj: unknown) => ErrorDetail; export {}; //# sourceMappingURL=shared-errors.d.ts.map