declare function error(settings: any): any; /** * Create the new instance of the CommandError object, * ensuring that it properly extends from the Error class. * @module error * @type {object} * @example * Setting up the log header: * * ```javascript * import { error } from '@bb-cli/base'; * * const out = sh.exec('ls', { silent: true }); * if (out.code !== 0) { * throw error({ * type: 'Shell.Exec', * code: out.code, * message: out.stderr.trim(), * }); * } * ``` */ export default error;