| 39 | }>; |
| 40 | |
| 41 | interface SearchBoxProps |
| 42 | extends AutocompleteApi<InternalDocSearchHit, React.FormEvent, React.MouseEvent, React.KeyboardEvent> { |
| 43 | state: AutocompleteState<InternalDocSearchHit>; |
| 44 | autoFocus: boolean; |
| 45 | inputRef: RefObject<HTMLInputElement | null>; |
| 46 | onClose: () => void; |
| 47 | onAskAiToggle: (toggle: boolean) => void; |
| 48 | onAskAgain: (query: string) => void; |
| 49 | onStopAskAiStreaming: () => Promise<void>; |
| 50 | placeholder: string; |
| 51 | isAskAiActive: boolean; |
| 52 | askAiStatus: UseChatHelpers<AIMessage>['status']; |
| 53 | askAiError?: Error; |
| 54 | isFromSelection: boolean; |
| 55 | translations?: SearchBoxTranslations; |
| 56 | askAiState: AskAiState; |
| 57 | setAskAiState: (state: AskAiState) => void; |
| 58 | onNewConversation: () => void; |
| 59 | onViewConversationHistory: () => void; |
| 60 | isThreadDepthError?: boolean; |
| 61 | askAiBlockingChrome?: 'minimal' | 'thread-depth'; |
| 62 | } |
| 63 | |
| 64 | export function SearchBox({ |
| 65 | translations = {}, |
nothing calls this directly
no outgoing calls
no test coverage detected