import type { GeneralParamDict, GeneralSegmentDict } from './route-match'; export declare function isQueryIdsMatched(a: string | symbol | true, b: string | symbol | true): boolean; export declare function buildPath(segmentDict: GeneralSegmentDict, paramDict?: GeneralParamDict): string; export declare function buildRef(pathMap: Map, queryMap: Map | undefined): string; export interface ParseRefResult { pathname: string; search: string; hash: string; } export declare function parseRef(ref: string): ParseRefResult; export declare function parseSearch(search: string): Map; export declare function testPathPrefix(path: string, prefix: string): boolean; export type ToleratedReturnType = TOriginalReturnType extends Promise ? Promise | undefined : TOriginalReturnType | undefined; export declare function tolerate any>(fn: T, ...args: Parameters): ToleratedReturnType>;