import { type ClassValue } from 'clsx'; export declare function cn(...inputs: ClassValue[]): string; export declare function noop(): any; export declare function atobID(id: string): string | undefined; export declare const spaceToHyphen: (str: string) => string; /** * 高亮搜索关键词 * @param text 原始文本 * @param searchText 搜索关键词 * @returns 高亮后的 HTML 字符串 */ export declare const highlightSearchWord: (text: string, searchText: string) => string; /** * 获取本地化路径 * * 根据语言标识为路径添加对应的 locale 前缀。 * - 'us' 为默认语言,不添加前缀 * - 其他语言会添加 `/{locale}` 前缀 * - 完整 URL(http/https)不做处理 * - 自动处理路径格式(补充前导斜杠、移除尾部斜杠) * * @param path - 原始路径 * @param locale - 语言标识(如 'us', 'uk', 'de', 'jp' 等) * @returns 本地化后的路径 * * @example * // 基本用法 - 默认语言 'us' 不添加前缀 * getLocalizedPath('/products', 'us') // => '/products' * getLocalizedPath('/about', 'us') // => '/about' * * @example * // 其他语言添加前缀 * getLocalizedPath('/products', 'uk') // => '/uk/products' * getLocalizedPath('/about/team', 'de') // => '/de/about/team' * getLocalizedPath('/contact', 'jp') // => '/jp/contact' * * @example * // 根路径处理 * getLocalizedPath('/', 'us') // => '/' * getLocalizedPath('/', 'uk') // => '/uk' * * @example * // 自动格式化路径 * getLocalizedPath('products', 'uk') // => '/uk/products' (补充前导斜杠) * getLocalizedPath('/products/', 'uk') // => '/uk/products' (移除尾部斜杠) * getLocalizedPath('//products//detail/', 'uk') // => '/uk/products/detail' (移除多余斜杠) * * @example * // 已包含 locale 的路径不重复添加 * getLocalizedPath('/uk/products', 'uk') // => '/uk/products' * * @example * // 完整 URL 不处理 * getLocalizedPath('https://example.com/page', 'uk') // => 'https://example.com/page' * getLocalizedPath('http://example.com', 'de') // => 'http://example.com' * * @example * // 空路径处理 * getLocalizedPath('', 'uk') // => '' */ export declare const getLocalizedPath: (path: string, locale: string) => string;