/** * A tuple representing a pattern and replacement string, where the pattern is a string or regex. */ export type ReplaceTuple = [string | RegExp, string]; /** * An array of replace tuples. */ export type ReplaceTuples = Array; /** * The sentinel value used to split the pattern and replacement in the replace option. */ export declare const replaceSentinel = ":=>"; /** * Parse the replace option value and return an array of replace tuples. * The replace option value is a list of tuples of the form [pattern, replacement]. * Like `String.prototype.replace`, the pattern is a string or regex, and the replacement is a string. * If you want to use a regex pattern, you must use the format `/pattern/`. * * The pattern and replacement are split by the `replaceSentinel` value. */ declare function parseReplaceOption(value: string, acc: ReplaceTuples): ReplaceTuples; export { parseReplaceOption, };