import { ReactElement } from 'react'; import { DivProps } from '../../types'; import { GestureOptions } from '../../utils'; import { SlidableActionsAction, SlidableActionsActionProps } from './slidableActionsAction'; export declare function useSlidableActionsContext(): { actionsContainer?: (HTMLElement | null)[]; translate?: number; resetTranslate?(): void; maxDistance?: number; autoReturn?: boolean; }; type ActionType = SlidableActionsActionProps | ReactElement; export interface SlidableActionsProps extends DivProps { /** 元素弹性移动距离,默认为24 */ bounceElementTranslate?: number; /** 手指弹性拖拽距离,默认为240 */ bounceDragDistance?: number; /** 滑动生效的速度,默认为450 (px/s) */ effectiveSpeed?: number; leftActions?: ActionType | ActionType[]; rightActions?: ActionType | ActionType[]; /** 点击action后是否自动归位,默认为`true` */ autoReturn?: boolean; disabled?: boolean; gestureOptions?: GestureOptions; } export declare const SlidableActions: { (props: SlidableActionsProps): ReactElement; Action: typeof SlidableActionsAction; }; export {};