export declare type IPipeProcess = (context: any) => Promise | T; export declare type PipeErrorHandler = (context: any, error?: Error) => void; export interface IPipeResolveContext { rules: Array>; handler?: PipeErrorHandler; }