import { APIService } from "./api"; import { SearchResponse, Terms } from "../models/search"; export declare class SearchService { private api; private baseURL; constructor(api: APIService, baseURL: string); /** * Creates search indexes for the terms passed in order to be able to search for it in the future * @param consultUUID * @param terms the search terms to be indexed */ index(consultUUID: string, terms: Terms): Promise; /** * Searches for the consultations corresponding to the search terms entered in the query * @param terms array of search terms */ search(terms: Terms): Promise; }