@privy-io/react-auth 1.84.0 → 1.85.0

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.
@@ -1,37 +0,0 @@
1
- import { ay as ConnectedSolanaWallet, p as Wallet } from './types-cbc2ff3a.js';
2
-
3
- /**
4
- * Hook to create and interact with Solana wallets. This currently only supports an embedded Solana wallet and no
5
- * external wallets.
6
- *
7
- * @returns wallets {ConnectedSolanaWallet[]} an array of connected Solana wallets
8
- * @returns createWallet {() => Promise<Wallet>} an method to create an embedded Solana wallet.
9
- */
10
- interface UseSolanaWalletsInterface {
11
- /**
12
- * An array of the connected Solana wallets for the user. Currently, this will only contain the embedded
13
- * Solana wallet if the user has created one.
14
- */
15
- wallets: ConnectedSolanaWallet[];
16
- /**
17
- * Method to create an embedded Solana wallet for a user. This method will throw an error if the user already has an
18
- * embedded Solana or Ethereum wallet. Currently, only embedded Solana wallets with automatic recovery are supported.
19
- * @returns wallet {Wallet} the Solana linked account for the user.
20
- */
21
- createWallet: () => Promise<Wallet>;
22
- /**
23
- * Shows the user a Privy modal, from which they can copy their embedded solana wallet's private
24
- * key for easy export to another wallet client (e.g. Phantom, Backpack). The private key is loaded
25
- * on an iframe running on a separate domain from your app, meaning your app cannot access it.
26
- *
27
- * This method will error if the user is not authenticated or does not have an embedded solana wallet.
28
- * @param options {@link {address: string}} (optional) wallet address to export the private key for
29
- * @returns Promise that resolves once the user exits the modal
30
- */
31
- exportWallet: (options?: {
32
- address: string;
33
- }) => Promise<void>;
34
- }
35
- declare const useSolanaWallets: () => UseSolanaWalletsInterface;
36
-
37
- export { UseSolanaWalletsInterface as U, useSolanaWallets as u };