/**
 * Loop V2 Routes Module
 * CCW Loop System - Simplified HTTP API endpoints for Dashboard
 * Provides simplified loop CRUD operations independent of task files
 *
 * Loop Endpoints:
 * - GET    /api/loops/v2                   - List all loops with pagination
 * - POST   /api/loops/v2                   - Create loop with {title, description, max_iterations}
 * - GET    /api/loops/v2/:loopId           - Get loop details
 * - PUT    /api/loops/v2/:loopId           - Update loop metadata (title, description, max_iterations, tags, priority, notes)
 * - PATCH  /api/loops/v2/:loopId/status    - Quick status update with {status}
 * - DELETE /api/loops/v2/:loopId           - Delete loop
 * - POST   /api/loops/v2/:loopId/start     - Start loop execution
 * - POST   /api/loops/v2/:loopId/pause     - Pause loop
 * - POST   /api/loops/v2/:loopId/resume    - Resume loop
 * - POST   /api/loops/v2/:loopId/stop      - Stop loop
 *
 * Task Management Endpoints:
 * - POST   /api/loops/v2/:loopId/tasks           - Add task to loop
 * - GET    /api/loops/v2/:loopId/tasks           - List all tasks for loop
 * - PUT    /api/loops/v2/tasks/:taskId           - Update task (requires loop_id in body)
 * - DELETE /api/loops/v2/tasks/:taskId           - Delete task (requires loop_id query param)
 * - PUT    /api/loops/v2/:loopId/tasks/reorder   - Reorder tasks with {ordered_task_ids: string[]}
 *
 * Advanced Task Features:
 * - POST   /api/loops/v2/:loopId/import   - Import tasks from issue with {issue_id}
 * - POST   /api/loops/v2/:loopId/generate - Generate tasks via Gemini with {tool?, count?}
 */
import type { RouteContext } from './types.js';
/**
 * Initialize CLI tools cache at server startup
 * Should be called once when the server starts
 */
export declare function initializeCliToolsCache(): void;
/**
 * Clear CLI tools cache (for testing or config reload)
 */
export declare function clearCliToolsCache(): void;
/**
 * Handle V2 loop routes
 * @returns true if route was handled, false otherwise
 */
export declare function handleLoopV2Routes(ctx: RouteContext): Promise<boolean>;
//# sourceMappingURL=loop-v2-routes.d.ts.map