export interface TerraConfig { appConfig: AppConfig; psConfig: PSConfiguration; } export interface PSFirebaseConfig { apiKey: string; applicationId: string; databaseUrl: string; gcmSenderId: string; projectId: string; storageBucket: string; } export interface PSConfiguration { '@type': 'type.googleapis.com/terra.v1.PaymentServiceConfigData'; url: string; bffUrl: string; clientCode: string; terminalCode: string; secret: string; querySecretKey: string; firebaseConfig: PSFirebaseConfig; } export interface AppConfig { evmChains: [EvmChainConfig]; cardanoChains: [CardanoChainConfig]; wallets?: [WalletConfig]; } export interface EvmChainConfig { chainId: string; chainName: string; nativeCurrency: EvmNativeCurrency; rpcUrls: [string]; blockExplorerUrls: [string]; iconUrls: [string]; tokens: [EvmTokenConfig]; mapping: Mapping; } export interface EvmTokenConfig { name: string; contractAddress: string; decimals: number; } export interface EvmNativeCurrency { name: string; symbol: string; decimals: number; } export interface CardanoChainConfig { chainId: string; chainName: string; tokens: [CardanoTokenConfig]; mapping: Mapping; } export interface CardanoTokenConfig { name: string; code: string; policyId: string; assetName: string; decimals: number; } export interface WalletConfig { name: string; code: string; chainType: string; iconUrl?: string; installationUrl?: string; } export interface Mapping { paymentCode: string; } export declare type ChainListener = (chainId: string) => void; export declare type AccountListener = (account: string) => void; export interface CryptoRequestData { chain: string; token: string; customerAddress: string; } export interface CryptoResponseData { code: string; message: string; payments: { crypto: { merchantAddress: string; transactionCode: string; }; }; paymentRequestId: string; } export interface CardanoBalance { coin: number; multiAssets: CardanoMultiAsset[]; } export interface CardanoMultiAsset { policyId: string; assets: CardanoAsset[]; } export interface CardanoAsset { name?: string; value?: BigInt; } export declare const ErrorCode: { CommonFail: number; ChainNotFound: number; CannotGetTokenBalance: number; TokenConfigNotFound: number; InitAIOFailed: number; FirestoreOrderCodeMismatch: number; FirestoreStatusNotSuccess: number; FirestoreException: number; FirestoreTimeout: number; FirestoreNotInitialized: number; SendTransactionFailed: number; UnrecognizedChainId: number; RejectAction: number; CardanoWalletNotFound: number; CardanoAccountChanged: number; InsufficientBalanceException: number; UserDeclinedTx: number; NoAccountSet: number; WalletNetworkIDMismatchException: number; }; export declare const ExposeErrorCode: { Success: number; VerifyTransactionHashFailed: number; WaitNotificationFailed: number; UserCloseWaitNotificationPopup: number; }; export declare const localStorageCode: { walletCode: string; };