import { CreateAgentTaskDto, type AgentTaskDto, UpdateAgentTaskDto } from '@n8n/api-types'; import type { AuthenticatedRequest } from '@n8n/db'; import type { Response } from 'express'; import { AgentTaskService } from './agent-task.service'; import { AgentRepository } from './repositories/agent.repository'; export declare class AgentTasksController { private readonly agentTaskService; private readonly agentRepository; constructor(agentTaskService: AgentTaskService, agentRepository: AgentRepository); private getAgentOrThrow; listTasks(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string): Promise; createTask(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, payload: CreateAgentTaskDto): Promise; updateTask(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, taskId: string, payload: UpdateAgentTaskDto): Promise; deleteTask(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, taskId: string): Promise<{ success: true; }>; runTaskNow(req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, agentId: string, taskId: string): Promise<{ success: true; }>; }