import type { Action, History } from 'history-with-query'; export interface PathV6 { /** * A URL pathname, beginning with a /. */ pathname: string; /** * A URL search string, beginning with a ?. */ search: string; /** * A URL fragment identifier, beginning with a #. */ hash: string; } export interface LocationListenerV5V6 { (location: History['location'], action: Action): void; (arg0: { location: History['location']; action: Action; }, arg1?: undefined): void; } export declare type ToV6 = string | Partial; export interface NavigateOptionsV6 { replace?: boolean; state?: any; preventScrollReset?: boolean; relative?: 'route' | 'path'; } /** * 获取当前 Router 内部使用的 history,兼容 v5 v6。注意 basename 属性仅仅在 react-router-dom v6 下才有。 */ export declare const useRouterHistory: () => (History & { basename?: string; }) | undefined;