import type { RouteDefinition, SerializedMatch } from './types.js'; /** * Creates a RouteDefinition from a serialized matcher and options. * * Note: Lupa includes convenience handling for glob-like URIs starting with `*\/` or `**`. * In standard URLPattern, a prefix like `*\/foo` expects at least one character before `/foo`. * To mimic traditional glob matching (e.g. matching any domain), Lupa strips the leading `*` * from `*\/foo` and evaluates it as the pathname `/foo`, which correctly matches requests * regardless of their origin. */ export declare function createRouteDefinition(id: number, matcher: SerializedMatch, options: { lifetime?: number; }): RouteDefinition; /** * Extracts route parameters from a URLPattern match. */ export declare function extractParams(urlMatch?: any): Record; /** * Extracts query parameters from a URL. */ export declare function extractQueryParameters(url: string): Record;