import { Ref } from 'react'; import { SearchableConfig } from '../header'; import { TextInput } from 'react-native'; declare type SearchContextType = { searchRef: Ref; query: string; searching: boolean; onQueryChange: (text: string) => void; searchConfig?: SearchableConfig; onSearch: () => void; onClear: () => void; onClose: () => void; }; export declare const SearchContext: import("react").Context; /** * useSearch hook * * This hook will provide you with the current searchConfig that is set at the top level * of the Header component. We expose this through a Context in order to avoid passing this prop * through every layer of the component hierarchy. This hook can only be called from within a * SearchContext.Provider. */ export declare const useSearch: () => SearchContextType; export {};