import type { AgentSetupPlan } from './prompt.ts'; export { createC15tIntegrationGuidance, createC15tSetupInstructions, } from './instructions.ts'; export type { C15tIntegrationGuidanceOptions, C15tSetupInstructionsOptions, C15tStorageMode, } from './instructions.ts'; export { createAgentSetupPlan, DEFAULT_C15T_SETUP_PROMPT } from './prompt.ts'; export type { AgentSetupOptions, AgentSetupPlan } from './prompt.ts'; /** Error name for launches that failed before the agent could edit anything. */ export declare const AGENT_NOT_STARTED_ERROR = "AgentNotStartedError"; /** * Check whether a launch failed before the agent ran. * @param error Value thrown by launchAgentSetup. * @returns Whether the project cannot contain agent edits from this launch. */ export declare const isAgentNotStartedError: (error: unknown) => error is Error; /** * Launch installed Codex interactively with its existing approval settings. * @param projectRoot Application directory, used as the agent's working directory. * @param plan Task returned by createAgentSetupPlan. * @param signal Optional cancellation, terminating the direct child process. * @returns The agent's exit code, or 130 when interrupted by a signal. * @throws {Error} When the agent cannot start or the caller cancels. Errors * raised before Codex runs satisfy isAgentNotStartedError. */ export declare const launchAgentSetup: (projectRoot: string, plan: AgentSetupPlan, signal?: AbortSignal) => Promise;