/** * Configuration for router path matching. * * @stability unstable * @category models * @since 4.0.0 */ export interface RouterConfig { readonly ignoreTrailingSlash: boolean; readonly ignoreDuplicateSlashes: boolean; readonly caseSensitive: boolean; readonly maxParamLength: number; } /** * Route path accepted by the router. * * @stability unstable * @category models * @since 4.0.0 */ export type PathInput = `/${string}` | "*"; /** * Mutable router used to register and resolve route handlers. * * @stability unstable * @category models * @since 4.0.0 */ export interface Router { readonly on: (method: string | Iterable, path: PathInput, handler: A) => void; readonly all: (path: PathInput, handler: A) => void; readonly find: (method: string, url: string) => FindResult | undefined; readonly has: (method: string, url: string) => boolean; } /** * Result of a successful route lookup. * * @stability unstable * @category models * @since 4.0.0 */ export interface FindResult { readonly handler: A; readonly params: Record; readonly searchParams: Record>; } /** * Creates an empty mutable router. * * @stability unstable * @category constructors * @since 4.0.0 */ export declare const make: (options?: Partial) => Router; //# sourceMappingURL=FindMyWay.d.ts.map