import { readable } from "svelte/store"; type RouteConfig = { path: string; default: boolean; } type ActiveRoute = { params: { [key: string]: string }; preserveScroll: boolean; route: RouteConfig; uri: string; } type RouterBase = { path: string; uri: string; } export type RouterContext = { activeRoute: ReturnType>; base: ReturnType>; routerBase: ReturnType>; registerRoute: (route: Omit) => {}; unregisterRouter: () => {} }