/** * Error handler recipe interface. */ export interface HandlerRecipe { code: number; handler: (v?: any, r?: HandlerRecipe) => boolean | Promise; condition?: (v?: any, r?: HandlerRecipe) => boolean | Promise; [key: string]: any; } /** * Error handler configuration interface. */ export interface HandlerConfig { context?: any | (() => any); failFast?: boolean | (() => boolean); } /** * Error handler class. */ export declare class Handler { readonly $config: HandlerConfig; constructor(config?: HandlerConfig); handle(error: any, recipes?: HandlerRecipe[]): Promise; } //# sourceMappingURL=handler.d.ts.map