import { type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base'; import type { DepositClientMetadata, DepositTargetConfig } from '../../flow/depositFlowConfig'; export interface UseTransferInitParams { /** Destination chain/asset to derive the deposit address for. */ checkoutConfig: DepositTargetConfig | undefined; /** * Final recipient, outranking the config's `customRecipient`. Both default * to the identity's wallet address. */ recipientAddr?: FunAddress; /** Dynamic-routing id used to resolve UDA params. */ dynamicRoutingId?: string; /** * Active flow's checkoutId, threaded to `/eoa` so the backend can scope the * generated UDA to this checkout attempt. Caller must keep this stable for * the life of the flow (see `FunkitFlowProvider`). */ checkoutId?: string; /** * Host-supplied correlation ids (e.g. `externalUserId`/`clientTransactionId`), * sent to `/eoa`. Must contain only stable JSON-serializable properties. */ clientMetadata?: DepositClientMetadata; /** Gate the network call (e.g. only when the screen is visible). */ enabled?: boolean; } export interface UseTransferInitResult { transferInit: CheckoutInitTokenTransferResponse | undefined; recipientAddr: FunAddress; isLoading: boolean; isFetching: boolean; /** The `/eoa` call that mints the deposit address failed. */ error: Error | undefined; /** Replays that call, for a caller that puts a retry on screen. */ retry: () => void; } /** * Thin RN reimplementation of `@funkit/connect`'s `useCheckoutTransferInit`: * builds the (customer-agnostic) transfer params via the core helper and * creates the deposit-address EOA through `@funkit/api-base`. Identity comes * from {@link useFunkitIdentity}; web's Polymarket target override and geo / * post-action gating are dropped. Lighter's main-account override is kept — * see {@link useLighterDepositRecipientOverride}. */ export declare function useTransferInit({ checkoutConfig, recipientAddr, dynamicRoutingId, checkoutId, clientMetadata, enabled, }: UseTransferInitParams): UseTransferInitResult; //# sourceMappingURL=useTransferInit.d.ts.map