import type { CreateRouterConfig, InferredRouterConfig, RoutesConfig } from "../types"; /** * Creates a router configuration object by combining route definitions with their handlers. * * @remarks * This function processes the static route definitions (paths, search params) and the * runtime route handlers (components, loaders) to create a unified router configuration. * It recursively handles nested routes. * * @typeParam C - The routes configuration type. * @typeParam RouterContext - The type of the router context. * @typeParam ParentParams - The type of the parent route parameters. * @param config - The static routes configuration. * @param routerConfig - The runtime router configuration (handlers). * @param keypath - Internal use only. The current key path for nested routes. * @returns The fully inferred and frozen router configuration. * * @throws {@link Error} * Thrown if the configuration is invalid or missing. */ export declare function createRouter = []>(config: C, routerConfig: CreateRouterConfig, keypath?: string): InferredRouterConfig;