export type CodexGoalSnapshotStatus = "active" | "complete" | "cancelled" | "failed" | "unknown"; export interface CodexGoalSnapshot { available: boolean; objective?: string; status?: CodexGoalSnapshotStatus; raw: unknown; } export interface CodexGoalReconciliation { ok: boolean; snapshot: CodexGoalSnapshot; warnings: string[]; errors: string[]; } export interface ReconcileCodexGoalOptions { expectedObjective: string; acceptedObjectives?: readonly string[]; allowedStatuses?: readonly CodexGoalSnapshotStatus[]; requireSnapshot?: boolean; requireComplete?: boolean; } export declare class CodexGoalSnapshotError extends Error { } export declare function parseCodexGoalSnapshot(value: unknown): CodexGoalSnapshot; export declare function readCodexGoalSnapshotInput(raw: string | undefined, cwd?: string): Promise; export declare function reconcileCodexGoalSnapshot(snapshot: CodexGoalSnapshot | null | undefined, options: ReconcileCodexGoalOptions): CodexGoalReconciliation; export declare function formatCodexGoalReconciliation(reconciliation: CodexGoalReconciliation): string;