export type GeneratedFormat = "markdown" | "toml"; export interface GeneratedFilePlan { targetRoot: string; targetSegments: readonly string[]; sourcePath: string; content: string; format: GeneratedFormat; } export interface PreparedGeneratedFile { target: string; content: string; changed: boolean; } export declare function prepareGeneratedFile(options: GeneratedFilePlan): PreparedGeneratedFile; export declare function writePreparedGeneratedFile(prepared: PreparedGeneratedFile): string; /** * Remove the OMS:GENERATED marker exactly as the generator inserted it. * Returns the source path, claimed hash, and remaining body (for digest verify). */ export declare function parseGeneratedMarker(content: string, format: GeneratedFormat): { sourcePath: string; hash: string; content: string; } | undefined; /** Same SHA-256 used when writing generated markers. */ export declare function contentHash(content: string): string; /** True when marker parses and claimed sha256 matches the remaining body. */ export declare function isIntactGeneratedContent(content: string, format: GeneratedFormat): boolean;