import { Children, VNode } from "hyperapp"; /** Link */ interface LinkProps { to: string; location?: Location; [attributeName: string]: any } export function Link(props: LinkProps, children: Children): VNode; /** Route */ interface Match

{ url: string; path: string; isExact: boolean; params: P; } interface RenderProps

{ location: Location; match: Match

; } interface RouteProps

{ parent?: boolean; path?: string; location?: Location; render: (props: RenderProps

) => VNode>; } export function Route

( props: RouteProps

): VNode> | null; /**Switch */ export function Switch

( props: object, children: Array>> ): VNode; /** Redirect */ interface RedirectProps extends LinkProps { from?: string } export function Redirect(props: RedirectProps): VNode; /** location */ interface LocationState { pathname: string; previous: string; } interface LocationActions { go: (pathname: string) => void; } interface RouterLocation { state: LocationState; actions: LocationActions; subscribe: (actions: LocationActions) => Function; } export declare const location: RouterLocation;