1export type MergeResults = {
2    contents: string;
3    didClear: boolean;
4    didMerge: boolean;
5};
6/**
7 * Merge the contents of two files together and add a generated header.
8 *
9 * @param src contents of the original file
10 * @param newSrc new contents to merge into the original file
11 * @param identifier used to update and remove merges
12 * @param anchor regex to where the merge should begin
13 * @param offset line offset to start merging at (<1 for behind the anchor)
14 * @param comment comment style `//` or `#`
15 */
16export declare function mergeContents({ src, newSrc, tag, anchor, offset, comment, }: {
17    src: string;
18    newSrc: string;
19    tag: string;
20    anchor: string | RegExp;
21    offset: number;
22    comment: string;
23}): MergeResults;
24export declare function removeContents({ src, tag }: {
25    src: string;
26    tag: string;
27}): MergeResults;
28/**
29 * Removes the generated section from a file, returns null when nothing can be removed.
30 * This sways heavily towards not removing lines unless it's certain that modifications were not made manually.
31 *
32 * @param src
33 */
34export declare function removeGeneratedContents(src: string, tag: string): string | null;
35export declare function createGeneratedHeaderComment(contents: string, tag: string, comment: string): string;
36export declare function createHash(src: string): string;
37