import { grpc } from "@injectivelabs/grpc-web";
import { StatusCodes } from "http-status-codes";

//#region src/exceptions/types/codes.d.ts
declare const GrpcErrorCode: {
  readonly OK: 0;
  readonly Canceled: 1;
  readonly Unknown: 2;
  readonly InvalidArgument: 3;
  readonly DeadlineExceeded: 4;
  readonly NotFound: 5;
  readonly AlreadyExists: 6;
  readonly PermissionDenied: 7;
  readonly ResourceExhausted: 8;
  readonly FailedPrecondition: 9;
  readonly Aborted: 10;
  readonly OutOfRange: 11;
  readonly Unimplemented: 12;
  readonly Internal: 13;
  readonly Unavailable: 14;
  readonly DataLoss: 15;
  readonly Unauthenticated: 16;
};
type GrpcErrorCode = (typeof GrpcErrorCode)[keyof typeof GrpcErrorCode];
declare const grpcErrorCodeToErrorCode: <T extends number>(grpcErrorCode: T) => GrpcErrorCode;
declare const TransactionChainErrorModule: {
  readonly Auction: "auction";
  readonly CosmosSdk: "sdk";
  readonly Staking: "staking";
  readonly Bank: "bank";
  readonly Distribution: "distribution";
  readonly Gov: "gov";
  readonly Exchange: "exchange";
  readonly Insurance: "insurance";
  readonly Ocr: "ocr";
  readonly Oracle: "oracle";
  readonly Peggy: "peggy";
  readonly TokenFactory: "tokenfactory";
  readonly Wasmx: "wasmx";
  readonly Wasm: "wasm";
  readonly AuthZ: "authz";
};
type TransactionChainErrorModule = (typeof TransactionChainErrorModule)[keyof typeof TransactionChainErrorModule];
declare const ChainCosmosErrorCode: {
  readonly ErrTxDecode: 2;
  readonly ErrInvalidSequence: 3;
  readonly ErrUnauthorized: 4;
  readonly ErrInsufficientFunds: 5;
  readonly ErrUnknownRequest: 6;
  readonly ErrInvalidAddress: 7;
  readonly ErrInvalidPubKey: 8;
  readonly ErrUnknownAddress: 9;
  readonly ErrInvalidCoins: 10;
  readonly ErrOutOfGas: 11;
  readonly ErrMemoTooLarge: 12;
  readonly ErrInsufficientFee: 13;
  readonly ErrTooManySignatures: 14;
  readonly ErrNoSignatures: 15;
  readonly ErrJSONMarshal: 16;
  readonly ErrJSONUnmarshal: 17;
  readonly ErrInvalidRequest: 18;
  readonly ErrTxInMempoolCache: 19;
  readonly ErrMempoolIsFull: 20;
  readonly ErrTxTooLarge: 21;
  readonly ErrKeyNotFound: 22;
  readonly ErrWrongPassword: 23;
  readonly ErrorInvalidSigner: 24;
  readonly ErrorInvalidGasAdjustment: 25;
  readonly ErrInvalidHeight: 26;
  readonly ErrInvalidVersion: 27;
  readonly ErrInvalidChainID: 28;
  readonly ErrInvalidType: 29;
  readonly ErrTxTimeoutHeight: 30;
  readonly ErrUnknownExtensionOptions: 31;
  readonly ErrWrongSequence: 32;
  readonly ErrPackAny: 33;
  readonly ErrUnpackAny: 34;
  readonly ErrLogic: 35;
  readonly ErrConflict: 36;
  readonly ErrNotSupported: 37;
  readonly ErrNotFound: 38;
  readonly ErrIO: 39;
  readonly ErrAppConfig: 40;
  readonly ErrInvalidGasLimit: 41;
};
type ChainCosmosErrorCode = (typeof ChainCosmosErrorCode)[keyof typeof ChainCosmosErrorCode];
declare const ChainExchangeModuleErrorCode: {
  readonly ErrOrderInvalid: 1;
  readonly ErrSpotMarketNotFound: 2;
  readonly ErrSpotMarketExists: 3;
  readonly ErrBadField: 4;
  readonly ErrMarketInvalid: 5;
  readonly ErrInsufficientDeposit: 6;
  readonly ErrUnrecognizedOrderType: 7;
  readonly ErrInsufficientPositionQuantity: 8;
  readonly ErrOrderHashInvalid: 9;
  readonly ErrBadSubaccountID: 10;
  readonly ErrInvalidTicker: 11;
  readonly ErrInvalidBaseDenom: 12;
  readonly ErrInvalidQuoteDenom: 13;
  readonly ErrInvalidOracle: 14;
  readonly ErrInvalidExpiry: 15;
  readonly ErrInvalidPrice: 16;
  readonly ErrInvalidQuantity: 17;
  readonly ErrUnsupportedOracleType: 18;
  readonly ErrOrderDoesntExist: 19;
  readonly ErrOrderbookFillInvalid: 20;
  readonly ErrPerpetualMarketExists: 21;
  readonly ErrExpiryFuturesMarketExists: 22;
  readonly ErrExpiryFuturesMarketExpired: 23;
  readonly ErrNoLiquidity: 24;
  readonly ErrSlippageExceedsWorstPrice: 25;
  readonly ErrInsufficientOrderMargin: 26;
  readonly ErrDerivativeMarketNotFound: 27;
  readonly ErrPositionNotFound: 28;
  readonly ErrInvalidReduceOnlyPositionDirection: 29;
  readonly ErrPriceSurpassesBankruptcyPrice: 30;
  readonly ErrPositionNotLiquidable: 31;
  readonly ErrInvalidTriggerPrice: 32;
  readonly ErrInvalidOracleType: 33;
  readonly ErrInvalidPriceTickSize: 34;
  readonly ErrInvalidQuantityTickSize: 35;
  readonly ErrInvalidMargin: 36;
  readonly ErrExceedsOrderSideCount: 37;
  readonly ErrMarketOrderAlreadyExists: 38;
  readonly ErrConditionalMarketOrderAlreadyExists: 39;
  readonly ErrMarketLaunchProposalAlreadyExists: 40;
  readonly ErrInvalidMarketStatus: 41;
  readonly ErrSameDenoms: 42;
  readonly ErrSameOracles: 43;
  readonly ErrFeeRatesRelation: 44;
  readonly ErrMarginsRelation: 45;
  readonly ErrExceedsMaxOracleScaleFactor: 46;
  readonly ErrSpotExchangeNotEnabled: 47;
  readonly ErrDerivativesExchangeNotEnabled: 48;
  readonly ErrOraclePriceDeltaExceedsThreshold: 49;
  readonly ErrInvalidHourlyInterestRate: 50;
  readonly ErrInvalidHourlyFundingRateCap: 51;
  readonly ErrInvalidMarketFundingParamUpdate: 52;
  readonly ErrInvalidTradingRewardCampaign: 53;
  readonly ErrInvalidFeeDiscountSchedule: 54;
  readonly ErrInvalidLiquidationOrder: 55;
  readonly ErrTradingRewardCampaignDistributionError: 56;
  readonly ErrInvalidTradingRewardsPendingPointsUpdate: 57;
  readonly ErrInvalidBatchMsgUpdate: 58;
  readonly ErrExceedsTopOfBookPrice: 59;
  readonly ErrInvalidOrderTypeForMessage: 60;
  readonly ErrInvalidDMMSender: 61;
  readonly ErrAlreadyOptedOutOfRewards: 62;
  readonly ErrInvalidMarginRatio: 63;
  readonly ErrBelowMinimalContribution: 64;
  readonly ErrLowPositionMargin: 65;
  readonly ErrInvalidTotalSupply: 66;
  readonly ErrInvalidLpTokenBurnAmount: 67;
  readonly ErrUnsupportedAction: 68;
  readonly ErrNegativePositionQuantity: 69;
  readonly ErrBinaryOptionsMarketExists: 70;
  readonly ErrBinaryOptionsMarketNotFound: 71;
  readonly ErrInvalidSettlement: 72;
  readonly ErrAccountDoesntExist: 73;
  readonly ErrSenderIsNotAnAdmin: 74;
  readonly ErrMarketAlreadyScheduledToSettle: 75;
  readonly ErrGenericMarketNotFound: 76;
  readonly ErrInvalidDenomDecimal: 77;
  readonly ErrInvalidState: 78;
  readonly ErrTransientOrdersUpToCancelNotSupported: 79;
  readonly ErrInvalidTrade: 80;
  readonly ErrNoMarginLocked: 81;
  readonly ErrInvalidAccessLevel: 82;
  readonly ErrInvalidAddress: 83;
  readonly ErrInvalidArgument: 84;
  readonly ErrInvalidFundsDirection: 85;
  readonly ErrNoFundsProvided: 86;
  readonly ErrInvalidSignature: 87;
  readonly ErrNoFundsToUnlock: 88;
  readonly ErrNoMsgsProvided: 89;
  readonly ErrNoMsgProvided: 90;
  readonly ErrInvalidAmount: 91;
  readonly ErrFeatureDisabled: 92;
  readonly ErrTooMuchOrderMargin: 93;
  readonly ErrBadSubaccountNonce: 94;
  readonly ErrInsufficientFunds: 95;
  readonly ErrPostOnlyMode: 96;
  readonly ErrClientOrderIdAlreadyExists: 97;
  readonly ErrInvalidCid: 98;
  readonly ErrInvalidClosingDirection: 99;
  readonly ErrInvalidNotional: 100;
};
type ChainExchangeModuleErrorCode = (typeof ChainExchangeModuleErrorCode)[keyof typeof ChainExchangeModuleErrorCode];
declare const ChainAuctionErrorCodes: {
  readonly ErrBidInvalid: 1;
  readonly ErrBidRound: 2;
};
type ChainAuctionErrorCodes = (typeof ChainAuctionErrorCodes)[keyof typeof ChainAuctionErrorCodes];
declare const ChainAuthZErrorCodes: {
  readonly ErrNoAuthorizationFound: 2;
  readonly ErrInvalidExpirationTime: 3;
  readonly ErrUnknownAuthorizationType: 4;
  readonly ErrNoGrantKeyFound: 5;
  readonly ErrAuthorizationExpired: 6;
  readonly ErrGranteeIsGranter: 7;
  readonly ErrAuthorizationNumOfSigners: 9;
  readonly ErrNegativeMaxTokens: 12;
};
type ChainAuthZErrorCodes = (typeof ChainAuthZErrorCodes)[keyof typeof ChainAuthZErrorCodes];
declare const ChainInsuranceErrorCodes: {
  readonly ErrInsuranceFundAlreadyExists: 1;
  readonly ErrInsuranceFundNotFound: 2;
  readonly ErrRedemptionAlreadyExists: 3;
  readonly ErrInvalidDepositAmount: 4;
  readonly ErrInvalidDepositDenom: 5;
  readonly ErrPayoutTooLarge: 6;
  readonly ErrInvalidTicker: 7;
  readonly ErrInvalidQuoteDenom: 8;
  readonly ErrInvalidOracle: 9;
  readonly ErrInvalidExpirationTime: 10;
  readonly ErrInvalidMarketID: 11;
  readonly ErrInvalidShareDenom: 12;
};
type ChainInsuranceErrorCodes = (typeof ChainInsuranceErrorCodes)[keyof typeof ChainInsuranceErrorCodes];
declare const ChainOcrErrorCodes: {
  readonly ErrStaleReport: 1;
  readonly ErrIncompleteProposal: 2;
  readonly ErrRepeatedAddress: 3;
  readonly ErrTooManySigners: 4;
  readonly ErrIncorrectConfig: 5;
  readonly ErrConfigDigestNotMatch: 6;
  readonly ErrWrongNumberOfSignatures: 7;
  readonly ErrIncorrectSignature: 8;
  readonly ErrNoTransmitter: 9;
  readonly ErrIncorrectTransmissionData: 10;
  readonly ErrNoTransmissionsFound: 11;
  readonly ErrMedianValueOutOfBounds: 12;
  readonly ErrIncorrectRewardPoolDenom: 13;
  readonly ErrNoRewardPool: 14;
  readonly ErrInvalidPayees: 15;
  readonly ErrModuleAdminRestricted: 16;
  readonly ErrFeedAlreadyExists: 17;
  readonly ErrFeedDoesntExists: 19;
  readonly ErrAdminRestricted: 20;
  readonly ErrInsufficientRewardPool: 21;
  readonly ErrPayeeAlreadySet: 22;
  readonly ErrPayeeRestricted: 23;
  readonly ErrFeedConfigNotFound: 24;
};
type ChainOcrErrorCodes = (typeof ChainOcrErrorCodes)[keyof typeof ChainOcrErrorCodes];
declare const ChainOracleErrorCodes: {
  readonly ErrEmptyRelayerAddr: 1;
  readonly ErrBadRatesCount: 2;
  readonly ErrBadResolveTimesCount: 3;
  readonly ErrBadRequestIDsCount: 4;
  readonly ErrRelayerNotAuthorized: 5;
  readonly ErrBadPriceFeedBaseCount: 6;
  readonly ErrBadPriceFeedQuoteCount: 7;
  readonly ErrUnsupportedOracleType: 8;
  readonly ErrBadMessagesCount: 9;
  readonly ErrBadCoinbaseMessage: 10;
  readonly ErrInvalidEthereumSignature: 11;
  readonly ErrBadCoinbaseMessageTimestamp: 12;
  readonly ErrCoinbasePriceNotFound: 13;
  readonly ErrBadPrice: 14;
  readonly ErrPriceTooLarge: 15;
  readonly ErrInvalidBandIBCRequest: 16;
  readonly ErrSample: 17;
  readonly ErrInvalidPacketTimeout: 18;
  readonly ErrBadSymbolsCount: 19;
  readonly ErrBadIBCPortBind: 20;
  readonly ErrInvalidPortID: 21;
  readonly ErrInvalidChannelID: 22;
  readonly ErrBadRequestInterval: 23;
  readonly ErrInvalidBandIBCUpdateRequest: 24;
  readonly ErrBandIBCRequestNotFound: 25;
  readonly ErrEmptyBaseInfo: 26;
  readonly ErrEmptyProvider: 27;
  readonly ErrInvalidProvider: 28;
  readonly ErrInvalidSymbol: 29;
  readonly ErrRelayerAlreadyExists: 30;
  readonly ErrProviderPriceNotFound: 31;
  readonly ErrInvalidOracleRequest: 32;
  readonly ErrOraclePriceNotFound: 33;
};
type ChainOracleErrorCodes = (typeof ChainOracleErrorCodes)[keyof typeof ChainOracleErrorCodes];
declare const ChainPeggyErrorCodes: {
  readonly ErrInternal: 1;
  readonly ErrDuplicate: 2;
  readonly ErrInvalid: 3;
  readonly ErrTimeout: 4;
  readonly ErrUnknown: 5;
  readonly ErrEmpty: 6;
  readonly ErrOutdated: 7;
  readonly ErrUnsupported: 8;
  readonly ErrNonContiguousEventNonce: 9;
  readonly ErrNoUnbatchedTxsFound: 10;
  readonly ErrResetDelegateKeys: 11;
  readonly ErrSupplyOverflow: 12;
  readonly ErrInvalidEthSender: 13;
  readonly ErrInvalidEthDestination: 14;
};
type ChainPeggyErrorCodes = (typeof ChainPeggyErrorCodes)[keyof typeof ChainPeggyErrorCodes];
declare const ChainTokenFactoryErrorCodes: {
  readonly ErrDenomExists: 2;
  readonly ErrUnauthorized: 3;
  readonly ErrInvalidDenom: 4;
  readonly ErrInvalidCreator: 5;
  readonly ErrInvalidAuthorityMetadata: 6;
  readonly ErrInvalidGenesis: 7;
  readonly ErrSubdenomTooLong: 8;
  readonly ErrSubdenomTooShort: 9;
  readonly ErrSubdenomNestedTooShort: 10;
  readonly ErrCreatorTooLong: 11;
  readonly ErrDenomDoesNotExist: 12;
  readonly ErrAmountNotPositive: 13;
};
type ChainTokenFactoryErrorCodes = (typeof ChainTokenFactoryErrorCodes)[keyof typeof ChainTokenFactoryErrorCodes];
declare const ChainWasmXErrorCodes: {
  readonly ErrInvalidGasLimit: 1;
  readonly ErrInvalidGasPrice: 2;
  readonly ErrInvalidContractAddress: 3;
  readonly ErrAlreadyRegistered: 4;
  readonly ErrDuplicateContract: 5;
  readonly ErrNoContractAddresses: 6;
  readonly ErrInvalidCodeId: 7;
};
type ChainWasmXErrorCodes = (typeof ChainWasmXErrorCodes)[keyof typeof ChainWasmXErrorCodes];
declare const ChainStakingErrorCodes: {
  readonly ErrEmptyValidatorAddr: 2;
  readonly ErrNoValidatorFound: 3;
  readonly ErrValidatorOwnerExists: 4;
  readonly ErrValidatorPubKeyExists: 5;
  readonly ErrValidatorPubKeyTypeNotSupported: 6;
  readonly ErrValidatorJailed: 7;
  readonly ErrBadRemoveValidator: 8;
  readonly ErrCommissionNegative: 9;
  readonly ErrCommissionHuge: 10;
  readonly ErrCommissionGTMaxRate: 11;
  readonly ErrCommissionUpdateTime: 12;
  readonly ErrCommissionChangeRateNegative: 13;
  readonly ErrCommissionChangeRateGTMaxRate: 14;
  readonly ErrCommissionGTMaxChangeRate: 15;
  readonly ErrSelfDelegationBelowMinimum: 16;
  readonly ErrMinSelfDelegationDecreased: 17;
  readonly ErrEmptyDelegatorAddr: 18;
  readonly ErrNoDelegation: 19;
  readonly ErrBadDelegatorAddr: 20;
  readonly ErrNoDelegatorForAddress: 21;
  readonly ErrInsufficientShares: 22;
  readonly ErrDelegationValidatorEmpty: 23;
  readonly ErrNotEnoughDelegationShares: 24;
  readonly ErrNotMature: 25;
  readonly ErrNoUnbondingDelegation: 26;
  readonly ErrMaxUnbondingDelegationEntries: 27;
  readonly ErrNoRedelegation: 28;
  readonly ErrSelfRedelegation: 29;
  readonly ErrTinyRedelegationAmount: 30;
  readonly ErrBadRedelegationDst: 31;
  readonly ErrTransitiveRedelegation: 32;
  readonly ErrMaxRedelegationEntries: 33;
  readonly ErrDelegatorShareExRateInvalid: 34;
  readonly ErrBothShareMsgsGiven: 35;
  readonly ErrNeitherShareMsgsGiven: 36;
  readonly ErrInvalidHistoricalInfo: 37;
  readonly ErrNoHistoricalInfo: 38;
  readonly ErrEmptyValidatorPubKey: 39;
  readonly ErrCommissionLTMinRate: 40;
  readonly ErrUnbondingNotFound: 41;
  readonly ErrUnbondingOnHoldRefCountNegative: 42;
};
type ChainStakingErrorCodes = (typeof ChainStakingErrorCodes)[keyof typeof ChainStakingErrorCodes];
declare const ChainGovErrorCodes: {
  readonly ErrUnknownProposal: 2;
  readonly ErrInactiveProposal: 3;
  readonly ErrAlreadyActiveProposal: 4;
  readonly ErrInvalidProposalContent: 5;
  readonly ErrInvalidProposalType: 6;
  readonly ErrInvalidVote: 7;
  readonly ErrInvalidGenesis: 8;
  readonly ErrNoProposalHandlerExists: 9;
  readonly ErrUnroutableProposalMsg: 10;
  readonly ErrNoProposalMsgs: 11;
  readonly ErrInvalidProposalMsg: 12;
  readonly ErrInvalidSigner: 13;
  readonly ErrInvalidSignalMsg: 14;
  readonly ErrMetadataTooLong: 15;
  readonly ErrMinDepositTooSmall: 16;
  readonly ErrProposalNotFound: 17;
  readonly ErrInvalidProposer: 18;
  readonly ErrNoDeposits: 19;
  readonly ErrVotingPeriodEnded: 20;
  readonly ErrInvalidProposal: 21;
};
type ChainGovErrorCodes = (typeof ChainGovErrorCodes)[keyof typeof ChainGovErrorCodes];
declare const ChainDistributionErrorCodes: {
  readonly ErrEmptyDelegatorAddr: 2;
  readonly ErrEmptyWithdrawAddr: 3;
  readonly ErrEmptyValidatorAddr: 4;
  readonly ErrEmptyDelegationDistInfo: 5;
  readonly ErrNoValidatorDistInfo: 6;
  readonly ErrNoValidatorCommission: 7;
  readonly ErrSetWithdrawAddrDisabled: 8;
  readonly ErrBadDistribution: 9;
  readonly ErrInvalidProposalAmount: 10;
  readonly ErrEmptyProposalRecipient: 11;
  readonly ErrNoValidatorExists: 12;
  readonly ErrNoDelegationExists: 13;
};
type ChainDistributionErrorCodes = (typeof ChainDistributionErrorCodes)[keyof typeof ChainDistributionErrorCodes];
declare const ChainBankErrorCodes: {
  readonly ErrNoInputs: 2;
  readonly ErrNoOutputs: 3;
  readonly ErrInputOutputMismatch: 4;
  readonly ErrSendDisabled: 5;
  readonly ErrDenomMetadataNotFound: 6;
  readonly ErrInvalidKey: 7;
  readonly ErrDuplicateEntry: 8;
  readonly ErrMultipleSenders: 9;
};
type ChainBankErrorCodes = (typeof ChainBankErrorCodes)[keyof typeof ChainBankErrorCodes];
declare const ChainWasmErrorCodes: {
  readonly ErrCreateFailed: 2;
  readonly ErrAccountExists: 3;
  readonly ErrInstantiateFailed: 4;
  readonly ErrExecuteFailed: 5;
  readonly ErrGasLimit: 6;
  readonly ErrInvalidGenesis: 7;
  readonly ErrNotFound: 8;
  readonly ErrQueryFailed: 9;
  readonly ErrInvalidMsg: 10;
  readonly ErrMigrationFailed: 11;
  readonly ErrEmpty: 12;
  readonly ErrLimit: 13;
  readonly ErrInvalid: 14;
  readonly ErrDuplicate: 15;
  readonly ErrMaxIBCChannels: 16;
  readonly ErrUnsupportedForContract: 17;
  readonly ErrPinContractFailed: 18;
  readonly ErrUnpinContractFailed: 19;
  readonly ErrUnknownMsg: 20;
  readonly ErrInvalidEvent: 21;
};
type ChainWasmErrorCodes = (typeof ChainWasmErrorCodes)[keyof typeof ChainWasmErrorCodes];
type IndexerApiErrorCode = number;
declare const UnspecifiedErrorCode = -1;
type ErrorCode = grpc.Code | StatusCodes | typeof UnspecifiedErrorCode | GrpcErrorCode;
declare const GRPC_REQUEST_FAILED: 14;
type ErrorContextCode = ChainAuctionErrorCodes | ChainAuthZErrorCodes | ChainCosmosErrorCode | ChainExchangeModuleErrorCode | ChainInsuranceErrorCodes | ChainOcrErrorCodes | ChainOracleErrorCodes | ChainPeggyErrorCodes | ChainTokenFactoryErrorCodes | ChainWasmXErrorCodes | ChainDistributionErrorCodes | ChainBankErrorCodes | ChainGovErrorCodes | ChainStakingErrorCodes | ChainWasmErrorCodes | ErrorCode | number | typeof UnspecifiedErrorCode;
//#endregion
//#region src/exceptions/types/modules.d.ts
declare const ContractErrorModule: {
  readonly Peggy: "peggy-contract";
  readonly PeggyOld: "peggy-old-contract";
  readonly Erc20Contract: "erc20-contract";
};
type ContractErrorModule = (typeof ContractErrorModule)[keyof typeof ContractErrorModule];
declare const ChainErrorModule: {
  readonly Gov: "chain-gov";
  readonly Ibc: "chain-ibc";
  readonly Evm: "chain-evm";
  readonly Auth: "chain-auth";
  readonly Bank: "chain-bank";
  readonly Mint: "chain-mint";
  readonly Wasm: "chain-wasm";
  readonly Authz: "chain-authz";
  readonly Peggy: "chain-peggy";
  readonly WasmX: "chain-wasmx";
  readonly Erc20: "chain-erc20";
  readonly Oracle: "chain-oracle";
  readonly TxFees: "chain-tx-fees";
  readonly Auction: "chain-auction";
  readonly Staking: "chain-staking";
  readonly Exchange: "chain-exchange";
  readonly Tendermint: "chain-tendermint";
  readonly InsuranceFund: "chain-insurance";
  readonly Permissions: "chain-permissions";
  readonly Distribution: "chain-distribution";
};
type ChainErrorModule = (typeof ChainErrorModule)[keyof typeof ChainErrorModule];
declare const IndexerErrorModule: {
  readonly Dmm: "dmm";
  readonly OLP: "olp";
  readonly Abacus: "abacus";
  readonly RFQ: "indexer-rfq";
  readonly Meta: "indexer-meta";
  readonly Mito: "indexer-mito";
  readonly Referral: "referral";
  readonly Spot: "indexer-spot";
  readonly Web3Gw: "web3-gateway";
  readonly Oracle: "indexer-oracle";
  readonly Account: "indexer-account";
  readonly Auction: "indexer-auction";
  readonly Trading: "indexer-trading";
  readonly Archiver: "indexer-archiver";
  readonly Explorer: "indexer-explorer";
  readonly Campaign: "indexer-campaign";
  readonly Portfolio: "indexer-portfolio";
  readonly MegaVault: "indexer-mega-vault";
  readonly Derivatives: "indexer-derivatives";
  readonly Transaction: "indexer-transaction";
  readonly ChronosSpot: "indexer-chronos-spot";
  readonly TcDerivatives: "indexer-tc-derivatives";
  readonly InsuranceFund: "indexer-insurance-fund";
  readonly ChronosMarkets: "indexer-chronos-markets";
  readonly ChronosDerivative: "indexer-chronos-derivative";
};
type IndexerErrorModule = (typeof IndexerErrorModule)[keyof typeof IndexerErrorModule];
declare const WalletErrorActionModule: {
  readonly GetChainId: "get-chain-id";
  readonly GetAccounts: "get-accounts";
  readonly GetNetworkId: "get-network-id";
  readonly SignArbitrary: "sign-arbitrary";
  readonly SignTransaction: "sign-transaction";
  readonly SendTransaction: "send-transaction";
  readonly SendEvmTransaction: "send-evm-transaction";
  readonly SignEvmTransaction: "sign-evm-transaction";
  readonly GetEvmTransactionReceipt: "get-evm-transaction-receipt";
};
type WalletErrorActionModule = (typeof WalletErrorActionModule)[keyof typeof WalletErrorActionModule];
//#endregion
//#region src/exceptions/types/context.d.ts
declare const HttpRequestMethod: {
  readonly Get: "GET";
  readonly Post: "POST";
  readonly Options: "OPTIONS";
};
type HttpRequestMethod = (typeof HttpRequestMethod)[keyof typeof HttpRequestMethod];
declare const ErrorType: {
  readonly Unspecified: "unspecified";
  readonly ChainError: "chain-error";
  readonly ExecutionError: "execution-error";
  readonly NotFoundError: "not-found-error";
  readonly ValidationError: "validation-error";
  readonly WalletError: "wallet-error";
  readonly WalletNotInstalledError: "wallet-not-installed-error";
  readonly GrpcUnaryRequest: "grpc-unary-request";
  readonly HttpRequest: "http-request";
  readonly Web3: "web3";
  readonly Web3Gateway: "web3-gateway";
};
type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
interface ErrorContext {
  code?: ErrorCode;
  type?: ErrorType;
  /**
   * Additional context needed for the exception
   */
  context?: string;
  /**
   * Where is the exception thrown
   */
  contextModule?: string;
  /**
   * Needed when we get a code error from a Http/Grpc Request
   * and we need to specify the error code for the particular message
   * for example why the transaction has failed
   * */
  contextCode?: ErrorContextCode;
  /**
   * If true, skip parsing the error message and use the raw message
   * Useful when you want to preserve the original error message without
   * any transformation or mapping
   */
  skipParsing?: boolean;
}
interface Exception {
  /**
   * The type of the Error
   */
  type: ErrorType;
  /**
   * Error specific code (HttpStatus, GrpcStatus, etc)
   */
  code: ErrorCode;
  /**
   * The name of the error (the name of the instance of the Exception)
   */
  name: string;
  /**
   * Providing more context as to where the exception was thrown
   * (ex: on-chain module, etc)
   */
  contextModule?: string;
  /**
   * Providing more context as to why the exception was thrown
   * (ex: on-chain error code, etc)
   */
  contextCode?: ErrorContextCode;
  /**
   * Parsed message of the exception
   */
  message: string;
  /**
   * The original stack of the error
   */
  stack?: string;
  /**
   * The original message of the error
   */
  originalMessage: string;
  parse?(): void;
  parseError(error: Error): void;
  parseContext(context?: ErrorContext): void;
  setType(type: ErrorType): void;
  setCode(code: ErrorCode): void;
  setStack(stack: string): void;
  setName(name: string): void;
  setMessage(message: string): void;
  setContextModule(contextModule: string): void;
  toOriginalError(): Error;
  toError(): Error;
  toString(): string;
}
//#endregion
//#region src/exceptions/base.d.ts
declare abstract class ConcreteException extends Error implements Exception {
  /**
   * The type of the Error
   */
  type: ErrorType;
  /**
   * Error specific code (HttpStatus, GrpcStatus, etc)
   */
  code: ErrorCode;
  /**
   * The name of the error (the name of the instance of the Exception)
   */
  name: string;
  /**
   * The name of the error (the name of the instance of the Exception)
   * Needed for reporting reasons, ex: bugsnag
   */
  errorClass: string;
  /**
   * Providing more context
   * (ex: endpoint on http request)
   */
  context?: string;
  /**
   * Providing more context as to where the exception was thrown
   * (ex: on-chain module, etc)
   */
  contextModule?: string;
  /**
   * Providing more context as to why the exception was thrown
   * (ex: on-chain error code, etc)
   */
  contextCode?: ErrorContextCode;
  /**
   * Parsed message of the exception
   */
  message: string;
  /**
   * The original message of the error
   */
  originalMessage: string;
  /**
   * Flag to skip parsing the error message
   */
  protected skipParsing: boolean;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
  parseError(error: Error): void;
  parseContext(errorContext?: ErrorContext): void;
  setType(type: ErrorType): void;
  setCode(code: ErrorCode): void;
  setContext(context: string): void;
  setOriginalMessage(message: string): void;
  setStack(stack: string): void;
  setName(name: string): void;
  setMessage(message: string): void;
  setContextModule(contextModule: string): void;
  setContextCode(code: ErrorContextCode): void;
  toOriginalError(): Error;
  toError(): Error;
  toCompactError(): Error;
  toJson(): string;
  toObject(): {
    code: ErrorCode;
    type: ErrorType;
    errorClass: string;
    message: string;
    context: string | undefined;
    contextCode: number | undefined;
    contextModule: string | undefined;
    originalMessage: string;
    stack: string[];
  };
  toString(): string;
}
//#endregion
//#region src/exceptions/exceptions/Web3Exception.d.ts
declare class Web3Exception extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/BitGetException.d.ts
declare class BitGetException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/LedgerException.d.ts
declare class LedgerException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/TrezorException.d.ts
declare class TrezorException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/WalletException.d.ts
declare class WalletException extends ConcreteException {
  static errorClass: string;
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/GeneralException.d.ts
declare class GeneralException extends ConcreteException {
  static errorClass: string;
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/MetamaskException.d.ts
declare class MetamaskException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/KeplrEvmException.d.ts
declare class KeplrEvmException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/OkxWalletException.d.ts
declare class OkxWalletException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/HttpRequestException.d.ts
declare class HttpRequestException extends ConcreteException {
  static errorClass: string;
  method: HttpRequestMethod;
  constructor(error: Error, context?: ErrorContext & {
    method?: HttpRequestMethod;
  });
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/TransactionException.d.ts
declare class TransactionException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/TrustWalletException.d.ts
declare class TrustWalletException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/CosmosWalletException.d.ts
declare class CosmosWalletException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/LedgerCosmosException.d.ts
declare class LedgerCosmosException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/RainbowWalletException.d.ts
declare class RainbowWalletException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/WalletConnectException.d.ts
declare class WalletConnectException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/GrpcUnaryRequestException.d.ts
declare class GrpcUnaryRequestException extends ConcreteException {
  static errorClass: string;
  constructor(error: Error, context?: ErrorContext);
  parse(): void;
}
//#endregion
//#region src/exceptions/exceptions/TurnkeyWalletSessionException.d.ts
declare class TurnkeyWalletSessionException extends ConcreteException {
  static errorClass: string;
  parse(): void;
}
//#endregion
//#region src/types.d.ts
type ThrownException = Web3Exception | LedgerException | TrezorException | WalletException | BitGetException | GeneralException | KeplrEvmException | MetamaskException | OkxWalletException | HttpRequestException | TrustWalletException | TransactionException | CosmosWalletException | LedgerCosmosException | GrpcUnaryRequestException;
//#endregion
//#region src/utils.d.ts
declare const THROWN_EXCEPTIONS: string[];
declare const isThrownException: (exception: Error | Exception | ThrownException) => boolean;
declare const formatNotificationDescription: (description: string) => {
  description: string;
  tooltip: string;
};
//#endregion
export { BitGetException, ChainAuctionErrorCodes, ChainAuthZErrorCodes, ChainBankErrorCodes, ChainCosmosErrorCode, ChainDistributionErrorCodes, ChainErrorModule, ChainExchangeModuleErrorCode, ChainGovErrorCodes, ChainInsuranceErrorCodes, ChainOcrErrorCodes, ChainOracleErrorCodes, ChainPeggyErrorCodes, ChainStakingErrorCodes, ChainTokenFactoryErrorCodes, ChainWasmErrorCodes, ChainWasmXErrorCodes, ContractErrorModule, CosmosWalletException, ErrorCode, ErrorContext, ErrorContextCode, ErrorType, Exception, GRPC_REQUEST_FAILED, GeneralException, GrpcErrorCode, GrpcUnaryRequestException, HttpRequestException, HttpRequestMethod, IndexerApiErrorCode, IndexerErrorModule, KeplrEvmException, LedgerCosmosException, LedgerException, MetamaskException, OkxWalletException, RainbowWalletException, THROWN_EXCEPTIONS, ThrownException, TransactionChainErrorModule, TransactionException, TrezorException, TrustWalletException, TurnkeyWalletSessionException, UnspecifiedErrorCode, WalletConnectException, WalletErrorActionModule, WalletException, Web3Exception, formatNotificationDescription, grpcErrorCodeToErrorCode, isThrownException };