import { RouterOptions, RouteRecordRaw } from 'vue-router'; import { RouteRecordName } from './name'; import { RoutiderRouteRecord, ExtractChildren } from '../route/route'; import { UnionToIntersection } from '../type'; import { Path, ExtractParams } from './path'; import { ExtractQueries } from './queries'; export declare type RoutiderRoutes = Record; export interface RoutiderOptions extends Omit { routes: RoutiderRoutes; } export declare type RouteNames = Routes extends Record ? K : never; declare type AddParentParams = { [K in keyof Children]: RoutiderRouteRecord | ExtractParams, ExtractQueries, ExtractChildren>; }; declare type ExtractChildrenWithParentParams = ExtractChildren extends RoutiderRoutes ? AddParentParams> : never; export declare type FlatRoutes = T & UnionToIntersection<{ [K in keyof T]: FlatRoutes>; }[keyof T]>; export declare const warnIfNonTopLevelAbsolutePath: (path: Path) => void; export declare const routiderRoutesToRouteRecords: (routes: RoutiderRoutes, isTopLevel?: boolean) => RouteRecordRaw[]; export declare const routiderOptionsToRouterOptions: (options: RoutiderOptions) => RouterOptions; export {};