/// import type { RequestError } from 'algosdk'; import type { AnyMap } from "../../types"; import { ErrorDescriptor, ERRORS } from "./errors-list"; export { ERRORS }; export declare class BuilderError extends Error { static isBuilderError(other: any): other is BuilderError; readonly errorDescriptor: ErrorDescriptor; readonly number: number; readonly parent?: Error; private readonly _isBuilderError; constructor(errorDescriptor: ErrorDescriptor, messageArguments?: AnyMap, parentError?: Error); } /** * This class is used to throw errors from algob plugins. */ export declare class BuilderPluginError extends Error { static isBuilderPluginError(other: any): other is BuilderPluginError; readonly parent?: Error; readonly pluginName?: string; private readonly _isBuilderPluginError; /** * Creates a BuilderPluginError. * * @param pluginName The name of the plugin. * @param message An error message that will be shown to the user. * @param parent The error that causes this error to be thrown. */ constructor(pluginName: string, message: string, parent?: Error); /** * A DEPRECATED constructor that automatically obtains the caller package and * use it as plugin name. * * @deprecated Use the above constructor. * * @param message An error message that will be shown to the user. * @param parent The error that causes this error to be thrown. */ constructor(message: string, parent?: Error); } export declare function parseAlgorandError(e: RequestError, ctx: AnyMap): Error;