/** * 解析应用内路径,自动补全 CLIENT_BASE_PATH 前缀,返回完整 URL * 适用于生成分享链接、二维码等需要完整 URL 的场景 * * - 相对路径:补全前缀 + 当前域名 * - 当前域名的完整 URL:修正路径部分,补全前缀 * - 其他域名的 URL:原样返回,不做处理 * * @param path - 应用内相对路径或完整 URL * @returns 完整的 URL 字符串 * * @example * // 假设 CLIENT_BASE_PATH = '/app/abc',当前域名为 https://example.com * * resolveAppUrl('/detail/123') * // => 'https://example.com/app/abc/detail/123' * * resolveAppUrl('https://example.com/detail/123') * // => 'https://example.com/app/abc/detail/123' * * resolveAppUrl('https://example.com/app/abc/detail/123') * // => 'https://example.com/app/abc/detail/123' (已有前缀,不重复添加) * * resolveAppUrl('https://other-site.com/page') * // => 'https://other-site.com/page' (非当前域名,原样返回) */ export declare function resolveAppUrl(path: string): string;