export default DocSearch; declare class DocSearch { static injectSearchBox(input: any): any; static bindSearchBoxEvent(): void; /** * Returns the matching input from a CSS selector, null if none matches * @function getInputFromSelector * @param {string} selector CSS selector that matches the search * input of the page * @returns {void} */ static getInputFromSelector(selector: string): void; static formatHits(receivedHits: any): any; static formatURL(hit: any): any; static getEmptyTemplate(): (args: any) => any; static getSuggestionTemplate(isSimpleLayout: any): (suggestion: any) => any; constructor({ searchDocs, searchIndex, inputSelector, debug, baseUrl, queryDataCallback, autocompleteOptions, transformData, queryHook, handleSelected, enhancedSearchInput, layout }: { searchDocs: any; searchIndex: any; inputSelector: any; debug?: boolean | undefined; baseUrl?: string | undefined; queryDataCallback?: null | undefined; autocompleteOptions?: { debug: boolean; hint: boolean; autoselect: boolean; } | undefined; transformData?: boolean | undefined; queryHook?: boolean | undefined; handleSelected?: boolean | undefined; enhancedSearchInput?: boolean | undefined; layout?: string | undefined; }); input: any; queryDataCallback: any; autocompleteOptions: { debug: boolean; hint: boolean; autoselect: boolean; }; isSimpleLayout: boolean; client: LunrSearchAdapter; autocomplete: any; handleSelected(input: any, event: any, suggestion: any, datasetNumber: any, context?: {}): void; /** * Returns the `source` method to be passed to autocomplete.js. It will query * the Algolia index and call the callbacks with the formatted hits. * @function getAutocompleteSource * @param {function} transformData An optional function to transform the hits * @param {function} queryHook An optional function to transform the query * @returns {function} Method to be passed as the `source` option of * autocomplete */ getAutocompleteSource(transformData: Function, queryHook: Function): Function; handleShown(input: any): void; } import LunrSearchAdapter from "./lunar-search";