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

16 lines
694 B
TypeScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
/**
* @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];