import { type Stats } from "node:fs"; import type { SyncReport } from "./sync-engine.js"; export declare const LONG_TASK_CODEX_AGENT_PROFILE_RELATIVE_PATH = ".codex/agents/long-task-implementation.toml"; export declare const LONG_TASK_CODEX_AGENT_PROFILE_MANAGED_MARKER = "# ty-context:managed:long-task-implementation-worker"; export interface LongTaskCodexAgentProfile { name: "long_task_implementation"; description: string; developer_instructions: string; model: string; model_reasoning_effort: string; agents: { enabled: false; }; } export type LongTaskCodexAgentProfileValidation = { valid: true; profile: LongTaskCodexAgentProfile; } | { valid: false; errors: string[]; }; export interface LongTaskCodexAgentProfileFileOperations { lstat(target: string): Promise; realpath(target: string): Promise; readFile(target: string, encoding: "utf8"): Promise; mkdir(target: string, options: { recursive: true; }): Promise; writeFile(target: string, content: string, options: { flag: "wx"; }): Promise; rename(source: string, destination: string): Promise; rm(target: string, options: { force: true; }): Promise; randomId(): string; } export declare function parseAndValidateLongTaskCodexAgentProfile(content: string): LongTaskCodexAgentProfileValidation; export declare function syncLongTaskCodexAgentProfile(projectRoot: string, resolvedHarnessRoot: string, enabled: boolean, report: SyncReport, fileOperations?: Partial): Promise; export declare function longTaskCodexAgentProfileBootstrapPaths(projectRoot: string, resolvedHarnessRoot: string, enabled: boolean, fileOperations?: Partial): Promise; export declare function isManagedLongTaskCodexAgentProfile(content: string): boolean; export declare function atomicWriteLongTaskCodexAgentProfile(destination: string, content: string, operations?: LongTaskCodexAgentProfileFileOperations, beforeRename?: () => Promise): Promise;