/** * getLocationSearchParam * @Author: liwb (lwbhtml@163.com) * @Date: 2025-04-09 10:32 * @LastEditTime: 2025-04-09 10:32 * @Description: getLocationSearchParam */ /** * 从URL查询字符串中获取指定参数的值 * @description 专门处理location.search部分的参数,格式为?key=value&key2=value2 * @param {string} name - 要获取的参数名称 * @returns {string | null} - 返回解码后的参数值,若参数不存在则返回null * @throws {TypeError} - 当name参数不是字符串时抛出 * @example * // 假设当前URL为: http://www.example.com/?id=123&name=test * getLocationSearchParam('id'); // => "123" * getLocationSearchParam('name'); // => "test" * getLocationSearchParam('none'); // => null */ export declare function getLocationSearchParam(name: string): string | null;