You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
621 B
17 lines
621 B
5 months ago
|
export declare class Trie<Data> {
|
||
|
private weakness;
|
||
|
private makeData;
|
||
|
private weak?;
|
||
|
private strong?;
|
||
|
private data?;
|
||
|
constructor(weakness?: boolean, makeData?: (array: any[]) => Data);
|
||
|
lookup<T extends any[]>(...array: T): Data;
|
||
|
lookupArray<T extends IArguments | any[]>(array: T): Data;
|
||
|
peek<T extends any[]>(...array: T): Data | undefined;
|
||
|
peekArray<T extends IArguments | any[]>(array: T): Data | undefined;
|
||
|
remove(...array: any[]): Data | undefined;
|
||
|
removeArray<T extends IArguments | any[]>(array: T): Data | undefined;
|
||
|
private getChildTrie;
|
||
|
private mapFor;
|
||
|
}
|