import React from 'react'; import { useSiteSearch } from 'dumi'; export declare type SearchResultCommonType = { isOpen?: boolean; onOpen?: () => void; onClose?: () => void; }; export declare type SearchResult = ReturnType['result']; export declare type SearchFlatData = ({ type: 'title'; value: Pick; } | { type: 'hint'; activeIndex: number; value: SearchResult[0]['hints'][0]; })[]; export declare type SearchFlatCommonData = Pick & SearchResult[0]['hints'][0]; declare const SearchBar: () => React.JSX.Element | null; export default SearchBar;