/** * Supplies the inputs for recording a perps ⇄ predictions transfer, so the step * passes only what the user did and knows nothing about the API key, the user id * or the checkout snapshot. * * Lives beside the step rather than in `~/hooks/` because it is Polymarket-specific * and those directories must stay customer-agnostic. */ import type { Address } from 'viem'; import type { PerpsTransferDirection } from './PolymarketPerpsTransferScreen'; export interface RecordPerpsTransferInput { direction: PerpsTransferDirection; sourceAddress: Address; destinationAddress: Address; /** Exact string the user entered (validated numeric, ≤6 decimals). */ amountUsd: string; /** The rail's own id, when the integrator's `transfer()` returns one. */ railId?: string; } /** * Never rejects: the underlying record swallows its own failures. No-ops when * there is no active checkout to attribute the transfer to. */ export declare function useRecordPerpsTransfer(): (input: RecordPerpsTransferInput) => Promise;