import { type Result } from '@opensip-cli/core'; import { type ProcessRunner, type VerifyRepairInput } from './verify-runner.js'; import type { RepairBuildInput, RepairError } from './types.js'; import type { RepairApplyResult, RepairApplyVerifyResult, RepairVerificationResult } from '@opensip-cli/contracts'; export interface ApplyRepairInput extends RepairBuildInput { readonly force: boolean; } export type RepairVerifier = (input: VerifyRepairInput) => Promise; export interface ApplyAndVerifyRepairInput extends ApplyRepairInput { readonly configPath?: string; readonly verifier?: RepairVerifier; readonly verificationRunner?: ProcessRunner; readonly cliEntrypoint?: string; readonly timeoutMs?: number; } /** * M8: multi-file apply must not leave a partial mutation on mid-write failure. * Capture before-content, write each file, and on any write failure restore * every file already written in this batch. * * Exported for unit tests of the rollback contract (fails-on-main shape). */ export declare function applyAllOrRollback(writes: readonly { absolutePath: string; before: string; after: string; }[]): Result; export declare function applyRepair(input: ApplyRepairInput): Result; export declare function applyAndVerifyRepair(input: ApplyAndVerifyRepairInput): Promise>; //# sourceMappingURL=apply.d.ts.map