export type CodexGoalSnapshotStatus = 'active' | 'complete' | 'cancelled' | 'failed' | 'unknown'; export interface CodexGoalSnapshot { available: boolean; objective?: string; status?: CodexGoalSnapshotStatus; tokenBudget?: number; remainingTokens?: number | null; unavailableReason?: 'db_schema_context_error' | 'tool_error'; errorMessage?: string; 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 isCodexGoalDbSchemaContextError(message: string | undefined): boolean; 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; export declare function buildCodexGoalTerminalCleanupNotice(workflowLabel: string): string; export declare function buildCompletedCodexGoalRemediation(workflowLabel: string): string; //# sourceMappingURL=codex-goal-snapshot.d.ts.map