UNPKG

graphdb-workbench

Version:
22 lines (21 loc) 873 B
import { AutocompleteSearchResult } from '../../models/rdf-search/autocomplete-search-result'; import { HttpService } from '../http/http.service'; /** * Service for handling autocomplete REST operations. */ export declare class AutocompleteRestService extends HttpService { private readonly autocompleteRestPrefix; /** * Performs an autocomplete search based on the provided search term. * * @param searchTerm - The string to use for autocomplete search. * @returns A Promise that resolves to an AutocompleteSearchResult object containing search suggestions. */ search(searchTerm: string): Promise<AutocompleteSearchResult>; /** * Checks if the autocomplete feature is enabled. * * @returns A Promise that resolves to a boolean indicating whether autocomplete is enabled. */ enabled(): Promise<boolean>; }