1 | import { Options } from "./core";
|
2 | import { Iterator, Source } from "./lazy";
|
3 | import { Collection, RawObject } from "./types";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class Aggregator {
|
12 | readonly pipeline: Array<RawObject>;
|
13 | readonly options?: Options;
|
14 | constructor(pipeline: Array<RawObject>, options?: Options);
|
15 | /**
|
16 | * Returns an `Lazy` iterator for processing results of pipeline
|
17 | *
|
18 | * @param {*} collection An array or iterator object
|
19 | * @param {Query} query the `Query` object to use as context
|
20 | * @returns {Iterator} an iterator object
|
21 | */
|
22 | stream(collection: Source): Iterator;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | run(collection: Source): Collection;
|
30 | }
|