import type { InferredRouterConfig } from "../types"; /** * Represents a matched route object containing parameters and search data. */ export type RouteObject = { /** Extracted path parameters. */ params: Array | null; /** Extracted search parameters. */ search: Record | null; /** The portion of the path matched by this route. */ matchedPath: string; /** The unique key of the route. */ key: string; }; /** * Matches a URL pathname against the router configuration to find active routes. * * @remarks * This is the main entry point for route matching. It splits the pathname from the query string * and initiates the recursive matching process. * * @typeParam RouterContext - The router context type. * @param routerConfig - The router configuration. * @param pathname - The full URL pathname. * @param matchedPath - The initial matched path (default: ""). * @param searchParams - The URL search parameters (default: empty). * @returns An array of matched `RouteObject`s representing the active route chain. */ export declare function getRoutes(routerConfig: InferredRouterConfig, pathname: string, matchedPath?: string, searchParams?: URLSearchParams): Array;