import { type WithdrawalClient } from '@funkit/connect-core'; import { createLighterAdaptedWallet } from '@funkit/connect-core/clients/lighter'; import type { WithdrawalFlowConfig } from '../../src/flow/withdrawalFlowConfig'; import type { LighterWithdrawalFlowConfig } from './lighterWithdrawalConfig'; /** * A {@link WithdrawalClient} for Lighter Fast. Relay drives `adaptedWallet` * directly — the EVM members exist to satisfy the interface and to throw * loudly if something ever routes an EVM leg through this client, which for * Fast would mean signing on the wrong rail. * * `address()` is the L2 account index, not an EVM address: Lighter addresses * accounts by index, and that is what relay and the tracking row record. */ export declare function createLighterFastWithdrawalClient({ signerClient, accountIndex, onBeforeSign, }: { signerClient: LighterWithdrawalFlowConfig['signerClient']; accountIndex: string; /** * Host hook awaited before the first L2 signature. Relay drives the adapter, * so the only point Fast controls is the signer itself. */ onBeforeSign?: LighterWithdrawalFlowConfig['onBeforeSign']; }): WithdrawalClient & { adaptedWallet: ReturnType; }; /** * The withdrawal the crypto rail runs for Lighter Fast: USDC Perps out of the * user's L2 account, quoted and executed through Fun + Relay to any supported * destination. Port of web's `buildLighterFastWalletWithdrawalConfig`. * * Limits are web's USD numbers expressed in token units. Fast is USDC-only, so * the two are the same number; RN has no price feed yet, and a USD limit * without one is inert (see `withdrawal/validation.ts`). */ export declare function buildLighterFastWithdrawalConfig({ config, lighter, accountIndex, isUnifiedTradingMode, }: { /** The host's withdrawal config — title and callbacks carry over. */ config: WithdrawalFlowConfig; lighter: LighterWithdrawalFlowConfig; accountIndex: string; /** Unified accounts hold one USDC balance, so the label drops "(Perps)". */ isUnifiedTradingMode: boolean; }): WithdrawalFlowConfig; //# sourceMappingURL=lighterFastWithdrawal.d.ts.map