/** * Split a text by multiple separators, and return a result of the text and separators. * For example, `splitText("Hello world [then] !", ["", "[then]"])` * will return `["Hello ", new Separator(""), " world ", new Separator("[then]"), " !"]` */ export declare function splitText(text: string, separators: readonly S[]): (string | { [Sep in S]: Separator; }[S])[]; export declare class Separator { readonly separator: S; private constructor(); } //# sourceMappingURL=splitText.d.ts.map