import type React from 'react'; export interface ScrollbarRef extends HTMLElement { /** Recalculates scrollbar thumb size and position after dynamic content changes. */ recalculate(): void; } /** * In React, reach the imperative methods through a ref: * `const api = useRef(null)`, pass `ref={api}`, then `api.current?.recalculate()`. * Available: recalculate(). * * @csspart base, thumb, thumb-x, thumb-y, track, track-x, track-y */ export interface ScrollbarOwnProps { /** * Unique identifier for the element. * @example 'example-id' */ id?: string; /** * Corner radius style. Allowed values: `sharp`, `rounded`, `pill`. * @example 'sharp' */ shape?: 'sharp' | 'rounded' | 'pill'; /** * Scrollbar track treatment: a visible track gutter, or a floating thumb over the content. Allowed values: `with-track`, `floating`. * @example 'with-track' */ track?: 'with-track' | 'floating'; /** * Scroll axis: vertical or horizontal. Allowed values: `vertical`, `horizontal`, `both`. * @example 'vertical' */ axis?: 'vertical' | 'horizontal' | 'both'; /** * Component size. Allowed values: `xs`, `sm`, `md`, `lg`, `xl`. * @example 'xs' */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; /** * Height of the scrollable container. * @example 'h-[600px]' */ height?: string; /** * Visible label text. * @example 'Example label' */ label?: string; /** Default slot content. * @example Content */ children?: React.ReactNode; /** CSS class applied to the Custom Element host. * @example 'my-component' */ className?: string; /** Inline styles applied to the Custom Element host. * @example { marginTop: 8 } */ style?: React.CSSProperties; } /** * Props for ``: the component's own API plus every standard DOM * attribute and native React event handler, forwarded verbatim to the * `` host — `id`, `data-*`, `aria-*`, `title`, `tabIndex`, * `slot`, `onMouseEnter`, and the rest. Own props always win over a * same-named DOM attribute. */ export type ScrollbarProps = ScrollbarOwnProps & Omit, keyof ScrollbarOwnProps | 'children' | 'dangerouslySetInnerHTML'>; export declare const Scrollbar: React.ForwardRefExoticComponent, "dangerouslySetInnerHTML" | keyof ScrollbarOwnProps> & React.RefAttributes>;