import { OpenfortError, type OpenfortErrorOptions } from './base.js'; /** * The SDK reached a branch it has no implementation for, such as an unknown asset or transaction format. * * @example * ```ts * import { UnsupportedOperationError } from '@openfort/react' * * const error = new UnsupportedOperationError({ operation: 'Legacy transaction signing' }) * console.log(error.shortMessage) * ``` */ export declare class UnsupportedOperationError extends OpenfortError { name: string; constructor({ operation, ...options }: OpenfortErrorOptions & { operation: string; }); } /** * An HTTP call to an Openfort or partner API returned a non-OK response. * * `status` and `body` are kept on the instance so a caller can retry or report * without re-parsing the composed message. * * @example * ```ts * import { ApiRequestError } from '@openfort/react' * * const error = new ApiRequestError({ operation: 'Create funding session', status: 503 }) * if (error.status === 503) console.log('Try again later') * ``` */ export declare class ApiRequestError extends OpenfortError { name: string; /** HTTP status code of the failed response. */ status?: number | undefined; /** Server-supplied error text, when the response carried one. */ body?: string | undefined; constructor({ operation, status, body, ...options }: OpenfortErrorOptions & { operation: string; status?: number | undefined; body?: string | undefined; }); }