import type { AggregatedOperationMetrics, OperationSequence } from './aggregator'; export type IntentSignalType = 'latency-regression' | 'error-spike' | 'throughput-drop' | 'missing-workflow-step'; export interface IntentSignal { id: string; type: IntentSignalType; operation?: AggregatedOperationMetrics['operation']; confidence: number; description: string; metadata?: Record; evidence: { type: 'metric' | 'sequence' | 'anomaly'; description: string; data?: Record; }[]; } export interface IntentDetectorOptions { errorRateThreshold?: number; latencyP99ThresholdMs?: number; throughputDropThreshold?: number; minSequenceLength?: number; } export declare class IntentDetector { private readonly options; constructor(options?: IntentDetectorOptions); detectFromMetrics(current: AggregatedOperationMetrics[], previous?: AggregatedOperationMetrics[]): IntentSignal[]; detectSequentialIntents(sequences: OperationSequence[]): IntentSignal[]; }