import { z } from 'zod'; import { type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js'; import type { Config } from '../../config/schema.js'; import type { ProjectService } from '../../projects/index.js'; export declare const TaskMutationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; model: z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodOptional; phase: z.ZodEnum<{ backlog: "backlog"; ready: "ready"; active: "active"; review: "review"; closed: "closed"; }>; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; projectId: z.ZodOptional; milestoneId: z.ZodOptional; parentTaskId: z.ZodOptional; ownerId: z.ZodOptional; delegateAgentId: z.ZodOptional; source: z.ZodString; locale: z.ZodOptional>; latestContractVersion: z.ZodNumber; boardRank: z.ZodDefault; version: z.ZodNumber; contract: z.ZodOptional; acceptanceCriteria: z.ZodArray; constraints: z.ZodArray; approvalRequired: z.ZodArray; assumptions: z.ZodArray; risks: z.ZodArray; acceptancePolicy: z.ZodEnum<{ verified_auto: "verified_auto"; verified_then_review: "verified_then_review"; manual: "manual"; }>; outputDestinations: z.ZodArray>; createdBy: z.ZodObject<{ kind: z.ZodEnum<{ user: "user"; agent: "agent"; system: "system"; integration: "integration"; }>; id: z.ZodOptional; }, z.core.$strip>; createdAt: z.ZodNumber; }, z.core.$strip>>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; closedAt: z.ZodOptional; }, z.core.$strip>; attention: z.ZodArray; summary: z.ZodString; sourceId: z.ZodOptional; }, z.core.$strip>>; operationalState: z.ZodEnum<{ failed: "failed"; waiting: "waiting"; cancelled: "cancelled"; idle: "idle"; queued: "queued"; running: "running"; verifying: "verifying"; blocked: "blocked"; }>; allowedCommands: z.ZodArray; }, z.core.$strip>; runId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; reason: z.ZodEnum<{ blocked: "blocked"; conflict: "conflict"; not_found: "not_found"; invalid_transition: "invalid_transition"; }>; model: z.ZodOptional; phase: z.ZodEnum<{ backlog: "backlog"; ready: "ready"; active: "active"; review: "review"; closed: "closed"; }>; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; projectId: z.ZodOptional; milestoneId: z.ZodOptional; parentTaskId: z.ZodOptional; ownerId: z.ZodOptional; delegateAgentId: z.ZodOptional; source: z.ZodString; locale: z.ZodOptional>; latestContractVersion: z.ZodNumber; boardRank: z.ZodDefault; version: z.ZodNumber; contract: z.ZodOptional; acceptanceCriteria: z.ZodArray; constraints: z.ZodArray; approvalRequired: z.ZodArray; assumptions: z.ZodArray; risks: z.ZodArray; acceptancePolicy: z.ZodEnum<{ verified_auto: "verified_auto"; verified_then_review: "verified_then_review"; manual: "manual"; }>; outputDestinations: z.ZodArray>; createdBy: z.ZodObject<{ kind: z.ZodEnum<{ user: "user"; agent: "agent"; system: "system"; integration: "integration"; }>; id: z.ZodOptional; }, z.core.$strip>; createdAt: z.ZodNumber; }, z.core.$strip>>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; closedAt: z.ZodOptional; }, z.core.$strip>; attention: z.ZodArray; summary: z.ZodString; sourceId: z.ZodOptional; }, z.core.$strip>>; operationalState: z.ZodEnum<{ failed: "failed"; waiting: "waiting"; cancelled: "cancelled"; idle: "idle"; queued: "queued"; running: "running"; verifying: "verifying"; blocked: "blocked"; }>; allowedCommands: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "ok">; export interface TaskWriteCapabilityDeps { getConfig?: () => Config | undefined; getProjects?: () => ProjectService | undefined; wake?: (runs: boolean) => void; abortConversation?: (conversationId: string) => void | Promise; } export declare function registerTaskWriteCapabilities(dispatcher: CapabilityDispatcher, deps: TaskWriteCapabilityDeps): void;