import React from 'react'; /** * `AccessibilityOrientation` definition used for the `SliderProps.orientation` prop. * Used to define which swipes (depending on directions) will change the slides, * and where and how will the buttons render, if set to render. */ export declare enum AccessibilityOrientation { VERTICAL = "vertical", HORIZONTAL = "horizontal" } export interface AccessibilityProps { /** * Controls render of the next and previous buttons. * @default true */ shouldDisplayButtons?: boolean; /** * When an arrow key is pressed, the active slide will change respectively to the pressed arrow. * The left and down arrows will set the previous slide, and the right and up arrows will set the next slide. * The left and right will only work if the slider is horizontal, and the up and down arrows will only work if the slider is vertical. * @default true */ shouldSlideOnArrowKeypress?: boolean; /** * The slider orientation can either set to be `horizontal` or `vertical`. * The orientation sets the slide buttons respective to the orientation (e.g. if vertical, the buttons will be at the top and at the bottom). * Swipe (touch) gestures in mobile devices to change slides will also be configured automatically depending on the orientation (e.g. if horizontal, swiping vertically won't change slides). * @default 'horizontal' */ orientation?: `${AccessibilityOrientation}`; /** * Pixel threshold for the Slider to register a swiping command to change slides. * @default 50 */ thresholdToSlide?: number; } declare type State = { initialX: number | undefined; initialY: number | undefined; currentX: number | undefined; currentY: number | undefined; }; declare type ProviderProps = React.PropsWithChildren<{ accessibility?: AccessibilityProps; }>; declare function AccessibilityProvider({ children, accessibility }: ProviderProps): JSX.Element; declare function useAccessibility(): { state: State; shouldDisplayButtons: boolean; orientation: AccessibilityOrientation; onTouchStartHandler: (event: React.TouchEvent) => void; onTouchMoveHandler: (event: React.TouchEvent) => void; onTouchEndHandler: () => void; }; export { AccessibilityProvider, useAccessibility }; //# sourceMappingURL=Accessibility.d.ts.map