import { Middleware } from '../middleware'; export interface FilterPatterns { applyPatterns?: URLPattern[]; skipPatterns?: URLPattern[]; } export declare type FilterWrapperOptions = FilterPatterns; /** Helper to let it pass or not depending on the hyperlink input */ export declare function isHyperlinkAllowed(href: string, filters: FilterPatterns): boolean; /** The wrapper to filter middlewares helps applying or not the passed middleware depending on the hyperlink matching the conditions */ export declare function FilterWrapper(middleware: Middleware, options: FilterWrapperOptions): Middleware;