import { type CliError } from "../../../_utils/cli-error.js"; import { provenanceContext } from "./provenance-context.js"; declare const writeCodexSession: (payload: { readonly destinationSessionId: string; readonly messages: readonly { role: "user" | "assistant"; content: string; }[]; readonly provenance: Parameters[0]; }, workspace: string) => { probe: () => Promise>; stage: () => Promise<{ readonly ok: false; readonly error: CliError; } | { readonly ok: true; readonly value: { recoveryCommand: string; path: string; }; }>; parse: (staged: { path: string; }) => Promise<{ readonly ok: false; readonly error: CliError; } | { readonly ok: true; readonly value: { role: "user" | "assistant"; content: string; }[]; }>; install: (staged: { path: string; recoveryCommand: string; }) => Promise>; launch: () => Promise>; cleanup: (staged: { path: string; }) => Promise; }; export { writeCodexSession };