import type { FileMerge } from './types.ts'; /** * Apply a generated file to the file a project already has. * @param existing Current contents of the project's file. * @param generated Contents generated for a project without the file. * @param merge How to combine them. Without one, the generated file * replaces the existing one. * @returns The contents to write. Equal to `existing` when nothing changes. * @throws {Error} When an `insert` cannot find where its snippet belongs. * @example * mergeFile('\n\n', '', { * type: 'insert', * marker: '#c15t-preferences', * inserts: [{ before: '', content: 'Privacy settings' }], * }); */ export declare const mergeFile: (existing: string, generated: string, merge: FileMerge | undefined) => string;