/** * This function converts JS errors into plain objects */ export type ErrorPlainObject = { stack?: string; message: string; name?: string; toString(): string; }; export declare function errorToPOJO(error: Error): ErrorPlainObject;