import MemcacheRequest = require('./request'); import MemcacheResponse = require('./response'); declare class MemcacheError extends Error { status: number; type: 'client' | 'server'; request?: MemcacheRequest; response?: MemcacheResponse; error?: Error; constructor({ message, status, request, response, error, }: { message?: string; status?: number; request?: MemcacheRequest; response?: MemcacheResponse; error?: Error; }); static ERR_KEY_NOT_FOUND: number; static ERR_KEY_EXISTS: number; static ERR_VALUE_TOO_LARGE: number; static ERR_INVALID_ARGUMENTS: number; static ERR_ITEM_NOT_STORED: number; static ERR_INCR_DECR_ON_NON_NUMERIC_VALUE: number; static ERR_THE_VBUCKET_BELONGS_TO_ANOTHER_SERVER: number; static ERR_AUTHENTICATION_ERROR: number; static ERR_AUTHENTICATION_CONTINUE: number; static ERR_AUTHENTICATION_FAILED: number; static ERR_UNKNOWN_COMMAND: number; static ERR_OUT_OF_MEMORY: number; static ERR_NOT_SUPPORTED: number; static ERR_INTERNAL_ERROR: number; static ERR_BUSY: number; static ERR_TEMPORARY_FAILURE: number; static ERR_UNEXPECTED: number; static ERR_CONNECTION: number; static ERR_INVALID: number; static ERR_COMPRESSION: number; static ERR_SERIALIZATION: number; } export = MemcacheError;