import { Command } from 'commander'; import type { TraceEvent } from '../../agent/trace/index.js'; import { listTraces, resolveLatestSession } from '../../agent/trace/listing.js'; export type { TraceDirEntry } from '../../agent/trace/listing.js'; export { listTraces, resolveLatestSession }; export interface ParsedTrace { events: TraceEvent[]; malformed: number; } export declare function parseTrace(content: string): ParsedTrace; export declare function loadTrace(session: string): Promise<{ sessionId: string; tracePath: string; } & ParsedTrace>; export interface FormatTraceOptions { showAll?: boolean; limit?: number; } export declare function formatTrace(sessionId: string, tracePath: string, parsed: ParsedTrace, options?: FormatTraceOptions): string; export declare function registerTraceCommand(program: Command): void;