import { Router, RouteRecordRaw, RouteRecordSingleView, RouteRecordSingleViewWithChildren, RouteLocationNormalized } from 'vue-router'; import { AuthStore } from '../stores/AuthStore'; import { RouteProps } from '../components/composable/route/types'; import { Component } from '../../node_modules/vue'; export declare function getSimpleRouteProps(route: RouteLocationNormalized): RouteProps; /** * Return route props used for filtering */ export declare function getRouteProps(route: RouteLocationNormalized): RouteProps; /** * Utility type to use with `overwriteRoutes`. */ interface OverwriteRoute { /** Name of the route to overwrite */ name: string; /** Component to overwrite with */ component: Component; } /** * Utility function to overwrite the routes defined in the SDK * Overwrite the component of given routes based on their name, without * having to specify the path. * This allows for the SDK to completely manage its routes, and be able to * change their paths, without having to update the routes in the app using the * SDK. */ export declare function overwriteRoutes(routes: Array, overwrite: Array): Array; type LayoutLoader = () => Promise<{ default: Component; }>; /** * Utility function seting up the router with a custom beforeEach * @param router The router to setup * @param getMyOrgaActive Callback to retrieve current organisation for user * @param defaultLayout Loader for the default layout of pages */ export declare function setupRouter(router: Router, getMyOrgaActive: (authStore: AuthStore) => Promise, defaultLayout: LayoutLoader): void; export {};