1 |
|
2 |
|
3 |
|
4 | export declare class Cache<T> {
|
5 | private size;
|
6 | private map;
|
7 | private cachedKeys;
|
8 | private oldestIndex;
|
9 | constructor(size: number);
|
10 | reset(): void;
|
11 | get(key: string): T;
|
12 | set(key: string, value: T): void;
|
13 | }
|
14 | /**
|
15 | * Breaks a variable name to an array of strings that can be used to get a
|
16 | * particular value from an object
|
17 | * @param varName - the variable name as it occurs in the template.
|
18 | * For example `a["b"].c`
|
19 | * @throws `TypeError` if the varName is not a string
|
20 | * @throws `SyntaxError` if the varName syntax has a problem
|
21 | * @returns - an array of property names that can be used to get a particular
|
22 | * value.
|
23 | * For example `['a', 'b', 'c']`
|
24 | */
|
25 | export declare function toPath(varName: string): string[];
|
26 | export declare namespace toPath {
|
27 | var cached: typeof toPathCached;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | declare function toPathCached(varName: string): string[];
|
33 | export {};
|