import { z } from "zod"; import type { BreakpointBackend } from "../../backend.js"; import type { Breakpoint, BreakpointRouting, BreakpointStatus, TaskPriority } from "../../types.js"; export declare const createTodoDescription = "Create a todo routed through tasks-adapter. The todo is stored as a task-like breakpoint so existing responder backends, routing, and audit trails remain the source of truth."; export declare const createTodoParams: { backend: z.ZodOptional; breakpointsDir: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; urgency: z.ZodOptional>; priority: z.ZodOptional>; dependsOn: z.ZodOptional>; sourceUrl: z.ZodOptional; metadata: z.ZodOptional>; projectId: z.ZodOptional; repoId: z.ZodOptional; responderId: z.ZodOptional; responderType: z.ZodOptional>; adapter: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; trackerBackend: z.ZodOptional; fallbackType: z.ZodOptional>; title: z.ZodString; description: z.ZodOptional; }; export declare const createTaskDescription = "Create a task routed through tasks-adapter. This is an alias-friendly task surface backed by the same breakpoint storage as assign_task."; export declare const createTaskParams: { backend: z.ZodOptional; breakpointsDir: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; urgency: z.ZodOptional>; priority: z.ZodOptional>; dependsOn: z.ZodOptional>; sourceUrl: z.ZodOptional; metadata: z.ZodOptional>; projectId: z.ZodOptional; repoId: z.ZodOptional; responderId: z.ZodOptional; responderType: z.ZodOptional>; adapter: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; trackerBackend: z.ZodOptional; fallbackType: z.ZodOptional>; title: z.ZodString; instructions: z.ZodOptional; }; export declare const assignTaskDescription = "Assign a task through tasks-adapter responder routing. Use this instead of direct agent delegation when the work should be visible to the task router."; export declare const assignTaskParams: { backend: z.ZodOptional; breakpointsDir: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; urgency: z.ZodOptional>; priority: z.ZodOptional>; dependsOn: z.ZodOptional>; sourceUrl: z.ZodOptional; metadata: z.ZodOptional>; projectId: z.ZodOptional; repoId: z.ZodOptional; responderId: z.ZodOptional; responderType: z.ZodOptional>; adapter: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; trackerBackend: z.ZodOptional; fallbackType: z.ZodOptional>; taskId: z.ZodOptional; title: z.ZodString; instructions: z.ZodOptional; assignee: z.ZodOptional; }; export declare const searchTasksDescription = "Search task-like breakpoints currently visible to tasks-adapter. This is read-only and uses the configured BreakpointBackend."; export declare const searchTasksParams: { query: z.ZodOptional; status: z.ZodOptional, z.ZodArray, "many">]>>; priority: z.ZodOptional, z.ZodArray, "many">]>>; assigneeId: z.ZodOptional; responderId: z.ZodOptional; domain: z.ZodOptional; tags: z.ZodOptional>; sortBy: z.ZodOptional>; sortDirection: z.ZodOptional>; offset: z.ZodOptional; limit: z.ZodOptional; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const addCommentDescription = "Add a discussion comment to a task-like breakpoint through the configured BreakpointBackend."; export declare const addCommentParams: { taskId: z.ZodString; authorId: z.ZodString; authorName: z.ZodOptional; text: z.ZodString; metadata: z.ZodOptional>; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const addCommentToBreakpointDescription = "Add a discussion comment to a breakpoint through the configured BreakpointBackend."; export declare const addCommentToBreakpointParams: { breakpointId: z.ZodString; authorId: z.ZodString; authorName: z.ZodOptional; text: z.ZodString; metadata: z.ZodOptional>; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const bulkUpdateTasksDescription = "Apply a backend-agnostic bulk operation to task-like breakpoints with per-item success and failure details."; export declare const bulkUpdateTasksParams: { ids: z.ZodArray; action: z.ZodEnum<["approve", "close", "cancel", "reassign", "transition"]>; actorId: z.ZodOptional; assigneeId: z.ZodOptional; assigneeName: z.ZodOptional; status: z.ZodOptional>; message: z.ZodOptional; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const taskStatsDescription = "Compute deterministic task metrics grouped by status and priority."; export declare const taskStatsParams: { status: z.ZodOptional, z.ZodArray, "many">]>>; priority: z.ZodOptional, z.ZodArray, "many">]>>; assigneeId: z.ZodOptional; responderId: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const exportTasksDescription = "Export matching task-like breakpoints with credential-bearing notification targets redacted."; export declare const exportTasksParams: { status: z.ZodOptional, z.ZodArray, "many">]>>; priority: z.ZodOptional, z.ZodArray, "many">]>>; assigneeId: z.ZodOptional; responderId: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const escalateDescription = "Escalate an existing task or create a high-urgency intervention through tasks-adapter routing."; export declare const escalateParams: { backend: z.ZodOptional; breakpointsDir: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; urgency: z.ZodOptional>; priority: z.ZodOptional>; dependsOn: z.ZodOptional>; sourceUrl: z.ZodOptional; metadata: z.ZodOptional>; projectId: z.ZodOptional; repoId: z.ZodOptional; responderId: z.ZodOptional; responderType: z.ZodOptional>; adapter: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; trackerBackend: z.ZodOptional; fallbackType: z.ZodOptional>; taskId: z.ZodOptional; title: z.ZodOptional; reason: z.ZodString; targetResponderId: z.ZodOptional; }; export declare const cancelBreakpointDescription = "Cancel a pending breakpoint through the configured BreakpointBackend."; export declare const cancelBreakpointParams: { breakpointId: z.ZodString; backend: z.ZodOptional; breakpointsDir: z.ZodOptional; }; export declare const escalateBreakpointDescription = "Escalate an existing breakpoint through tasks-adapter routing and lifecycle state."; export declare const escalateBreakpointParams: { backend: z.ZodOptional; breakpointsDir: z.ZodOptional; tags: z.ZodOptional>; domain: z.ZodOptional; urgency: z.ZodOptional>; priority: z.ZodOptional>; dependsOn: z.ZodOptional>; sourceUrl: z.ZodOptional; metadata: z.ZodOptional>; projectId: z.ZodOptional; repoId: z.ZodOptional; responderId: z.ZodOptional; responderType: z.ZodOptional>; adapter: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; trackerBackend: z.ZodOptional; fallbackType: z.ZodOptional>; breakpointId: z.ZodString; reason: z.ZodString; targetResponderId: z.ZodOptional; }; export interface NativeTaskResult { tool: "create_todo" | "create_task" | "assign_task" | "escalate" | "escalate_breakpoint"; taskId: string; breakpoint: Breakpoint; routing: BreakpointRouting; metadata: Record; } export interface SearchTasksResult { tool: "search_tasks"; count: number; tasks: Breakpoint[]; } export declare function handleCreateTodo(params: z.infer>, backend: BreakpointBackend): Promise; export declare function handleAssignTask(params: z.infer>, backend: BreakpointBackend): Promise; export declare function handleCreateTask(params: z.infer>, backend: BreakpointBackend): Promise; export declare function handleSearchTasks(params: z.infer>, backend: BreakpointBackend): Promise; export declare function handleEscalate(params: z.infer>, backend: BreakpointBackend): Promise; export declare function handleCancelBreakpoint(params: z.infer>, backend: BreakpointBackend): Promise<{ tool: string; breakpointId: string; cancelled: boolean; }>; export declare function handleEscalateBreakpoint(params: z.infer>, backend: BreakpointBackend): Promise; export declare function handleAddComment(params: z.infer>, backend: BreakpointBackend): Promise<{ tool: string; taskId: string; comment: z.objectOutputType<{ id: z.ZodString; authorId: z.ZodString; authorName: z.ZodOptional; text: z.ZodString; createdAt: z.ZodString; metadata: z.ZodOptional>; }, z.ZodUnknown, "strip">; }>; export declare function handleAddCommentToBreakpoint(params: z.infer>, backend: BreakpointBackend): Promise<{ tool: string; breakpointId: string; taskId: string; comment: z.objectOutputType<{ id: z.ZodString; authorId: z.ZodString; authorName: z.ZodOptional; text: z.ZodString; createdAt: z.ZodString; metadata: z.ZodOptional>; }, z.ZodUnknown, "strip">; }>; export declare function handleBulkUpdateTasks(params: z.infer>, backend: BreakpointBackend): Promise<{ total: number; succeeded: number; failed: number; items: import("../../backend.js").BulkUpdateBreakpointItemResult[]; tool: string; }>; export declare function handleTaskStats(params: z.infer>, backend: BreakpointBackend): Promise<{ total: number; byStatus: Partial>; byPriority: Partial>; responseTimeAverageMs?: number; completionTimeAverageMs?: number; tool: string; }>; export declare function handleExportTasks(params: z.infer>, backend: BreakpointBackend): Promise<{ schemaVersion: 1; exportedAt: string; total: number; items: Breakpoint[]; tool: string; }>; //# sourceMappingURL=native-tasks.d.ts.map