import type { ReactNode } from 'react';
import React from 'react';
declare type NativeProps<S extends string = never> = {
    className?: string;
    style?: React.CSSProperties & Partial<Record<S, string>>;
};
declare type PropagationEvent = 'click';
import './index.less';
declare type SideType = 'left' | 'right';
export declare type SwipeActionRef = {
    close: () => void;
    show: (side?: SideType) => void;
};
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
export declare type Action = {
    key: string | number;
    text: ReactNode;
    color?: ActionColor | string;
    onClick?: (e: React.MouseEvent) => void;
    style?: React.CSSProperties;
};
export declare type SwipeActionProps = {
    rightActions?: Action[];
    leftActions?: Action[];
    onAction?: (action: Action, e: React.MouseEvent) => void;
    closeOnTouchOutside?: boolean;
    closeOnAction?: boolean;
    children: ReactNode;
    stopPropagation?: PropagationEvent[];
    onActionsReveal?: (side: SideType) => void;
    onClose?: () => void;
    escapeDom?: string;
} & NativeProps<'--background'>;
export declare const SwipeAction: React.ForwardRefExoticComponent<{
    rightActions?: Action[] | undefined;
    leftActions?: Action[] | undefined;
    onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
    closeOnTouchOutside?: boolean | undefined;
    closeOnAction?: boolean | undefined;
    children: ReactNode;
    stopPropagation?: "click"[] | undefined;
    onActionsReveal?: ((side: SideType) => void) | undefined;
    onClose?: (() => void) | undefined;
    escapeDom?: string | undefined;
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
export {};
