export declare type ErrorHandler = (error?: any) => any;