/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import { ReactNode } from 'react'; import { SelectProps, SelectValue } from '.'; declare type SelectPropsAlias = SelectProps; export declare type loadMoreType = (page: number) => Promise; declare type useInfiniteScrollProps = { options?: SelectPropsAlias['options']; onPopupScroll?: SelectPropsAlias['onPopupScroll']; onDropdownVisibleChange?: SelectPropsAlias['onDropdownVisibleChange']; children?: ReactNode; loadMore?: loadMoreType; loadMoreInitPage?: number; }; export declare function useInfiniteScroll({ options, children, loadMore, loadMoreInitPage, onPopupScroll: propsOnPopupScroll, onDropdownVisibleChange: propsOnDropdownVisibleChange, }: useInfiniteScrollProps): { onPopupScroll: (event: import("react").UIEvent) => void; onDropdownVisibleChange: (open: boolean) => void; reset: (page?: number) => void; }; export {};