import { z } from 'zod'; export declare const LocalAppProjectSchema: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; export declare const LocalAppProjectOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppProjectListSchema: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>>; total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$strip>; export declare const LocalAppMilestoneSchema: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; title: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; completed: "completed"; planned: "planned"; }>; sortOrder: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; description: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; export declare const LocalAppProgressSchema: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; summary: z.ZodString; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; createdAt: z.ZodNumber; progress: z.ZodArray; risks: z.ZodArray; nextSteps: z.ZodArray; }, z.core.$strip>; export declare const LocalAppMilestonesSchema: z.ZodObject<{ ok: z.ZodLiteral; projectId: z.ZodString; items: z.ZodArray; sortOrder: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; description: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const LocalAppUpdatesSchema: z.ZodObject<{ ok: z.ZodLiteral; projectId: z.ZodString; items: z.ZodArray; createdAt: z.ZodNumber; progress: z.ZodArray; risks: z.ZodArray; nextSteps: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; export declare const LocalAppMilestoneOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; milestone: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; title: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; completed: "completed"; planned: "planned"; }>; sortOrder: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; description: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppProgressOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; update: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; summary: z.ZodString; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; createdAt: z.ZodNumber; progress: z.ZodArray; risks: z.ZodArray; nextSteps: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppAutomationSchema: z.ZodObject<{ name: z.ZodString; enabled: z.ZodBoolean; id: z.ZodString; description: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; export declare const LocalAppAutomationOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; automation: z.ZodObject<{ name: z.ZodString; enabled: z.ZodBoolean; id: z.ZodString; description: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppAutomationListSchema: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; export declare const LocalAppAutomationRunSchema: z.ZodObject<{ id: z.ZodString; automationId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; cancelling: "cancelling"; timeout: "timeout"; }>; createdAtMs: z.ZodNumber; durationMs: z.ZodOptional; startedAtMs: z.ZodOptional; endedAtMs: z.ZodOptional; currentPhase: z.ZodOptional>; cancelRequestedAtMs: z.ZodOptional; cancelConfirmedAtMs: z.ZodOptional; summary: z.ZodOptional; failureCode: z.ZodOptional>; }, z.core.$strip>; export declare function projectLocalAppRun(run: T): T & { summary: string | undefined; failureCode: "execution_failed" | "budget_exhausted" | "authorization_ended" | undefined; }; export declare const LocalAppAutomationRunOutputSchema: z.ZodObject<{ ok: z.ZodLiteral; run: z.ZodObject<{ id: z.ZodString; automationId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; cancelling: "cancelling"; timeout: "timeout"; }>; createdAtMs: z.ZodNumber; durationMs: z.ZodOptional; startedAtMs: z.ZodOptional; endedAtMs: z.ZodOptional; currentPhase: z.ZodOptional>; cancelRequestedAtMs: z.ZodOptional; cancelConfirmedAtMs: z.ZodOptional; summary: z.ZodOptional; failureCode: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppAutomationSubmitSchema: z.ZodObject<{ ok: z.ZodLiteral; automation: z.ZodObject<{ name: z.ZodString; enabled: z.ZodBoolean; id: z.ZodString; description: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; run: z.ZodObject<{ id: z.ZodString; automationId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; cancelling: "cancelling"; timeout: "timeout"; }>; createdAtMs: z.ZodNumber; durationMs: z.ZodOptional; startedAtMs: z.ZodOptional; endedAtMs: z.ZodOptional; currentPhase: z.ZodOptional>; cancelRequestedAtMs: z.ZodOptional; cancelConfirmedAtMs: z.ZodOptional; summary: z.ZodOptional; failureCode: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppAutomationHistorySchema: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; createdAtMs: z.ZodNumber; durationMs: z.ZodOptional; startedAtMs: z.ZodOptional; endedAtMs: z.ZodOptional; currentPhase: z.ZodOptional>; cancelRequestedAtMs: z.ZodOptional; cancelConfirmedAtMs: z.ZodOptional; summary: z.ZodOptional; failureCode: z.ZodOptional>; }, z.core.$strip>>; hasMore: z.ZodBoolean; nextCursor: z.ZodOptional; }, z.core.$strip>; export declare const LocalAppRunEventSchema: z.ZodObject<{ type: z.ZodEnum<{ "run.queued": "run.queued"; "run.started": "run.started"; "run.deadline_resolved": "run.deadline_resolved"; "run.cancel_requested": "run.cancel_requested"; "run.cancel_confirmed": "run.cancel_confirmed"; "run.cancellation_unconfirmed": "run.cancellation_unconfirmed"; "run.recovered": "run.recovered"; "action.started": "action.started"; "action.retry_scheduled": "action.retry_scheduled"; "action.completed": "action.completed"; "action.failed": "action.failed"; "run.completed": "run.completed"; }>; runId: z.ZodString; id: z.ZodString; createdAtMs: z.ZodNumber; }, z.core.$strip>; export declare const LocalAppRunEventsSchema: z.ZodObject<{ ok: z.ZodLiteral; events: z.ZodArray; runId: z.ZodString; id: z.ZodString; createdAtMs: z.ZodNumber; }, z.core.$strip>>; truncated: z.ZodBoolean; }, z.core.$strip>; export declare const LocalAppNoteSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; export declare const LocalAppNoteOutputSchema: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export declare const LocalAppNoteIndexSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; pinned: z.ZodOptional; localVersion: z.ZodOptional; tags: z.ZodOptional>; remoteVersion: z.ZodOptional; snippet: z.ZodOptional; }, z.core.$strip>; export declare const LocalAppNoteListSchema: z.ZodObject<{ items: z.ZodArray; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; pinned: z.ZodOptional; localVersion: z.ZodOptional; tags: z.ZodOptional>; remoteVersion: z.ZodOptional; snippet: z.ZodOptional; }, z.core.$strip>>; total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$strip>; export declare const LocalAppTaskSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; export declare const LocalAppTaskModelSchema: z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>; export declare const LocalAppTaskOutputSchema: z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; ok: z.ZodLiteral; }, z.core.$strip>; export declare const LocalAppTaskListSchema: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; total: z.ZodNumber; }, z.core.$strip>; export declare const LocalAppTaskMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; model: z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; reason: z.ZodEnum<{ not_found: "not_found"; blocked: "blocked"; conflict: "conflict"; invalid_transition: "invalid_transition"; }>; model: z.ZodOptional; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; }, z.core.$strip>], "ok">; export declare const LocalAppTaskEditSchema: z.ZodObject<{ ok: z.ZodLiteral; task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>;