import { type CodexGoalSnapshot, type CodexGoalReconciliation } from '../goal-workflows/codex-goal-snapshot.js'; export declare const AUTORESEARCH_GOAL_ROOT = ".omx/goals/autoresearch"; export declare const AUTORESEARCH_GOAL_MISSION = "mission.json"; export declare const AUTORESEARCH_GOAL_RUBRIC = "rubric.md"; export declare const AUTORESEARCH_GOAL_LEDGER = "ledger.jsonl"; export declare const AUTORESEARCH_GOAL_COMPLETION = "completion.json"; export type AutoresearchGoalStatus = 'created' | 'in_progress' | 'passed' | 'failed' | 'blocked' | 'complete'; export type AutoresearchGoalVerdict = 'pass' | 'fail' | 'blocked'; export interface AutoresearchGoalMission { schema_version: 1; workflow: 'autoresearch-goal'; slug: string; topic: string; rubric: string; critic_command?: string; status: AutoresearchGoalStatus; created_at: string; updated_at: string; completed_at?: string; mission_path: string; rubric_path: string; ledger_path: string; completion_path: string; } export interface AutoresearchGoalCompletion { schema_version: 1; slug: string; verdict: AutoresearchGoalVerdict; passed: boolean; summary: string; evidence: string; artifact_path?: string; critic_command?: string; recorded_at: string; } export interface AutoresearchGoalLedgerEntry { ts: string; event: 'workflow_created' | 'goal_handoff_emitted' | 'validation_passed' | 'validation_failed' | 'validation_blocked' | 'goal_completed'; slug: string; status?: AutoresearchGoalStatus; message?: string; evidence?: string; artifact_path?: string; } export interface CreateAutoresearchGoalOptions { topic: string; rubric: string; slug?: string; criticCommand?: string; force?: boolean; now?: Date; } export interface RecordAutoresearchGoalVerdictOptions { slug: string; verdict: AutoresearchGoalVerdict; evidence: string; summary?: string; artifactPath?: string; now?: Date; } export interface CompleteAutoresearchGoalOptions { codexGoal?: unknown; now?: Date; } export declare class AutoresearchGoalError extends Error { } export declare function autoresearchGoalDir(cwd: string, slug: string): string; export declare function autoresearchGoalMissionPath(cwd: string, slug: string): string; export declare function autoresearchGoalRubricPath(cwd: string, slug: string): string; export declare function autoresearchGoalLedgerPath(cwd: string, slug: string): string; export declare function autoresearchGoalCompletionPath(cwd: string, slug: string): string; export declare function createAutoresearchGoal(cwd: string, options: CreateAutoresearchGoalOptions): Promise; export declare function readAutoresearchGoal(cwd: string, slug: string): Promise; export declare function readAutoresearchGoalCompletion(cwd: string, slug: string): Promise; export declare function recordAutoresearchGoalVerdict(cwd: string, options: RecordAutoresearchGoalVerdictOptions): Promise<{ mission: AutoresearchGoalMission; completion: AutoresearchGoalCompletion; }>; export declare function completeAutoresearchGoal(cwd: string, slug: string, options?: CompleteAutoresearchGoalOptions): Promise<{ mission: AutoresearchGoalMission; completion: AutoresearchGoalCompletion; }>; export declare function buildAutoresearchGoalObjective(mission: Pick): string; export declare function buildLegacyAutoresearchGoalObjective(mission: Pick): string; export declare function reconcileAutoresearchCodexGoalSnapshot(snapshot: CodexGoalSnapshot | null | undefined, mission: Pick, options?: { requireSnapshot?: boolean; requireComplete?: boolean; }): CodexGoalReconciliation; export declare function buildAutoresearchGoalHandoff(cwd: string, slug: string, now?: Date): Promise; //# sourceMappingURL=goal.d.ts.map