import { ChangeEvent } from "react"; export type UseSearchParams = { /** Initial value to display in the search input */ initialValue?: string; /** Persist the search value to the host app state (e.g., Redux) */ onPersistSearchValue?: (value: string) => void; /** Track analytics when the debounced value changes and should be emitted */ onTrackSearch?: (query: string) => void; }; export type UseSearchResult = { handleSearch: (queryOrEvent: string | ChangeEvent) => void; handleDebouncedChange: (current: string, previous: string) => void; displayedValue: string | undefined; }; export declare function useSearchCommon({ initialValue, onPersistSearchValue, onTrackSearch, }: UseSearchParams): UseSearchResult; //# sourceMappingURL=useSearch.d.ts.map