import TemplateProcessor from "../TemplateProcessor.js"; export declare class GeneratorManager { private templateProcessor; constructor(templateProcessor: TemplateProcessor); /** * Generates an asynchronous generator that yields items from the provided input, * separated by the specified timeout, and automatically registers the generator. * * @param input The item or array of items to yield. If generate me is a function, the function is called to * get a result, and recursively passed to generate() * @param options {valueOnly:boolean, interval?:number}={valueOnly:true, interval:-1} by default the generator will * yield/return only the value and not the verbose {value, done} object that is yielded from a JS AsyncGenerator. * The interval parameter is used to temporally space the yielding of array values when input is an array. When input * is a function .or simple value, the interval is used to repeatedly call the function or yield the value * @returns The registered asynchronous generator. */ generate: (input: AsyncGenerator | any[] | any | (() => any), options?: { valueOnly: boolean; interval?: number; maxYield?: number; }) => AsyncGenerator; /** * Checks if the provided object is a generator (synchronous or asynchronous). * * @param obj The object to check. * @returns `true` if the object is a generator; otherwise `false`. */ static isAsyncGenerator(obj: any): boolean; /** * Pumps the remaining items (after the first item) from the generator into the TemplateProcessor. * Automatically returns the first item. * * @param generator The generator to pump items from. * @param metaInfo The meta info for processing. * @param templateProcessor The TemplateProcessor to set data in. * @returns The first generated item wrapped as {value, done, return} */ pumpItems(generator: AsyncGenerator, metaInfo: any, templateProcessor: any): Promise; /** * Handles asynchronous generators, pumping remaining values into the template processor. */ private pumpRemaining; } //# sourceMappingURL=GeneratorManager.d.ts.map