adapter-connect 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import react__default from 'react';
4
+ import * as _privy_io_react_auth from '@privy-io/react-auth';
5
+ import * as wagmi_query from 'wagmi/query';
6
+ import * as wagmi from 'wagmi';
7
+
8
+ declare function WhatWagmiProvider({ children, privyKey }: {
9
+ children: react__default.ReactNode;
10
+ privyKey: string;
11
+ }): react_jsx_runtime.JSX.Element;
12
+
13
+ declare const useWalletConnect: () => {
14
+ address: `0x${string}` | undefined;
15
+ connectors: wagmi.Connector<wagmi.CreateConnectorFn>[];
16
+ connect: wagmi_query.ConnectMutate<wagmi.Config, unknown>;
17
+ login: (options?: _privy_io_react_auth.LoginModalOptions | react.MouseEvent<any, any>) => void;
18
+ authenticated: boolean;
19
+ user: _privy_io_react_auth.User | null;
20
+ logout: () => Promise<void>;
21
+ ready: boolean;
22
+ disconnect: () => Promise<void>;
23
+ isCorrectChain: boolean;
24
+ switchToArbitrum: () => Promise<void>;
25
+ chainId: number | undefined;
26
+ connectWallet: (options?: _privy_io_react_auth.ConnectWalletModalOptions | react.MouseEvent<any, any>) => void;
27
+ setActiveWallet: (walletAddress?: string) => Promise<void>;
28
+ };
29
+
30
+ export { WhatWagmiProvider, useWalletConnect };