import { z } from "zod"; export declare const goalStatuses: readonly ["pursuing", "paused", "achieved", "budget-limited", "blocked"]; export type GoalStatus = (typeof goalStatuses)[number]; export declare const goalHistoryEntrySchema: z.ZodObject<{ iteration: z.ZodNumber; summary: z.ZodString; status: z.ZodString; created_at: z.ZodOptional; }, "strip", z.ZodTypeAny, { iteration: number; summary: string; status: string; created_at?: string | undefined; }, { iteration: number; summary: string; status: string; created_at?: string | undefined; }>; export declare const goalSchema: z.ZodObject<{ objective: z.ZodString; status: z.ZodEnum<["pursuing", "paused", "achieved", "budget-limited", "blocked"]>; created_at: z.ZodString; updated_at: z.ZodOptional; token_budget: z.ZodDefault; tokens_used: z.ZodDefault; iteration: z.ZodDefault; max_iterations: z.ZodDefault; budget_warning_sent: z.ZodDefault; last_message_id: z.ZodOptional; last_response_text: z.ZodOptional; history: z.ZodDefault; }, "strip", z.ZodTypeAny, { iteration: number; summary: string; status: string; created_at?: string | undefined; }, { iteration: number; summary: string; status: string; created_at?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { iteration: number; status: "pursuing" | "paused" | "achieved" | "budget-limited" | "blocked"; created_at: string; objective: string; token_budget: number; tokens_used: number; max_iterations: number; budget_warning_sent: boolean; history: { iteration: number; summary: string; status: string; created_at?: string | undefined; }[]; updated_at?: string | undefined; last_message_id?: string | undefined; last_response_text?: string | undefined; }, { status: "pursuing" | "paused" | "achieved" | "budget-limited" | "blocked"; created_at: string; objective: string; iteration?: number | undefined; updated_at?: string | undefined; token_budget?: number | undefined; tokens_used?: number | undefined; max_iterations?: number | undefined; budget_warning_sent?: boolean | undefined; last_message_id?: string | undefined; last_response_text?: string | undefined; history?: { iteration: number; summary: string; status: string; created_at?: string | undefined; }[] | undefined; }>; export type Goal = z.infer; export type GoalHistoryEntry = z.infer; export type CreateGoalInput = { objective: string; tokenBudget?: number; maxIterations?: number; }; export type GoalStore = ReturnType; export declare function createGoalStore(root: string): { path: string; read: () => Promise; write: (goal: Goal) => Promise; create: (input: CreateGoalInput) => Promise; update: (mutator: (goal: Goal) => Goal | Promise) => Promise; setStatus: (status: GoalStatus, summary?: string) => Promise; clear: () => Promise; };