/** * Unified `perp portfolio` command — replaces: * - `perp account balance` (single-exchange detail) → `perp portfolio -e ` * - prior `perp portfolio` → `perp portfolio` (rebuilt) * - `perp status` → `perp portfolio --arb` * - `perp status --health` → `perp portfolio --health` * - `perp dashboard` → `perp portfolio --serve` * * Modes (mutually exclusive, picked by flag): * snapshot (default) | health | watch | serve * * I/O contract: * - Text mode → human-friendly tables + side-by-side panels (status-like) * - JSON mode → canonical envelope (see spec); arb / health / serve keys conditional * - --stdin → read JSON args from stdin, overrides CLI flags */ import type { Command } from "commander"; import type { ExchangeAdapter } from "../exchanges/index.js"; export declare function registerPortfolioCommand(program: Command, getAdapterForExchange: (exchange: string) => Promise, isJson: () => boolean, version: string, getHLAdapterForDex?: (dex: string) => Promise): void;