/** * Swap ledger — one line per executed on-chain swap, at ~/.blockrun/swaps.jsonl. * The swap tools (0x on Base, Jupiter on Solana) append here on success so the * desktop wallet view can show a "swaps" history with explorer links. Mirrors * the JSONL pattern of cost-log / audit. All writes are best-effort. */ export interface SwapRow { ts: number; chain: 'base' | 'solana'; dex: string; sellSym: string; sellAmount: number; buySym: string; buyAmount: number; txHash: string; explorer?: string; } export declare function appendSwap(row: SwapRow): void; export declare function readSwaps(limit?: number): SwapRow[];