import type { QueryKey } from '@tanstack/react-query'; /** A source currency available on a chain (sourced live from Relay via the backend). */ export type FundingCurrency = { symbol: string; /** Contract address, or the zero address for the chain's native asset. */ address: string; decimals: number; logo: string | null; /** True for the chain's native currency (ETH, SOL, POL, BNB, …). */ native: boolean; }; /** A source chain the funding backend (Relay) can route from. */ export type FundingChain = { /** CAIP-2 chain id, e.g. "eip155:8453". */ id: string; name: string; logo: string | null; /** "evm" | "svm" — used to gate Solana sources and the CEX tab. */ vmType: string; currencies: FundingCurrency[]; }; type UseFundingChains = { chains: FundingChain[]; /** * The rail's full deliverable chain list (uncurated). Used to check whether a * funding TARGET chain is supported, independent of the source allowlist that * narrows {@link chains}. */ railChains: FundingChain[]; isLoading: boolean; isFetching: boolean; error: Error | null; refetch: () => void; queryKey: QueryKey; }; /** * The chains/currencies the funding backend supports, fetched from * `GET /v2/funding/chains` (a live passthrough of Relay's `/chains`), then * narrowed to a curated subset. The provider dictionary is dynamic; the client * just selects from it via `uiConfig.funding.{sourceChains,sourceCurrencies}`, * defaulting to {@link DEFAULT_SOURCE_CHAINS} / {@link DEFAULT_SOURCE_CURRENCIES}. * * Reads the base URL from `uiConfig.fundingBaseUrl`, mirroring `useFunding`. * Returns an empty list when funding isn't configured. */ export declare function useFundingChains(): UseFundingChains; /** * Narrow the fetched chains to a selection. `sourceChains` is a CAIP-2 allowlist * (also defines order); `sourceCurrencies` is a symbol allowlist where the * sentinel `'native'` matches each chain's native currency. Chains left with no * currency are dropped, and selected chains the rail doesn't support are skipped. */ export declare function curateChains(chains: FundingChain[], sourceChains: string[] | undefined, sourceCurrencies: string[] | undefined): FundingChain[]; /** Nominal source amount (in base units) used only to mint an open, route-bound deposit address. * The open address accepts any amount >= the route minimum afterward, so this is just a quote seed. * Stablecoins use 1 whole unit (~$1, clears mainnet route minimums); native tokens are far pricier * per unit (1 ETH ≈ thousands), so they use 0.01 of a unit to avoid minting/QR-prefilling 1 whole ETH. */ export declare function nominalUnits(decimals: number, native?: boolean): string; export {};