import { Ref } from 'vue'; import { PrimitiveProps } from '../Primitive'; import { Direction, ScrollType } from './types'; export interface ScrollAreaRootContext { type: Ref; dir: Ref; scrollHideDelay: Ref; scrollArea: Ref; viewport: Ref; onViewportChange: (viewport: HTMLElement | null) => void; content: Ref; onContentChange: (content: HTMLElement) => void; scrollbarX: Ref; onScrollbarXChange: (scrollbar: HTMLElement | null) => void; scrollbarXEnabled: Ref; onScrollbarXEnabledChange: (rendered: boolean) => void; scrollbarY: Ref; onScrollbarYChange: (scrollbar: HTMLElement | null) => void; scrollbarYEnabled: Ref; onScrollbarYEnabledChange: (rendered: boolean) => void; onCornerWidthChange: (width: number) => void; onCornerHeightChange: (height: number) => void; } export declare const injectScrollAreaRootContext: (fallback?: T | undefined) => T extends null ? ScrollAreaRootContext | null : ScrollAreaRootContext, provideScrollAreaRootContext: (contextValue: ScrollAreaRootContext) => ScrollAreaRootContext; export interface ScrollAreaRootProps extends PrimitiveProps { /** * Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. * * `auto` - means that scrollbars are visible when content is overflowing on the corresponding orientation.
* `always` - means that scrollbars are always visible regardless of whether the content is overflowing.
* `scroll` - means that scrollbars are visible when the user is scrolling along its corresponding orientation.
* `hover` - when the user is scrolling along its corresponding orientation and when the user is hovering over the scroll area. */ type?: ScrollType; /** The reading direction of the combobox when applicable.
If omitted, inherits globally from `ConfigProvider` or assumes LTR (left-to-right) reading mode. */ dir?: Direction; /** If type is set to either `scroll` or `hover`, this prop determines the length of time, in milliseconds,
before the scrollbars are hidden after the user stops interacting with scrollbars. */ scrollHideDelay?: number; } declare const _default: __VLS_WithTemplateSlots, { type: string; scrollHideDelay: number; }>, { /** Viewport element within ScrollArea */ viewport: Ref; /** Scroll viewport to top */ scrollTop: () => void; /** Scroll viewport to top-left */ scrollTopLeft: () => void; }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly, { type: string; scrollHideDelay: number; }>>>, { type: ScrollType; scrollHideDelay: number; }, {}>, { default?(_: {}): any; }>; export default _default; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal : P[K]; }; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; }; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};