import { FunctionComponent } from 'react'; import { History, Location } from 'history-with-query'; import { match } from 'react-router-dom'; export interface IComponent extends FunctionComponent { getInitialProps?: Function; preload?: () => Promise; } export interface IRoute { path?: string; exact?: boolean; redirect?: string; component?: IComponent; routes?: IRoute[]; key?: any; strict?: boolean; sensitive?: boolean; wrappers?: any[]; [k: string]: any; } export interface IRouteComponentProps { children: JSX.Element; location: Location & { query: Query; }; route: IRoute; history: History; match: match; } export { default as renderClient } from './renderClient/renderClient'; export { default as renderRoutes } from './renderRoutes/renderRoutes';