/** * `ruflo cost report` (ADR-508 ยง2.3): which subagent types and tools spent the * money, from the lines the ruflo-mods cost ledger writes to * `.claude-flow/cost/attribution.jsonl` (one per session; see * plugins/ruflo-mods/hooks/cost/attribution.ts `attributionLine`). * * The file is project-writable, so every line is validated to a fixed shape; * a bad line is skipped and counted, never trusted. */ export declare const ATTRIBUTION_PATH = ".claude-flow/cost/attribution.jsonl"; export interface AttributionLine { endedAt: number; totalUsd: number; byAgent: Record; byTool: Record; refusals: number; } /** One line validated, or undefined. */ export declare function parseAttributionLine(text: string): AttributionLine | undefined; export interface AttributionReport { sessions: number; skipped: number; totalUsd: number; refusals: number; byAgent: [string, number][]; byTool: [string, number][]; } /** The report over the file's lines, optionally only sessions that ended at or after `since` (ms). */ export declare function summarize(text: string, since?: number): AttributionReport; /** Reads the project's attribution file; an absent file is an empty report. */ export declare function readAttribution(cwd: string, since?: number): { report?: AttributionReport; error?: string; }; //# sourceMappingURL=attribution.d.ts.map