/*! Copyright © 2024 Open Text Corporation, All Rights Reserved. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ export default function sanitizeHTML(text: string): string; export declare function sanitizeSVG(text: string): string; /** * Validates that an element ID contains only safe characters (alphanumerics, hyphens, underscores). * Returns the original ID if valid, or an empty string if it contains unsafe characters. * This prevents HTML attribute injection via tampered config IDs. */ export declare function safeId(id: string): string; /** * HTML-encodes a value for safe insertion into an HTML attribute. * Encodes &, ", ', <, > to prevent attribute injection. */ export declare function escapeAttr(value: unknown): string;