import React from 'react'; import { DefaultProps, FlowindSize, Selectors } from '../../styles'; import { ForwardRefWithStaticComponents } from '../../utils/forwardRef-with-static-components'; import useStyles, { ScrollAreaStylesParams } from './scroll-area.styles'; export type ScrollAreaStylesNames = Selectors; export interface ScrollAreaProps extends DefaultProps, React.ComponentPropsWithRef<'div'> { variant?: string; /** Scrollbar size */ scrollbarSize?: FlowindSize; /** Scrollbars type */ type?: 'auto' | 'always' | 'scroll' | 'hover' | 'never'; /** Scroll hide delay in ms, for scroll and hover types only */ scrollHideDelay?: number; width?: React.CSSProperties['width']; height?: React.CSSProperties['height']; maxWidth?: React.CSSProperties['maxWidth']; maxHeight?: React.CSSProperties['maxHeight']; /** Reading direction of the scroll area */ dir?: 'ltr' | 'rtl'; /** Should scrollbars be offset with padding */ offsetScrollbars?: boolean; /** Get viewport ref */ viewportRef?: React.ForwardedRef; /** Props added to the viewport element */ viewportProps?: React.ComponentPropsWithRef<'div'>; /** Subscribe to scroll position changes */ onScrollPositionChange?: (position: { x: number; y: number; }) => void; } export declare const _ScrollArea: any; export interface ScrollAreaAutosizeProps extends ScrollAreaProps { } declare const ScrollAreaAutosize: React.ForwardRefExoticComponent & React.RefAttributes>; export declare const ScrollArea: ForwardRefWithStaticComponents; export {};