import type { RouterInstance, RouteConfig } from './types'; /** * Creates a router instance from a route configuration, flattening the route tree * into matchable patterns with pre-computed navigator paths. * * The root config is a navigator (with `navigator` and `children`). It contributes * no path segment — child paths start from `/`. * * @param config - The root route config defining the navigator, children, and components. * @returns A router instance containing the config and flattened route patterns. * * @example * ```ts * const router = createRouter({ * navigator: 'tabs', * children: { * feed: { component: FeedScreen }, * profile: { component: ProfileScreen }, * }, * }); * ``` */ export declare function createRouter(config: TConfig): RouterInstance; //# sourceMappingURL=createRouter.d.ts.map