1 | import { IterArgs } from './iterresult';
|
2 | export declare type CacheKeys = 'before' | 'after' | 'between';
|
3 | export declare class Cache {
|
4 | all: Date[] | Partial<IterArgs> | false;
|
5 | before: IterArgs[];
|
6 | after: IterArgs[];
|
7 | between: IterArgs[];
|
8 | /**
|
9 | * @param {String} what - all/before/after/between
|
10 | * @param {Array,Date} value - an array of dates, one date, or null
|
11 | * @param {Object?} args - _iter arguments
|
12 | */
|
13 | _cacheAdd(what: CacheKeys | 'all', value: Date[] | Date | null, args?: Partial<IterArgs>): void;
|
14 | /**
|
15 | * @return false - not in the cache
|
16 | * null - cached, but zero occurrences (before/after)
|
17 | * Date - cached (before/after)
|
18 | * [] - cached, but zero occurrences (all/between)
|
19 | * [Date1, DateN] - cached (all/between)
|
20 | */
|
21 | _cacheGet(what: CacheKeys | 'all', args?: Partial<IterArgs>): Date | Date[] | false | null;
|
22 | }
|
23 | //# sourceMappingURL=cache.d.ts.map |
\ | No newline at end of file |