export = ESWrapper; declare class ESWrapper { constructor(client: any); client: any; /** * Transforms raw ES errors into a normalized Kuzzle version * * @param {Error} error * @returns {KuzzleError} */ formatESError(error: Error): KuzzleError; reject(error: any): Bluebird; _handleConflictError(error: any, message: any): KuzzleError; _handleNotFoundError(error: any, message: any): KuzzleError; _handleBadRequestError(error: any, message: any): KuzzleError; _handleUnknownError(error: any, message: any): KuzzleError; } import { KuzzleError } from "../../../kerror/errors/kuzzleError"; import Bluebird = require("bluebird");