/** * Codes for identifying an error. * * @enum {string} * @readonly * @see {@link HitomiError} */ declare enum ErrorCode { InvalidArgument = 'INVALID_ARGUMENT', InvalidCombination = 'INVALID_COMBINATION', InvalidField = 'INVALID_FIELD', UnexpectedResponseStatus = 'UNEXPECTED_RESPONSE_STATUS', UnexpectedResponseBody = 'UNEXPECTED_RESPONSE_BODY' } /** * An error thrown by node-hitomi. * * @extends {Error} */ declare class HitomiError extends Error { /** * The code for identifying an error. * * @type {ErrorCode} * @readonly * @see {@link ErrorCode} */ readonly code: ErrorCode; } export { ErrorCode, HitomiError };