GT2/Ejectable/node_modules/@expo/configure-splash-screen/build/utils/string-utils.d.ts

16 lines
694 B
TypeScript

/**
* @returns [`true`, modifiedContent: string] if replacement is successful, [`false`, originalContent] otherwise.
*/
export declare function replace(content: string, { replaceContent, replacePattern }: {
replaceContent: string;
replacePattern: string | RegExp;
}): [boolean, string];
/**
* Inserts content just before first occurrence of provided pattern.
* @returns [`true`, modifiedContent: string] if insertion is successful, [`false`, originalContent] otherwise.
*/
export declare function insert(content: string, { insertContent, insertPattern }: {
insertContent: string;
insertPattern: RegExp | string;
}, insertBeforeLastOccurrence?: boolean): [boolean, string];