export declare function tryOrOnError(target: Function): (x?: any) => any;