export type PathPatternValidationError = "empty" | "whitespace" | "missing-leading-slash" | "query-or-hash"; export type PathPatternListValidationError = { kind: "not-array"; } | { kind: "empty-array"; } | { kind: "invalid-pattern"; value: unknown; error: PathPatternValidationError; } | { kind: "duplicate-pattern"; pattern: string; }; export interface PathPatternListValidationOptions { allowEmpty?: boolean; } export declare function getPathPatternValidationError(value: unknown): PathPatternValidationError | undefined; export declare function isPathPattern(value: unknown): value is string; export declare function getPathPatternListValidationError(value: unknown, options?: PathPatternListValidationOptions): PathPatternListValidationError | undefined; export interface PathPatternMatch { pattern: string; exact: boolean; literalLength: number; wildcardCount: number; } export declare function pathPatternMatches(pathname: string, pattern: string): boolean; export declare function findBestPathPatternMatch(pathname: string, patterns: Iterable | undefined): PathPatternMatch | undefined; export declare function comparePathPatternMatches(left: PathPatternMatch, right: PathPatternMatch): number; //# sourceMappingURL=path-pattern.d.ts.map