/** * The base of custom errors in ES6. Extend this class if you want to create a new error type. * * @see http://stackoverflow.com/a/32749533 */ declare class BaseError extends Error { readonly key: string; readonly message: string; readonly isWtg = true; readonly name: string; constructor(key: string, message: string); get formattedMessage(): string; print(): void; } export default BaseError;