UNPKG

@stoplight/elements-core

Version:

[![docs](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat-square)](https://meta.stoplight.io/docs/elements) [![license](https://img.shields.io/npm/l/@stoplight/elements?style=flat-square)](./LICENSE)

12 lines (11 loc) • 327 B
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 {};