1 | import IterResult, { IterArgs } from './iterresult';
|
2 | declare type Iterator = (d: Date, len: number) => boolean;
|
3 | /**
|
4 | * IterResult subclass that calls a callback function on each add,
|
5 | * and stops iterating when the callback returns false.
|
6 | */
|
7 | export default class CallbackIterResult extends IterResult<'all' | 'between'> {
|
8 | private iterator;
|
9 | constructor(method: 'all' | 'between', args: Partial<IterArgs>, iterator: Iterator);
|
10 | add(date: Date): boolean;
|
11 | }
|
12 | export {};
|
13 | //# sourceMappingURL=callbackiterresult.d.ts.map |
\ | No newline at end of file |