import { ReactNode, RefObject } from 'react'; export interface SectionItem { title: string; data: Dictionary; } export interface SectionListProps { className?: string; refreshing?: boolean; resetScroll?: boolean; sections: ReadonlyArray>; onEndReached: VoidFunction; /** * How far from the end (in units of visible length of the list) the bottom edge of the * list must be from the end of the content to trigger the `onEndReached` callback. * Thus a value of 0.5 will trigger `onEndReached` when the end of the content is * within half the visible length of the list. */ onEndReachedThreshold?: number; renderItem: (item: [string, T[]], listRef: RefObject) => ReactNode; renderSectionHeader?: (section: SectionItem) => ReactNode; renderSectionFooter?: (section: SectionItem) => ReactNode; } declare const _default: (props: SectionListProps) => Record<"refs", { listContentRef: RefObject; }> & Record<"handlers", { scrollHandler: () => void; }>; export default _default; //# sourceMappingURL=useComponent.d.ts.map