/**
 * Generates a string from a given regular expression or string representation of a regex.
 *
 * @param {RegExp | string} regex - The regular expression or string representation of a regex.
 * @returns {string} - The generated string based on the regex pattern.
 * @throws {Error} - Throws an error if there are unmatched brackets or groups.
 */
export declare function generateStringFromRegex(regex: RegExp | string): string;
//# sourceMappingURL=regex.d.ts.map