export declare const ALLOWED_HTML_ATTRIBUTES: string[]; export declare const ALLOWED_HTML_TAGS: string[]; /** * Constants and utility functions that help in HTML, CSS and DOM manipulation */ export declare function sanitizeHtml(dirtyHtml: string): string; /** * 检查第一个字符串是否以第二个字符串为前缀(不区分大小写) * @param first 要检查的字符串 * @param second 前缀字符串 * @returns 如果first以second开头则返回true,否则返回false */ export declare const prefixMatch: (first: string, second: string) => boolean; /** * 计算多个字符串的最长公共前缀 * @param strings 要计算公共前缀的字符串数组 * @returns 所有字符串的最长公共前缀,如果没有公共前缀则返回空字符串 * @example * longestCommonPrefix("hello", "help", "helicopter") // 返回 "he" * longestCommonPrefix("apple", "banana", "cherry") // 返回 "" */ export declare function longestCommonPrefix(...strings: string[]): string;