UNPKG

@bigmi/client

Version:

Reactive primitives for Bitcoin apps.

9 lines (8 loc) 530 B
import type { Config } from '../factories/createConfig.js'; import { type GetAccountReturnType } from './getAccount.js'; export type WatchAccountParameters<config extends Config = Config> = { onChange(account: GetAccountReturnType<config>, prevAccount: GetAccountReturnType<config>): void; }; export type WatchAccountReturnType = () => void; /** https://wagmi.sh/core/api/actions/watchAccount */ export declare function watchAccount<C extends Config>(config: C, parameters: WatchAccountParameters<C>): WatchAccountReturnType;