import type { AutocompleteApi, AutocompleteState, BaseItem } from '@algolia/autocomplete-core'; import React from 'react'; import type { DocSearchProps } from './DocSearch'; import type { ErrorScreenTranslations } from './ErrorScreen'; import type { NoResultsScreenTranslations } from './NoResultsScreen'; import type { StartScreenTranslations } from './StartScreen'; import type { StoredSearchPlugin } from './stored-searches'; import type { InternalDocSearchHit, StoredDocSearchHit } from './types'; export declare type ScreenStateTranslations = Partial<{ errorScreen: ErrorScreenTranslations; startScreen: StartScreenTranslations; noResultsScreen: NoResultsScreenTranslations; }>; export interface ScreenStateProps extends AutocompleteApi { state: AutocompleteState; recentSearches: StoredSearchPlugin; favoriteSearches: StoredSearchPlugin; onItemClick: (item: InternalDocSearchHit, event: KeyboardEvent | MouseEvent) => void; inputRef: React.MutableRefObject; hitComponent: DocSearchProps['hitComponent']; indexName: DocSearchProps['indexName']; disableUserPersonalization: boolean; resultsFooterComponent: DocSearchProps['resultsFooterComponent']; translations: ScreenStateTranslations; getMissingResultsUrl?: DocSearchProps['getMissingResultsUrl']; } export declare const ScreenState: React.MemoExoticComponent<({ translations, ...props }: ScreenStateProps) => JSX.Element>;