import { type ConvertRecipientSelection } from '../domains/convert/recipient'; import { type ConvertSourceWalletSelection } from '../domains/convert/sourceWallet'; import type { ConvertRecipientAddresses, ConvertResolvedAsset, GetConvertSourceWallet } from '../domains/convert/types'; export interface ConvertSelectionLookup { /** `undefined` while it resolves, or with nothing picked. */ selection: Selection | undefined; /** The lookup is running, including a retry. */ isFetching: boolean; /** Looks up again, e.g. after the host's resolver failed or timed out. */ retry: () => void; } /** Where the chosen destination's funds land. */ export declare function useConvertRecipient({ checkoutId, asset, recipientAddresses, enabled, }: { /** Scopes the answer to one checkout, whose host callbacks may differ from the last. */ checkoutId: string | undefined; asset: ConvertResolvedAsset | undefined; recipientAddresses: ConvertRecipientAddresses | undefined; /** Off keeps the last answer without asking the host. */ enabled?: boolean; }): ConvertSelectionLookup; /** * The signing wallet for the chosen source. Keyed on the asset, since the host * may resolve different wallets for tokens on one chain. */ export declare function useConvertSourceWallet({ checkoutId, asset, getSourceWallet, recipientAddresses, enabled, }: { /** Scopes the wallet to one checkout, so a replaced host wallet is never reused. */ checkoutId: string | undefined; asset: ConvertResolvedAsset | undefined; getSourceWallet: GetConvertSourceWallet | undefined; /** Only keys the cache to the host's account. */ recipientAddresses: ConvertRecipientAddresses | undefined; /** Off keeps the last answer without asking the host. */ enabled?: boolean; }): ConvertSelectionLookup;