export default class ElasticSearch { private _apiKey; private _url; private fetchUrl; constructor(apiKey: string, url: string); /** * Creates or updates * @param engine Engine name (Ex: products) * @param document Document can be an object or an instance of BaseClass, if is instance of BaseClass, will take it's data */ indexDocument: (engine: string, document: T) => Promise; deleteDocument: (engine: string, documentID: string) => Promise; }