import { PathToken } from '@based/functions'; /** * Splits the Buffer using "/" (47) in an array of tokens, empty's as ignored. * * @param pattern - The pattern as a Buffer. * @returns An array of tokens. */ export declare function tokenizePattern(pattern: Buffer): PathToken[]; /** * Checks if the path as a Buffer matches the specified pattern also as Buffer. * * @param pattern - The pattern ("/users/:userId?") * @param path - The path to test ("/users/123") */ export declare function pathMatcher(tokens: PathToken[], path: Buffer): boolean; /** * Extract the path values matching the specified pattern as a Buffer. * * @param pattern - The pattern ("/users/:userId?") * @param path - The path to test ("/users/123") */ export declare function pathExtractor(tokens: PathToken[], path: Buffer): Record;