UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

6 lines (5 loc) 713 B
import { type TvmBasedNetwork, type TvmNetworkConfig } from '@broxus/js-core'; import { type EvmBasedNetwork, type EvmNetworkConfig, type NetworkConfig, type NetworkType, type SolanaNetwork, type SolanaNetworkConfig, type TonBasedNetwork, type TonNetworkConfig } from '../../types'; type Network<Type extends NetworkType> = (Type extends TvmBasedNetwork ? TvmNetworkConfig : Type extends EvmBasedNetwork ? EvmNetworkConfig : Type extends TonBasedNetwork ? TonNetworkConfig : Type extends SolanaNetwork ? SolanaNetworkConfig : never) | undefined; export declare function findNetwork<Type extends NetworkType>(networks: Readonly<NetworkConfig[]>, chainId: string, type: Type): Network<Type> | undefined; export {};