/**
 * Splits the consent text into an array of strings and placeholders.
 * @param textToSplit - The consent text containing placeholders in the format {{0}}, {{1}}, etc.
 * @returns An array of strings and placeholders.
 */
export function splitConsentText(textToSplit) {
    const regex = /(\{\{\d+\}\})/g;
    return textToSplit !== "" ? textToSplit.split(regex) : undefined;
}
//# sourceMappingURL=index.js.map