import type { ConvertBalances } from '../domains/convert/balances'; import type { ConvertConfig, ConvertResolvedAsset } from '../domains/convert/types'; import type { ConvertAssetListStatus } from '../domains/convert/assets'; export interface ConvertAssetListResult { status: ConvertAssetListStatus; /** Resolved assets; empty until they resolve or when the host lists none. */ assets: ConvertResolvedAsset[]; balances: ConvertBalances | undefined; /** Balances are being read, including a poll or retry. */ isBalancesFetching: boolean; /** Loads again after a failure. */ retry: () => void; /** Reads the given assets (all by default) again; rejects if the read fails. */ refetchBalances: (assets?: ConvertResolvedAsset[]) => Promise; } /** The host's Convert assets and balances, read once for every Convert screen by `ConvertProvider`. */ export declare function useConvertAssetList({ checkoutId, config, enabled, }: { /** The checkout session; Convert's host reads are cached per checkout. */ checkoutId: string | undefined; config: ConvertConfig | undefined; /** Off stops reads and polling; the last read stays readable. */ enabled: boolean; }): ConvertAssetListResult;