UNPKG

@particle-network/connectkit

Version:
8 lines (7 loc) 475 B
import type { Config } from '../createConfig'; import type { GetChainIdReturnType } from './getChainId'; export type WatchChainIdParameters<config extends Config = Config> = { onChange(chainId: GetChainIdReturnType<config>, prevChainId: GetChainIdReturnType<config>): void; }; export type WatchChainIdReturnType = () => void; export declare function watchChainId<config extends Config>(config: config, parameters: WatchChainIdParameters<config>): WatchChainIdReturnType;