import { type SolanaRequestFn, type SolanaWalletProvider, type SolanaWireRequestFn } from '@farcaster/miniapp-core'; /** * The `unwrapSolanaProviderRequest` helper reconstructs `@solana/web3.js` * transaction instances from their wire representation, so it depends on * `@solana/web3.js` runtime values and lives in the * `@farcaster/miniapp-core/solana` subpath. * * To keep `@solana/web3.js` out of the default `@farcaster/miniapp-sdk` module * graph (so that mini apps that never touch Solana bundle without it), that * helper is registered here via a side-effecting import of * `@farcaster/miniapp-sdk/solana` rather than being imported statically. */ type UnwrapSolanaProviderRequest = (fn: SolanaWireRequestFn) => SolanaRequestFn; /** * Registers the `@solana/web3.js`-backed unwrap helper that powers * {@link getSolanaProvider}. Called by the `@farcaster/miniapp-sdk/solana` * entrypoint; consumers should not call this directly. */ declare function registerSolanaProviderUnwrap(unwrap: UnwrapSolanaProviderRequest): void; declare function getSolanaProvider(): Promise; export { getSolanaProvider, registerSolanaProviderUnwrap };