import { type Address } from 'viem'; import type { FunLogger } from '../../src/utils/funLogger'; /** * Records a Lighter Secure withdrawal as an `EXTERNALLY_FULFILLED` direct * execution — attribution only, since Fun is not in the execution path. * - The backend marks these rows terminal without polling for L1 settlement. * - Never rejects: tracking must not fail a withdrawal that already happened, * and callers fire-and-forget it without a `.catch`. */ export declare function trackLighterSecureWithdrawal({ apiKey, logger, userId, txHash, recipientAddr, assetIndex, mainnetTokenAddress, amountTokenUnits, withdrawalUSD, }: { apiKey: string; logger: FunLogger; userId: string; txHash: string; recipientAddr: Address; /** * Lighter L2 asset index. Used as `fromTokenAddress` * (`pad(toHex(assetIndex))`) and to resolve symbol + mainnet decimals from * {@link LIGHTER_SECURE_ASSETS_BY_INDEX}. */ assetIndex: number; /** Mainnet ERC-20 address the L2 asset bridges to (resolved by the modal). */ mainnetTokenAddress: Address; /** User-input amount in token units (e.g. "1.5" for 1.5 ETH). */ amountTokenUnits: string; /** * USD value of the withdrawal as computed by the modal (token amount × live * spot price). Avoids a separate spot-price round-trip from this helper. */ withdrawalUSD: string; }): Promise; //# sourceMappingURL=lighterTracking.d.ts.map