import React from "react"; import { Chunk, ChunkWithHighlights, GroupChunk } from "../types"; import { CountChunkQueryResponseBody, SearchChunksReqPayload, TrieveSDK } from "trieve-ts-sdk"; export declare const ALL_TAG: { tag: string; label: string; icon: null; }; type simpleSearchReqPayload = Omit; type customAutoCompleteAddOn = { use_autocomplete?: boolean; }; export type currencyPosition = "before" | "after"; export type ModalTypes = "ecommerce" | "docs"; export type SearchModes = "chat" | "search"; export type searchOptions = simpleSearchReqPayload & customAutoCompleteAddOn; export type ModalProps = { datasetId: string; apiKey: string; baseUrl?: string; onResultClick?: (chunk: Chunk) => void; theme?: "light" | "dark"; searchOptions?: searchOptions; placeholder?: string; chat?: boolean; analytics?: boolean; ButtonEl?: JSX.ElementType; suggestedQueries?: boolean; defaultSearchQueries?: string[]; defaultAiQuestions?: string[]; brandLogoImgSrcUrl?: string; brandName?: string; problemLink?: string; brandColor?: string; openKeyCombination?: { key?: string; label?: string; ctrl?: boolean; }[]; tags?: { tag: string; label?: string; selected?: boolean; icon?: () => JSX.Element; }[]; defaultSearchMode?: SearchModes; type?: ModalTypes; useGroupSearch?: boolean; allowSwitchingModes?: boolean; defaultCurrency?: string; currencyPosition?: currencyPosition; responsive?: boolean; open?: boolean; onOpenChange?: (open: boolean) => void; debounceMs?: number; }; declare const ModalProvider: ({ children, onLoadProps, }: { children: React.ReactNode; onLoadProps: ModalProps; }) => React.JSX.Element; declare function useModalState(): { props: ModalProps; trieveSDK: TrieveSDK; query: string; setQuery: React.Dispatch>; results: ChunkWithHighlights[] | GroupChunk[][]; setResults: React.Dispatch>; requestID: string; setRequestID: React.Dispatch>; loadingResults: boolean; setLoadingResults: React.Dispatch>; open: boolean; setOpen: React.Dispatch>; inputRef: React.RefObject; mode: string; setMode: React.Dispatch>; modalRef: React.RefObject; setContextProps: (props: ModalProps) => void; currentTag: string; setCurrentTag: React.Dispatch>; tagCounts: CountChunkQueryResponseBody[]; }; export { ModalProvider, useModalState }; //# sourceMappingURL=modal-context.d.ts.map