import { default as React } from 'react'; import { RouteMatch, RouteObject } from 'react-router-dom'; interface IProps { children?: React.ReactNode; location?: Partial | string; } /** * renderMatches * @see https://github.com/remix-run/react-router/blob/715dd233bb57a65c563edd52c4ccd63f37745ddb/packages/react-router/lib/hooks.tsx#L377 * @param matches * @param parentMatches */ export declare function _renderMatches(matches: RouteMatch[] | null, parentMatches?: RouteMatch[]): React.ReactElement | null; export declare function useHashRoutes(routes: RouteObject[], locationArg?: Partial | string): React.ReactElement | null; /** * Hash 用路由器 * @see https://github.com/remix-run/react-router/blob/v6.3.0//packages/react-router/lib/components.tsx#L252 * @param path 路由路徑 */ declare function HashRoutes({ children, location, }: IProps): React.ReactElement>; export default HashRoutes;