export type AgentState = 'idle' | 'working' | 'tool-call' | 'blocked' | 'error' | 'completed'; export interface StatePattern { pattern: RegExp; state: AgentState; } export declare class StateDetector { private state; private lastActivity; private patterns; private idleThresholdMs; constructor(customPatterns?: StatePattern[], idleThresholdMs?: number); /** Process an SDK message and infer the agent's state. */ onMessage(type: string, subtype?: string, text?: string): AgentState; /** Check if agent has gone idle based on time since last activity. */ checkIdle(): AgentState; current(): AgentState; lastActiveAt(): number; } //# sourceMappingURL=state-detector.d.ts.map