import * as queryString from 'query-string'; import { ReactNode } from 'react'; import { Location } from 'history'; export declare const useRouter: ({ base, nomatch, options, }?: { base?: string | undefined; nomatch?: string | undefined; options?: { path: string; children: ReactNode; exact?: boolean | undefined; }[] | undefined; }) => { current: { path: string; children: ReactNode; exact?: boolean | undefined; }; change: (path: string) => void; forward: () => void; backward: () => void; compare: (path: string, exact?: boolean) => boolean; params: queryString.ParsedQuery; location: Location; };