declare class ExtendedError extends Error { constructor(message: string); } declare class RethrownError extends ExtendedError { original: Error; newStack: string; constructor(error: Error, message: string); } export default RethrownError;