@stoplight/elements-core
Version:
[](https://meta.stoplight.io/docs/elements) [](./LICENSE)
12 lines (11 loc) • 327 B
TypeScript
import * as React from 'react';
import { RouterType } from '../types';
interface RouterProps {
basename?: string;
location?: string;
}
export declare const useRouter: (router: RouterType, basePath: string, staticRouterPath?: string) => {
Router: React.ComponentType<{}>;
routerProps: RouterProps;
};
export {};