import { SearchResult } from './providers/provider'; interface ResultListProps { handleClick: (args: { result: SearchResult; }) => void; classNames?: { resultlist?: string; item?: string; notfound?: string; }; notFoundMessage?: string; /** the input the list belongs to, it gets the combobox attributes */ input?: HTMLInputElement; /** accessible name of the list */ label?: string; } export default class ResultList { handleClick?: (args: { result: SearchResult; }) => void; selected: number; results: SearchResult[]; container: HTMLDivElement; resultItem: HTMLDivElement; notFoundMessage?: HTMLDivElement; notFoundClassName?: string; input?: HTMLInputElement; id: string; constructor({ handleClick, classNames, notFoundMessage, input, label, }: ResultListProps); render(results: SearchResult[] | undefined, resultFormat: (args: { result: SearchResult; }) => string): void; /** the html shown when a search finds nothing, empty shows nothing */ setNotFoundMessage(html?: string): void; select(index: number): SearchResult; count(): number; clear(): void; onClick: (event: Event) => void; } export {};