import type { Hex } from "../../types/evm.js"; /** Parameters for submitting a teleport via relay node. */ export interface RelayTeleportParams { isSingle: boolean; isGlobal: boolean; rootHint: bigint; chainId: bigint; recipient: Hex; tweak: Hex; proof: Hex; relayerFee: bigint; maxFee: bigint; deadline: bigint; signature: Hex; } /** Fee estimate returned by the relay node. */ export interface RelayFeeEstimate { relayerFee: bigint; } /** Result of a relay teleport submission. */ export interface RelayResult { txHash: string; } /** Parameters for requesting a swap quote. */ export interface SwapQuoteParams { chainId: number; /** Token amount in smallest unit. */ amount: bigint; } /** Swap quote returned by the relay node. */ export interface SwapQuote { /** Native token amount the user will receive (wei). */ nativeAmount: bigint; /** Fee in basis points. */ feeBps: number; /** Relayer gas fee deducted from the native output (wei). */ relayerFee: bigint; /** True when the relay is using stale or fallback oracle prices. */ priceFallback: boolean; } /** Parameters for submitting a token-to-native swap via relay node. */ export interface RelaySwapParams { chainId: number; /** Token amount to swap (smallest unit). */ tokenAmount: bigint; /** Minimum native output the user will accept (slippage protection). */ minNativeAmount: bigint; /** Maximum native output the relayer is willing to pay. */ maxNativeAmount: bigint; /** Address to receive native tokens. */ recipient: Hex; /** Address that signed the permit (token owner). */ owner: Hex; permitDeadline: bigint; permitV: number; permitR: Hex; permitS: Hex; } /** Result of a relay swap submission. */ export interface SwapResult { txHash: string; } /** Options for relay HTTP requests. */ export interface RelayRequestOptions { /** Request timeout in milliseconds. Defaults to 30 000 ms. */ timeoutMs?: number; /** An external AbortSignal to cancel the request. */ signal?: AbortSignal; } //# sourceMappingURL=types.d.ts.map