import { Pattern } from './pattern'; /** * Internal function used to generate the Pattern#match method. Although RegExps may be used to implement the `match` * method for any pattern, we avoid using RegExps for a number of simpler kinds of pattern. This is because * pattern matching may be performed frequently, and possibly on critical paths. As such, the use of optimised `match` * implementations may result in substantial overall performance improvements in calling code. */ export declare function toMatchFunction(pattern: Pattern): MatchFunction; /** The signature of the Pattern#match method. */ export declare type MatchFunction = (_: string) => { [captureName: string]: string; } | null;