import type { RefObject } from 'react'; import type { SearchSource } from 'stream-chat'; /** * Announces how many `[role="option"]` elements are listed in `containerRef`, whatever the result * source. Once every active source is fully loaded, the "all results loaded" status joins the same * announcement so that it cannot supersede the count. * * The announcement goes through the debounced `search.resultCount` interaction and is made only * when the count or the loaded status changes, so an in-place update of a result row is not * repeated. Becoming inactive cancels a pending announcement. * * @param containerRef - Element that contains the result options. * @param active - Whether to observe and announce, e.g. only while a search query is present. * @param activeSources - Sources whose pagination state decides whether all results are loaded. */ export declare const useAnnounceSearchResultCount: (containerRef: RefObject, active: boolean, activeSources?: SearchSource[]) => void; //# sourceMappingURL=useAnnounceSearchResultCount.d.ts.map