import { Cardano, Handle } from '.'; import { ComposableError } from '@cardano-sdk/util'; import { CustomError } from 'ts-custom-error'; export declare enum ProviderFailure { Conflict = "CONFLICT", NotFound = "NOT_FOUND", Unknown = "UNKNOWN", Forbidden = "FORBIDDEN", InvalidResponse = "INVALID_RESPONSE", NotImplemented = "NOT_IMPLEMENTED", Unhealthy = "UNHEALTHY", ConnectionFailure = "CONNECTION_FAILURE", BadRequest = "BAD_REQUEST", ServerUnavailable = "SERVER_UNAVAILABLE" } export declare const providerFailureToStatusCodeMap: { [key in ProviderFailure]: number; }; export declare const statusCodeMapToProviderFailure: Map; export declare const reasonToProviderFailure: (reason: string) => ProviderFailure; export declare class ProviderError extends ComposableError { reason: ProviderFailure; detail?: string | undefined; constructor(reason: ProviderFailure, innerError?: InnerError, detail?: string | undefined); } export declare class HandleOwnerChangeError extends CustomError { handle: Handle; expectedAddress: Cardano.PaymentAddress; actualAddress: Cardano.PaymentAddress | null; constructor(handle: Handle, expectedAddress: Cardano.PaymentAddress, actualAddress: Cardano.PaymentAddress | null); } export declare enum SerializationFailure { InvalidType = "INVALID_TYPE", Overflow = "OVERFLOW", InvalidAddress = "INVALID_ADDRESS", MaxLengthLimit = "MAX_LENGTH_LIMIT", InvalidScript = "INVALID_SCRIPT", InvalidNativeScriptKind = "INVALID_NATIVE_SCRIPT_KIND", InvalidScriptType = "INVALID_SCRIPT_TYPE", InvalidDatum = "INVALID_DATUM" } export declare class SerializationError extends ComposableError { reason: SerializationFailure; detail?: string | undefined; constructor(reason: SerializationFailure, detail?: string | undefined, innerError?: InnerError); } export declare class InvalidProtocolParametersError extends CustomError { constructor(reason: string); } export declare class NotImplementedError extends CustomError { constructor(missingFeature: string); } export declare class TimeoutError extends CustomError { constructor(message: string); } //# sourceMappingURL=errors.d.ts.map