import { Eventual, Logger, Mapper, Reducer, TryMapOptions } from '@graphprotocol/common-ts'; export interface TimerTaskContext { logger: Logger; milliseconds: number; } /** * Create an eventual that performs the work in the Reducer function every `milliseconds` milliseconds. * The main difference between this and `timer(...).reduce(...)` is that this function will wait for the previous work to complete before starting the next one. * * @param milliseconds number * @param reducer Reducer * @param initial U * @returns Eventual */ export declare function sequentialTimerReduce({ logger, milliseconds }: TimerTaskContext, reducer: Reducer, initial: U): Eventual; /** * Create an eventual that performs the work in the Mapper function every `milliseconds` milliseconds. * The main difference between this and `timer(...).tryMap(...)` is that this function will wait for the previous work to complete before starting the next one. * * @param milliseconds number * @param mapper Mapper * @param options TryMapOptions * @returns Eventual */ export declare function sequentialTimerMap({ logger, milliseconds }: TimerTaskContext, mapper: Mapper, options?: TryMapOptions): Eventual;