import { RouterType } from '../router'; import { RouteOptions } from '../types'; /** * Returns the {@link RouteOptions} of the given {@link OptionsRouter} * with all values being non-null. * * @example * ```tsx * const router = OptionsRouter({ appBar: true }, route => ({ * login: route('login', { * component: Login, * options: { appBar: false } * }), * home: route('home', { * component: Home, * }), * })); * * const { appBar } = useRouteOptions(router); * ``` * * `/login - appBar: false` * * `/home - appBar: true` * * * @typeParam RO The RouteOptions of the `router` * @param router The OptionsRouter to use. * * @returns Non-null RouteOptions for the currently active Route */ export declare const useRouteOptions: (router: RouterType) => RO;