import { Address, Commitment } from '@solana/kit'; import { b as SolanaClient } from './shared/core.C9vxHRXl.js'; import '@solana/kit-plugin-rpc'; interface TokenAccountInfo { address: Address; mint: Address; owner: Address; amount: bigint; decimals: number; state: "frozen" | "initialized" | "uninitialized"; isNative: boolean; } interface TokenAccountsByOwnerOptions { commitment?: Commitment; programId?: Address; } /** * Get all SPL token accounts for an owner using parsed kit RPC reads. */ declare function getTokenAccountsByOwner(client: SolanaClient, owner: Address, options?: TokenAccountsByOwnerOptions): Promise; /** * Get a single parsed token account at the given address. */ declare function getTokenAccount(client: SolanaClient, address: Address, commitment?: Commitment): Promise; interface TokenBalanceResult { amount: bigint; decimals: number; } /** * Read the token balance of the accounts an owner holds for a given mint. */ declare function getTokenBalance(client: SolanaClient, mint: Address, owner: Address, commitment?: Commitment): Promise; export { getTokenAccount, getTokenAccountsByOwner, getTokenBalance }; export type { TokenAccountInfo, TokenAccountsByOwnerOptions, TokenBalanceResult };