/** * Default (no-search) list for the audience picker: loads the first * AUDIENCE_PAGE_SIZE records A–Z while `active`, and the next page each time * the list is scrolled near its end, until everything is loaded. * * Group and Role are paged by the server. Segmentation's lookup endpoint (or a * consumer's `segmentationFetcher`) returns the whole list, so it is fetched * once per activation, sorted here and handed out a page at a time. * * Attach `listRef` and `onScroll` to the scrolling list element. */ export function useAudienceBrowse({ type, active, segmentationFetcher }: { type: any; active: any; segmentationFetcher: any; }): { items: any[]; hasMore: boolean; isLoading: boolean; isLoadingMore: boolean; listRef: import("react").RefObject; onScroll: (event: any) => void; }; export const AUDIENCE_PAGE_SIZE: 10; export function isBrowsableType(code: any): boolean;