import type { Client } from '@libsql/client'; import type { ResolvedConfig } from '../config.js'; type RequestEvent = Parameters[0]['event']; /** * POST /ai/start/:id * * Start the AI agent on a task. Validates the task exists, then * delegates to the agent lifecycle manager. */ export declare function handleStartAI(event: RequestEvent, db: Client, config: ResolvedConfig, params: Record): Promise; /** * POST /ai/stop/:id * * Stop the AI agent running on a task. Verifies the active agent * matches the requested task before stopping. */ export declare function handleStopAI(_event: RequestEvent, db: Client, _config: ResolvedConfig, params: Record): Promise; /** * POST /ai/unblock/:id * * Provide an answer to unblock the AI agent. Parses the answer from * the request body, verifies the agent is blocked on this task, and * resumes the agent with the answer. */ export declare function handleUnblockAI(event: RequestEvent, db: Client, config: ResolvedConfig, params: Record): Promise; /** * GET /ai/logs/:id * * Delegate to the SSE connection handler for streaming agent logs. */ export declare function handleAILogs(event: RequestEvent, db: Client, config: ResolvedConfig, params: Record): Promise; export {}; //# sourceMappingURL=ai-agent.d.ts.map