import ErrorOptions from './error_options'; declare class BaseError extends Error { [key: string]: any; static getType(err: Error): string; static from InstanceType, P extends ConstructorParameters>(this: S, err: Error, ...args: P | undefined[]): InstanceType; code: string; protected options?: T; constructor(options?: T); } export default BaseError;