@@ -2,9 +2,13 @@ import type { BlockTag } from 'viem/src/types/block';
22import type { Chain } from '@wagmi/core' ;
33import * as Chains from '@wagmi/core/chains' ;
44import type { ComputedRef } from 'vue' ;
5+ import type { FetchBalanceResult } from '@wagmi/core' ;
6+ import type { FetchFeeDataResult } from '@wagmi/core' ;
7+ import type { FetchTokenResult } from '@wagmi/core' ;
58import type { Plugin as Plugin_2 } from 'vue' ;
69import type { ThemeCtrlState } from '@web3modal/core' ;
710import type { TransactionReceipt } from 'viem' ;
11+ import type { Unit } from '@wagmi/core' ;
812
913export declare function $off ( event : Events , callback : ( ...args : any ) => void ) : void ;
1014
@@ -80,6 +84,36 @@ export declare enum Events {
8084 ModalStateChanged = "modal_state_changed"
8185}
8286
87+ declare type FetchBalance = {
88+ chainId ?: number ;
89+ address : `0x${string } `;
90+ formatUnits ?: Unit ;
91+ token ?: `0x${string } `;
92+ } ;
93+
94+ export declare function fetchBalance ( data : FetchBalance ) : Promise < FetchBalanceResult > ;
95+
96+ declare type FetchBlockNumber = {
97+ chainId ?: number ;
98+ } ;
99+
100+ export declare function fetchBlockNumber ( data ?: FetchBlockNumber ) : Promise < bigint > ;
101+
102+ declare type FetchFeeData = {
103+ chainId ?: number ;
104+ formatUnits ?: Unit ;
105+ } ;
106+
107+ export declare function fetchGasPrice ( data ?: FetchFeeData ) : Promise < FetchFeeDataResult > ;
108+
109+ declare type FetchToken = {
110+ chainId ?: number ;
111+ address : `0x${string } `;
112+ formatUnits ?: Unit ;
113+ } ;
114+
115+ export declare function fetchToken ( data : FetchToken ) : Promise < FetchTokenResult > ;
116+
83117export declare function getAvailableChains ( ) : Chain [ ] ;
84118
85119export declare function multicall ( params : MulticallArgs ) : Promise < unknown [ ] > ;
0 commit comments