@jungle-commerce/typesense-react
Version:
React hooks and components for building search interfaces with Typesense
18 lines • 728 B
TypeScript
import { default as React } from 'react';
import { SearchProviderProps, SearchContextValue } from '../types';
/**
* Search context for providing search state and actions to child components
*/
export declare const SearchContext: React.Context<SearchContextValue | null>;
/**
* SearchProvider component that wraps the application and provides search functionality
* @param props - SearchProvider configuration props
*/
export declare const SearchProvider: React.FC<SearchProviderProps>;
/**
* Hook to access the search context
* @throws Error if used outside of SearchProvider
* @returns Search context value
*/
export declare function useSearchContext(): SearchContextValue;
//# sourceMappingURL=SearchProvider.d.ts.map