/** * XLayer Portal 操作 — 格式化 / 工具函数(format) */ /** * 计算带滑点的最小输出 * * @param expectedOutput 预期输出 * @param slippageBps 滑点基点(如 100 = 1%) */ export declare function applySlippage(expectedOutput: bigint, slippageBps: number): bigint; /** * 将 Portal 的 lpFeeProfile 转换为 V3 Router 所需的 fee (100万分比) * * STANDARD = 0.25% (2500) * LOW = 0.01% (100) * HIGH = 1% (10000) */ export declare function lpFeeProfileToV3Fee(profile: number): number; /** * 格式化 OKB 金额(wei -> OKB 字符串) */ export declare function formatOkb(wei: bigint): string; /** * 解析 OKB 金额(OKB 字符串 -> wei) */ export declare function parseOkb(okb: string): bigint; /** * 格式化代币金额(考虑精度) */ export declare function formatTokenAmount(amount: bigint, decimals?: number): string; /** * 解析代币金额(考虑精度) */ export declare function parseTokenAmount(amount: string, decimals?: number): bigint;