/** * Security sanitization utilities * * Functions for sanitizing user-controlled or externally-sourced content * before interpolation into Markdown output or client-facing error messages. */ /** * Escape Markdown special characters in text to prevent Markdown injection. * Use this for titles, snippets, and other text interpolated into Markdown. */ export declare function sanitizeMarkdownText(text: string): string; /** * Sanitize a URL for use in Markdown link syntax. * - Only allows https: protocol * - Percent-encodes parentheses to prevent breaking Markdown links * - Returns '#' for invalid or non-https URLs */ export declare function sanitizeMarkdownUrl(url: string): string; /** * Extract and sanitize an error message from an unknown thrown value. */ export declare function getSafeErrorMessage(error: unknown): string; /** * Sanitize error messages before returning to clients. * - Replaces backend hostnames with frontend equivalents * - Removes absolute file paths * - Removes stack traces */ export declare function sanitizeErrorMessage(message: string): string; //# sourceMappingURL=sanitize.d.ts.map