/**
 * @fileoverview Pure utility functions for terminal pattern detection in respawn controller.
 *
 * Extracted from respawn-controller.ts for modularity. These are stateless functions
 * and constants used to detect completion messages, working patterns, and token counts
 * in terminal output.
 *
 * @module respawn-patterns
 */
/**
 * Patterns indicating Claude is ready for input (legacy fallback).
 * Used as secondary signals, not primary detection.
 */
export declare const PROMPT_PATTERNS: string[];
/**
 * Patterns indicating Claude is actively working.
 * When detected, resets all idle detection timers.
 * Note: ✻ and ✽ removed - they appear in completion messages too.
 */
export declare const WORKING_PATTERNS: string[];
/**
 * Check if data contains a completion message pattern.
 * Matches "Worked for Xh Xm Xs" time duration patterns.
 *
 * @param data - Raw terminal output data
 * @returns True if completion message pattern is found
 */
export declare function isCompletionMessage(data: string): boolean;
/**
 * Check if a rolling window of terminal output contains working patterns.
 * The rolling window catches patterns split across chunks (e.g., "Thin" + "king").
 *
 * @param window - Rolling window of recent terminal output (already includes current data)
 * @returns True if any working pattern is found in the window
 */
export declare function hasWorkingPattern(window: string): boolean;
/**
 * Extract token count from data if present.
 * Parses patterns like "123.4k tokens" or "1.5M tokens".
 *
 * @param data - Raw terminal output data
 * @returns Parsed token count, or null if no token pattern found
 */
export declare function extractTokenCount(data: string): number | null;
//# sourceMappingURL=respawn-patterns.d.ts.map