/** * Trade journal: JSONL-based persistent trade log * Stores: { timestamp, strategy, symbol, side, size, price, pnl, fees, holdingPeriod } * Location: ~/.perp/trade-journal.jsonl */ export interface JournalEntry { timestamp: number; strategy: string; symbol: string; exchange: string; side: "buy" | "sell"; size: string; entryPrice: string; exitPrice?: string; pnl?: number; fees?: number; holdingPeriodMs?: number; tags?: string[]; } export declare function appendJournal(entry: JournalEntry): void; export declare function readJournal(filter?: { strategy?: string; symbol?: string; from?: number; to?: number; }): JournalEntry[]; export declare function clearJournal(): void;