export interface GluegunPatching { /** * Checks if a string or pattern exists in a file. */ exists(filename: string, findPattern: string | RegExp): Promise; /** * Updates a file. */ update(filename: string, callback: (contents: any) => any): Promise; /** * Appends to the end of a file. */ append(filename: string, contents: string): Promise; /** * Prepends to the start of a files. */ prepend(filename: string, contents: string): Promise; /** * Replaces part of a file. */ replace(filename: string, searchFor: string, replaceWith: string): Promise; /** * Makes a patch inside file. */ patch(filename: string, ...options: GluegunPatchingPatchOptions[]): Promise; } export interface GluegunPatchingPatchOptions { insert?: string; before?: string | RegExp; after?: string | RegExp; replace?: string | RegExp; delete?: string | RegExp; force?: boolean; }