import { type Hex } from "viem"; import type { ToolResult } from "./orders.js"; /** Approve-then-wrap calls for sweeping legacy USDC.e into pUSD. Exported for tests. */ export declare function buildLegacyWrapCalls(owner: Hex, amount: bigint): Array<{ target: Hex; value: "0"; data: Hex; }>; /** * Parse a dollar amount into micro-pUSD without silently changing what the * caller asked for. The old `BigInt(Math.floor(usd * 1e6))` truncated float * noise downward — `19.99 * 1e6` is 19_989_999.999…, i.e. a cent less than * requested. Round to the nearest micro-dollar and reject anything that isn't * representable (over-precision, negatives, NaN). Exported for tests. */ export declare function parseUsdAmount(amount: number): bigint | null; interface WithdrawInput { amount_usd?: number; to_address?: string; confirm?: boolean; } export declare function withdrawFunds(input: WithdrawInput): Promise; export {};