export interface ParseOptions { sep?: string; eq?: string; decodeURIComponent?: (str: string) => string; filter?: (key: string, val: any) => any; start?: number | string; } /** * 将 URL 查询字符串 str 解析为键值对的集合 * * parse('http://demo.com?a=1&a=2&a=3&d=&f=') * * // { a: ['1', '2', '3'], d: '', f: '' } * * @param str 要解析的 URL 查询字符串 * @param options 可选 * @returns object对象 */ export declare function parse(str: string, options?: ParseOptions): Record;