import { SetParams } from '@solidjs/router'; export type MatchFilter = readonly string[] | RegExp | ((s: string) => boolean); export type MatchFilters
= P extends string ? { [K in PathParams
[number]]?: MatchFilter;
} : Record = P extends `${infer Head}/${infer Tail}` ? [...PathParams(path: S, partial?: boolean, matchFilters?: MatchFilters): (location: string) => PathMatch | null;
export declare function expandOptionals(pattern: string): string[];
export declare function getRouteTemplates(children: HTMLCollection): HTMLTemplateElement[];
export declare function cloneElement(element: HTMLElement | HTMLTemplateElement | Element): HTMLElement;
export declare function mergeSearchString(search: string, params: SetParams): string;