import { StringMap } from '@react-force/utils' ; /**
 * Holds the state of the router.
 */ export interface RouterState { routeName : string ; params : StringMap ; queryParams : { [ key ] : any ; } ; options : { [ key ] : any ; } ; } param routeName param options export const createRouterState = ( routeName , options = { } ) => { const defaultOptions = { params : { } , queryParams : { } , replaceHistory : false } ; const combinedOptions = Object . assign ( defaultOptions , options ) ; const { params , queryParams , ... rest } = combinedOptions ; return { routeName , params , queryParams , options : rest } ; } ;