import type { RouteContext } from './types.js';
interface ActiveExecution {
    id: string;
    tool: string;
    mode: string;
    prompt: string;
    startTime: number;
    output: string;
    status: 'running' | 'completed' | 'error';
    completedTimestamp?: number;
}
/**
 * Cleanup stale completed executions older than retention period
 * Runs periodically to prevent memory buildup
 */
export declare function cleanupStaleExecutions(): void;
/**
 * Get all active CLI executions
 * Used by frontend to restore state when view is opened during execution
 */
export declare function getActiveExecutions(): ActiveExecution[];
/**
 * Update active execution state from hook events
 * Called by hooks-routes when CLI events are received from terminal execution
 */
export declare function updateActiveExecution(event: {
    type: 'started' | 'output' | 'completed';
    executionId: string;
    tool?: string;
    mode?: string;
    prompt?: string;
    output?: string;
    success?: boolean;
}): void;
/**
 * Handle CLI routes
 * @returns true if route was handled, false otherwise
 */
export declare function handleCliRoutes(ctx: RouteContext): Promise<boolean>;
export {};
//# sourceMappingURL=cli-routes.d.ts.map