@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
21 lines • 555 B
TypeScript
type Parts = string[];
export declare class Trie<T> {
#private;
private separator;
private wildcardOne;
private wildcardSubtree;
private reservedPrefix;
private looseCompare;
constructor(looseCompare?: boolean);
matchChild(child: string, parts: Parts): Array<T>;
match(key: string): T[];
private _matchPrefix;
private _match;
add(key: string, value: T): void;
private _add;
remove(key: string, value: T): void;
private _remove;
private filter;
}
export {};
//# sourceMappingURL=trie.d.ts.map