import { type ObjectType } from 'abandonjs'; /** * @title getUrlParams * @description 获取参数值 * @param {string} url * @returns {Record} */ export declare function getUrlParams(url: string): Record; /** * @title getUrlParamIterator * @description 获取url参数 Iterator * @param {string} url * @returns {Iterable<[string, string]>} */ export declare function getUrlParamIterator(url: string): Iterable<[string, string]>; /** * @title toUrlParams * @description 将对象参数转 url 参数格式 * @param {ObjectType} value * @returns {string} */ export declare function toUrlParams(value: ObjectType): string; /** * @title addUrlParams * @description url 添加 对象参数(转 url 参数格式) * @param {string} url * @param {ObjectType} value * @returns {string} */ export declare function addUrlParams(url: string, value: ObjectType): string; /** * @description 返回值为 false: 拦截跳转, 返回值 为string: 表示要跳转的链接 */ type ListenLinkCallback = (url: string) => string | false; /** * @title listenLinkEvent * @description 拦截 链接跳转事件 * @param {ListenLinkCallback} callback * @param {('a'|'window.open')[]} monitor 不支持`window.location` */ export declare function listenLinkEvent(callback?: ListenLinkCallback, monitor?: ('a' | 'window.open')[]): void; export {}; //# sourceMappingURL=url.d.ts.map