import { RouteParamsWithQueryOverload , Router } from 'ziggy-js' ; export default function useRoute ( ) { function routeWrapper ( name ? , params ? , absolute ? ) ; function routeWrapper ( name , params ? , absolute ? ) ; function routeWrapper ( name ? , params ? , absolute ? ) { return ( window as any ) . route ( name , params , absolute ) ; } return routeWrapper ; }