/** * Escapes a string so that it can safely be passed to the RegExp constructor. * @param text The string to be escaped * @return The escaped string */ export declare function escapeRegExp(text: string): string; /** * Sanitizes a string to protect against tag injection. * @param xml The string to be escaped * @param forAttribute Whether to also escape ', ", and > in addition to < and & * @return The escaped string */ export declare function escapeXml(xml: string, forAttribute?: boolean): string;