import type { LiveNode } from '@use-gpu/live'; export type Route = { element?: LiveNode; routes?: Record; exact?: boolean; }; export type RouterState = { path: string; query: Record; }; export type RouterLink = { href: string; }; export type QueryParams = Record; export type RouterAPI = { route: RouterState; back: () => void; forward: () => void; go: (n: number) => void; push: (path: string, query?: QueryParams | string) => void; replace: (path: string, query?: QueryParams | string) => void; linkTo: (path: string, query?: QueryParams | string) => RouterLink; };