module import { readable } from 'svelte/store' ; import { HISTORY_MODE as ROUTER_MODE , HASH_TYPE } from './history' ; import Router , { RouterConfig } from './router' ; import { urlMatch , urlPrefix , trimPrefix } from './utils' ; export { ROUTER_MODE , HASH_TYPE , urlMatch , urlPrefix , trimPrefix , } ; /**
 * Router store.
 * Svelte readable store of type [[Router]].
 */ export let router ; param { RouterConfig } opts return { object } const createRouter = ( opts ) : object => { router = readable ( new Router ( opts ) ) ; return router ; } ; /**
 * Create a router in read-only store.
 */ export default createRouter ;