import type { ChainTypeEnum } from '@openfort/openfort-js'; /** Identifies a single native-balance query. */ type BalanceKeyParams = { address: string; chainType: ChainTypeEnum; /** Opaque identity of the Openfort client that owns this account-derived query. */ clientScope?: OpenfortQueryScope; /** EVM only. */ chainId?: number; /** Opaque scope for the effective RPC endpoint. */ rpcScope?: QueryInputScope; /** Public factory input converted to an opaque scope before entering the key. */ rpcUrl?: string; /** Solana only: the cluster name or RPC URL the balance is read from. */ cluster?: string; /** Solana only. */ commitment?: 'processed' | 'confirmed' | 'finalized'; }; type OpenfortQueryScope = string; type QueryInputScope = string; /** Canonical chain-specific inputs that affect an Ethereum asset response. */ export type WalletAssetsChainKeyConfig = { chainId: number; assets: readonly string[]; rpcScope?: QueryInputScope; }; /** Returns the stable cache scope assigned to one Openfort client instance. */ export declare function getOpenfortQueryScope(client: object): OpenfortQueryScope; /** Derives a deterministic non-plaintext cache fingerprint; it is not an authorization boundary. */ export declare function getOpenfortQueryInputScope(value: string | undefined): QueryInputScope | undefined; /** * Identifies a single wallet-assets query. `chainId` is absent in multi-chain * mode and on Solana, where `rpcScope` pins the cluster instead. */ export type WalletAssetsKeyParams = { address: string; chainType: ChainTypeEnum; multiChain: boolean; /** Opaque identity of the Openfort client whose authenticated backend is queried. */ clientScope?: OpenfortQueryScope; chainId?: number; /** Opaque scope for the effective Ethereum asset backend endpoint. */ backendScope?: QueryInputScope; /** Opaque scope for a direct RPC endpoint. */ rpcScope?: QueryInputScope; /** Public factory input converted to an opaque scope before entering the key. */ rpcUrl?: string; assets?: readonly string[]; /** Full chain-to-assets mapping sent to the multi-chain backend request. */ assetFilter?: readonly WalletAssetsChainKeyConfig[]; /** Chains, RPC endpoints and token lists used by the direct-RPC fallback. */ fallbackChains?: readonly WalletAssetsChainKeyConfig[]; }; /** Identifies a single ENS name/avatar resolution. */ type IdentityKeyParams = { address: string; chainType: ChainTypeEnum; ensChainId: number; /** Opaque scope for the effective identity RPC endpoint. */ rpcScope?: QueryInputScope; /** Public factory input converted to an opaque scope before entering the key. */ rpcUrl?: string; }; /** Identifies a single funding-rail chain listing. */ type FundingChainsKeyParams = { /** Opaque scope for the funding backend. */ baseScope?: QueryInputScope; /** Public factory input converted to an opaque scope before entering the key. */ baseUrl?: string; livemode: boolean; }; type Erc20BalanceKeyParams = { clientScope: OpenfortQueryScope; address: string; token: string; chainId: number; rpcScope: QueryInputScope; }; type TransactionReceiptKeyParams = { clientScope: OpenfortQueryScope; hash: string; chainId: number; rpcScope: QueryInputScope; }; type SolanaFeeKeyParams = { clientScope: OpenfortQueryScope; address: string; recipient: string; rpcScope: QueryInputScope; }; type GasEstimateKeyParams = { clientScope: OpenfortQueryScope; account: string; to: string; value?: bigint; data?: string; chainId: number; rpcScope: QueryInputScope; }; /** * Query key factory for every query the SDK owns. * * Each parameterised factory also accepts no arguments, returning the prefix * shared by that family — pass it to `queryClient.invalidateQueries` to refresh * every query of that kind at once. * * @example * ```ts * queryClient.invalidateQueries({ queryKey: openfortKeys.balance() }) * ``` */ export declare const openfortKeys: { all: readonly ["openfort"]; user: (scope?: OpenfortQueryScope) => readonly ["openfort", "user", ...string[]]; embeddedAccounts: (scope?: OpenfortQueryScope) => readonly ["openfort", "embeddedAccounts", ...string[]]; balance: (params?: BalanceKeyParams) => readonly ["openfort", "balance", ...Omit[]]; walletAssets: (params?: WalletAssetsKeyParams) => readonly ["openfort", "walletAssets", ...Omit[]]; erc20Balance: (params?: Erc20BalanceKeyParams) => readonly ["openfort", "erc20Balance", ...Erc20BalanceKeyParams[]]; transactionReceipt: (params?: TransactionReceiptKeyParams) => readonly ["openfort", "transactionReceipt", ...TransactionReceiptKeyParams[]]; solanaFee: (params?: SolanaFeeKeyParams) => readonly ["openfort", "solanaFee", ...SolanaFeeKeyParams[]]; gasEstimate: (params?: GasEstimateKeyParams) => readonly ["openfort", "gasEstimate", ...(Omit & { value?: string; })[]]; identity: (params?: IdentityKeyParams) => readonly ["openfort", "identity", ...Omit[]]; fundingChains: (params?: FundingChainsKeyParams) => readonly ["openfort", "fundingChains", ...Omit[]]; }; export {};