/** * omx uninstall - Remove oh-my-codex configuration and installed artifacts */ import { type FileHandle } from "fs/promises"; import { type NativeHookClaimJournalDurability } from "./native-hook-claim-journal.js"; import { type SetupScope } from "./setup.js"; import { type RegularFileSyncOutcome } from "../utils/file-durability.js"; /** @internal Deterministic file-operation seam for uninstall transaction tests. */ export type UninstallTransactionFailureStage = "before-hooks-commit" | "before-shim-removal" | "before-config-commit" | "before-temp-write" | "before-rename" | "after-final-rename-validation" | "after-rename" | "before-remove" | "after-final-remove-validation" | "after-remove" | "before-rollback" | "before-rollback-rename" | "after-final-restore-validation" | "before-rollback-remove" | "before-staged-cleanup" | "after-staged-cleanup" | "after-config-commit"; /** @internal Distinguishes each direct regular-file durability boundary. */ export type UninstallRegularFileSyncSite = "replacement-temporary" | "installed-destination" | "staged-deletion"; /** @internal Test seam for deterministic claim-journal durability coverage. */ export declare function setUninstallClaimJournalDurabilityForTest(durability: NativeHookClaimJournalDurability | undefined): () => void; export interface UninstallOptions { codexFeaturesProbe?: () => string | null; codexVersionProbe?: () => string | null; dryRun?: boolean; keepConfig?: boolean; verbose?: boolean; purge?: boolean; scope?: SetupScope; /** @internal */ transactionFailureInjector?: (stage: UninstallTransactionFailureStage) => void | Promise; /** @internal */ transactionPlatform?: NodeJS.Platform; /** @internal */ transactionTemporaryPath?: (path: string, purpose: "write" | "delete") => string; /** @internal */ regularFileSyncForTest?: (site: UninstallRegularFileSyncSite, handle: Pick, platform: NodeJS.Platform) => Promise; } export declare function uninstall(options?: UninstallOptions): Promise; //# sourceMappingURL=uninstall.d.ts.map