import { ChildRouteMap } from '../routeFn'; /** * Returns an object with true or false for all the given routes depending * on wether or not they are active * * @example * ```tsx * const router = Router(route => ({ * login: route('login', { component: Login }), * home: route('home', { component: Home }), * })); * * const { home, about } = useRoutesActive({ * home: router.home, * about: router.about, * }); * ``` * * `/home: { home: true, about: false }` * * @typeParam CRM - The Map of RouteNodes * @param routes - The RouteNodes to use. * * @returns An Object with the given `routes` as keys and a boolean * for each indicating wether or not the route is active */ export declare const useRoutesActive: >(routes: CRM) => { [K in keyof CRM]: boolean; };