/** * URL 格式化工具函数 */ /** * 格式化 URL 显示 * @param url URL 地址 * @param options 格式化选项 * @returns 格式化后的 URL * * @example * formatUrlDisplay('https://www.example.com/path', { showProtocol: false }) * // 'www.example.com/path' */ export declare function formatUrlDisplay(url: string, options: { showProtocol?: boolean; showWww?: boolean; showPathname?: boolean; displayFormat?: 'full' | 'domain' | 'custom'; customFormat?: (url: string) => string; }): string; /** * 隐藏 URL 协议 * @param url URL 地址 * @returns 隐藏协议后的 URL * * @example * hideUrlProtocol('https://example.com') // 'example.com' */ export declare function hideUrlProtocol(url: string): string; /** * 隐藏 www 前缀 * @param url URL 地址 * @returns 隐藏 www 后的 URL * * @example * hideWwwPrefix('https://www.example.com') // 'https://example.com' */ export declare function hideWwwPrefix(url: string): string;