export declare function buildErrorObject(error: any): any;