import { Context } from 'egg'; export interface Handler { fn: () => Promise | T; fallbackFn?: () => Promise | T; logError?: boolean; } export declare type HandlerTuple = { [P in keyof T]: Handler; }; export declare type ResultTuple = { [P in keyof T]: T[P]; }; export declare function withDefaultValue(value: T): () => T; export declare function aggregator(ctx: Context, iterable: HandlerTuple): Promise>;