/** * Copyright (c) Facebook, Inc. And its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type { AskAiConfig } from '@docsearch/docusaurus-adapter'; import type { DocSearchModalProps, DocSearchTranslations } from '@docsearch/react'; interface DocSearchPropsLite { indexName: string; apiKey: string; appId: string; placeholder?: string; translations?: DocSearchTranslations; searchParameters?: DocSearchModalProps['searchParameters']; askAi?: AskAiConfig; } type OnAskAiToggle = NonNullable; type DocSearchAskAi = Exclude; type DocSearchModalPropsLite = Partial>; type UseAskAiResult = { canHandleAskAi: boolean; isAskAiActive: boolean; currentPlaceholder: string | undefined; onAskAiToggle: OnAskAiToggle; askAi?: AskAiConfig; extraAskAiProps: DocSearchModalPropsLite & { askAi?: DocSearchAskAi; canHandleAskAi?: boolean; isAskAiActive?: boolean; onAskAiToggle?: OnAskAiToggle; }; }; export declare function useAlgoliaAskAi(props: DocSearchPropsLite): UseAskAiResult; export {};