import React, { type ReactNode } from 'react'; import type { SolanaAddress } from '@funkit/api-base'; import type { SolanaWalletConnection } from '../interfaces/solanaWallet'; /** * A host wallet that cleared validation, carrying its adapter's address as a * real `SolanaAddress` rather than the string the host handed us. */ export type ValidatedSolanaWallet = SolanaWalletConnection & { address: SolanaAddress; }; /** * Owns the host-supplied Solana wallet: validates the adapter's address once, * then exposes the whole wallet or nothing. * * Rejecting the wallet wholesale — rather than only keeping its address out of * the session identity — is what stops execution signing against an address we * never trusted. Mounted above `GeneralWalletProvider`, which reads the * validated address for identity. */ export declare function SolanaWalletProvider({ children, solanaWallet, }: { children: ReactNode; solanaWallet?: SolanaWalletConnection; }): React.JSX.Element; /** * The host's Solana wallet, or `undefined` when none was supplied or its * adapter failed `validateSolanaAdapter`. */ export declare const useSolanaWallet: () => ValidatedSolanaWallet | undefined;