|
| 1 | +import type { Chain } from '@wagmi/core'; |
| 2 | +import * as Chains from '@wagmi/core/chains'; |
| 3 | +import type { ComputedRef } from 'vue'; |
| 4 | +import type { Plugin as Plugin_2 } from 'vue'; |
| 5 | +import type { ThemeCtrlState } from '@web3modal/core'; |
| 6 | + |
| 7 | +export declare function $off(event: Event_2, callback: (...args: any) => void): void; |
| 8 | + |
| 9 | +export declare function $on(event: Event_2, callback: (...args: any) => void): void; |
| 10 | + |
| 11 | +export declare const account: { |
| 12 | + connected: boolean; |
| 13 | + address?: string | undefined; |
| 14 | + shortAddress?: string | undefined; |
| 15 | +}; |
| 16 | + |
| 17 | +export declare function accountDetails(): Promise<void>; |
| 18 | + |
| 19 | +export { Chain } |
| 20 | + |
| 21 | +export declare const chain: ComputedRef<Chain>; |
| 22 | + |
| 23 | +export { Chains } |
| 24 | + |
| 25 | +export declare function connect(chain?: Chain): Promise<void>; |
| 26 | + |
| 27 | +export declare function createWeb3Auth(options: Options): Plugin_2; |
| 28 | + |
| 29 | +export declare function disconnect(): Promise<void>; |
| 30 | + |
| 31 | +declare enum Event_2 { |
| 32 | + Connected = "connected", |
| 33 | + Disconnected = "disconnect", |
| 34 | + ChainSwitched = "chain_switched", |
| 35 | + UnknownChain = "unknown_chain", |
| 36 | + ModalStateChanged = "modal_state_changed" |
| 37 | +} |
| 38 | +export { Event_2 as Event } |
| 39 | + |
| 40 | +export declare function getAvailableChains(): Chain[]; |
| 41 | + |
| 42 | +export declare type Options = { |
| 43 | + autoInit?: boolean; |
| 44 | + projectId: string; |
| 45 | + chains: Chain[]; |
| 46 | + autoConnect?: boolean; |
| 47 | + disconnectUnknownChain?: boolean; |
| 48 | + reconnectToChain?: boolean; |
| 49 | + logEnabled?: boolean; |
| 50 | + web3modalOptions?: ThemeCtrlState; |
| 51 | +}; |
| 52 | + |
| 53 | +export declare function selectChain(): Promise<void>; |
| 54 | + |
| 55 | +export declare function shortAddressFilter(value?: string): string; |
| 56 | + |
| 57 | +export declare function switchChain(newChain: Chain): Promise<void>; |
| 58 | + |
| 59 | +export { } |
0 commit comments