import React, { type PropsWithChildren, type Ref } from 'react'; import type { Except } from 'type-fest'; import type { DOMElement } from '../dom.js'; import type { Styles } from '../styles.js'; export type ScrollBoxHandle = { scrollTo: (y: number) => void; scrollBy: (dy: number) => void; scrollToElement: (el: DOMElement, offset?: number) => void; scrollToBottom: () => void; getScrollTop: () => number; getPendingDelta: () => number; getScrollHeight: () => number; getFreshScrollHeight: () => number; getViewportHeight: () => number; getViewportTop: () => number; isSticky: () => boolean; subscribe: (listener: () => void) => () => void; setClampBounds: (min: number | undefined, max: number | undefined) => void; }; export type ScrollBoxProps = Except & { ref?: Ref; stickyScroll?: boolean; }; declare function ScrollBox({ children, ref, stickyScroll, ...style }: PropsWithChildren): React.ReactNode; export default ScrollBox; //# sourceMappingURL=ScrollBox.d.ts.map