/** * message-classifier — content-based message classification for hook filtering. * * Provides an allowlist/blocklist approach to classify incoming prompts so that * hooks can skip low-value messages (heartbeats, SDK metadata) without duplicating * detection logic across multiple hook files. */ /** Semantic category of an incoming message. */ export type MessageCategory = 'user_prompt' | 'heartbeat' | 'system' | 'agent_internal'; /** * Classify an incoming message based on its content and optional tool name. * * Decision order: * 1. Heartbeat — always block (workspace health check noise) * 2. System — always block (SDK metadata, not a user query) * 3. Default — treat as user_prompt (allow) * * @param prompt - The raw prompt or message text to classify. * @param toolName - Optional tool name associated with the message (after_tool_call hook). * @returns The most specific category that matches, or 'user_prompt' by default. */ export declare function classifyMessage(prompt: string, toolName?: string): MessageCategory; //# sourceMappingURL=message-classifier.d.ts.map