/** * HTML sanitization utilities for SSR. * * Provides safe HTML rendering to prevent XSS attacks. */ export interface SanitizeOptions { /** Allow specific HTML tags */ allowedTags?: string[]; /** Allow specific HTML attributes */ allowedAttributes?: Record; /** Allow data URIs (dangerous - use with caution) */ allowDataUri?: boolean; /** Custom DOMPurify config */ domPurifyConfig?: any; } /** * Default safe configuration for blog posts/user content. */ export declare const defaultSanitizeOptions: SanitizeOptions; /** * Sanitize HTML content to prevent XSS. * * @param html - Raw HTML string (potentially unsafe) * @param options - Sanitization options * @returns Safe HTML string * * @example * ```typescript * const userContent = '

Hello

'; * const safeContent = sanitizeHTML(userContent); * // Result: '

Hello

' (script removed) * ``` */ export declare function sanitizeHTML(html: string, options?: SanitizeOptions): string; /** * Create a sanitizer function with preset options. * Useful for consistent sanitization across your app. */ export declare function createSanitizer(options?: SanitizeOptions): (html: string) => string; //# sourceMappingURL=html-sanitization.d.ts.map