1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-20 22:34:46 -05:00
denoland-deno/cli/bench/testdata/npm/hono/dist/router/reg-exp-router/trie.d.ts
2022-08-19 15:54:54 +05:30

14 lines
439 B
TypeScript

import type { ParamMap, Context } from './node';
import { Node } from './node';
export type { ParamMap } from './node';
export declare type ReplacementMap = number[];
interface InitOptions {
reverse: boolean;
}
export declare class Trie {
context: Context;
root: Node;
constructor({ reverse }?: InitOptions);
insert(path: string, index: number): ParamMap;
buildRegExp(): [RegExp, ReplacementMap, ReplacementMap];
}