UNPKG

wagmi

Version:

React Hooks for Ethereum

16 lines 1.18 kB
import type { Connector, ReconnectErrorType } from '@wagmi/core'; import type { Compute, ConfigParameter } from '@wagmi/core/internal'; import { type ReconnectData, type ReconnectMutate, type ReconnectMutateAsync, type ReconnectOptions, type ReconnectVariables } from '@wagmi/core/query'; import type { UseMutationReturnType } from '../utils/query.js'; export type UseReconnectParameters<context = unknown> = Compute<ConfigParameter & ReconnectOptions<context>>; export type UseReconnectReturnType<context = unknown> = Compute<UseMutationReturnType<ReconnectData, ReconnectErrorType, ReconnectVariables, context, ReconnectMutate<context>, ReconnectMutateAsync<context>> & { /** @deprecated use `useConnectors` instead */ connectors: readonly Connector[]; /** @deprecated use `mutate` instead */ reconnect: ReconnectMutate<context>; /** @deprecated use `mutateAsync` instead */ reconnectAsync: ReconnectMutateAsync<context>; }>; /** https://wagmi.sh/react/api/hooks/useReconnect */ export declare function useReconnect<context = unknown>(parameters?: UseReconnectParameters<context>): UseReconnectReturnType<context>; //# sourceMappingURL=useReconnect.d.ts.map