/** * Read-only cross-run analytics for a saved flow name. * Aggregates last N runs from the project store — no writes, no auto-tune. */ export interface FlowAnalytics { flowName: string; window: { last: number; }; runs: number; statusHistogram: Record; p50DurationMs?: number; p95DurationMs?: number; totalCostUSD?: number; perPhase: Array<{ phaseId: string; runs: number; failRate: number; p50DurationMs?: number; cacheHitRate?: number; }>; } /** * Aggregate analytics for runs of `flowName` (exact match on RunState.flowName). */ export declare function analyzeFlowRuns(cwd: string, flowName: string, opts?: { last?: number; }): FlowAnalytics; export declare function formatAnalyticsReport(a: FlowAnalytics, json?: boolean): string; //# sourceMappingURL=analytics.d.ts.map