import { dirname } from "node:path"; import type { ConversionUnit } from "../../workflows/types.ts"; export declare class DirectApplicationError extends Error { constructor(message: string); } export interface WholeFileApplication { unit: ConversionUnit; code: string; } export interface InlineFileApplication { unit: ConversionUnit; code: string; } /** * Exclusively create a complete whole-file conversion batch. If any create * loses a race or fails, remove only the files created by this call so a * multi-file project is never knowingly left half-applied. */ export declare function applyWholeFileBatch(root: string, applications: readonly WholeFileApplication[], options?: { overwrite?: ReadonlySet; }): Promise; /** Apply one already-generated unit and return the project-relative path changed. */ export declare function applyUnit(root: string, unit: ConversionUnit, code: string): Promise; /** Apply every accepted marker in one existing file with one stale check and write. */ export declare function applyInlineFileBatch(applications: readonly InlineFileApplication[]): Promise; export declare function pathExists(target: string): Promise; export { dirname }; //# sourceMappingURL=application.d.ts.map