/** * Custom error class for when the search text is not unique in the content */ export declare class SearchTextNotUnique extends Error { constructor(message?: string); } /** * Simple text search and replace - this version correctly handles $ characters * in string replacements by using a special replacement function. * * @param texts - Array containing [searchText, replaceText, originalText] * @returns The modified text or undefined if the search text doesn't exist */ export declare function searchAndReplace(texts: string[]): string | undefined; /** * Preprocessing configurations to be tried */ export declare const allPreprocs: [boolean, boolean, boolean][]; /** * Tries different search/replace strategies with different preprocessing options * * @param texts - Array containing [searchText, replaceText, originalText] * @param strategies - Array of tuples containing strategy functions and their preprocessing options * @returns The modified text or undefined if all strategies fail */ export declare function flexibleSearchAndReplace(texts: string[], strategies: [(texts: string[]) => string | undefined, [boolean, boolean, boolean][]][]): string | undefined;