import React from 'react'; /** Detail payload for nearstart / nearend events. */ export interface TyScrollNearEdgeDetail { distance: number; scrollTop: number; scrollHeight: number; clientHeight: number; } export interface TyScrollContainerProps extends React.HTMLAttributes { /** Maximum height of the scroll container */ maxHeight?: string; /** Enable/disable scroll shadows (default: true) */ shadow?: boolean; /** Hide native scrollbar (no custom scrollbar) */ hideScrollbar?: boolean; /** Use the styled custom scrollbar */ customScrollbar?: boolean; /** Enable horizontal scrolling */ overflowX?: boolean; /** Preserve visual position when content is prepended above the viewport */ scrollAnchoring?: boolean; /** Distance (px) from an edge at which nearstart/nearend fire (default 100) */ nearEdgeThreshold?: number; /** Fired once when scrolled within the threshold of the bottom */ onNearEnd?: (event: CustomEvent) => void; /** Fired once when scrolled within the threshold of the top */ onNearStart?: (event: CustomEvent) => void; /** Content to scroll */ children?: React.ReactNode; } export interface TyScrollContainerRef { /** Force update shadows (useful after dynamic content changes) */ updateShadows: () => void; /** Scroll to top */ scrollToTop: (smooth?: boolean) => void; /** Scroll to bottom */ scrollToBottom: (smooth?: boolean) => void; /** Scroll to far left */ scrollToLeft: (smooth?: boolean) => void; /** Scroll to far right */ scrollToRight: (smooth?: boolean) => void; /** Scroll a descendant (element or CSS selector) into view */ scrollToElement: (target: Element | string, smooth?: boolean) => void; /** Get the underlying scroll element */ scrollElement: HTMLElement | null; /** Get the native element */ element: HTMLElement | null; } export declare const TyScrollContainer: React.ForwardRefExoticComponent>; //# sourceMappingURL=TyScrollContainer.d.ts.map