/**
 * @author linhd
 * @date 2023/2/14 10:24
 * @description 滑块验证
 */
import React, { FunctionComponent } from 'react';
import './index.scss';
export interface DragVerifyImgProps {
    /** 背景图 */
    sourceImage?: string;
    /** 移动图 */
    newImage?: string;
    /** Y轴位置 */
    y?: number;
    [name: string]: any;
}
export interface DragVerifyProps {
    /** 类名 */
    className?: string;
    /** 样式 */
    style?: React.CSSProperties;
    width?: number | string;
    /** 图片高 */
    height?: number | string;
    /** 刷新 */
    refresh?: any;
    /** 获取图片接口 */
    getImgInfo: () => (Promise<DragVerifyImgProps> | DragVerifyImgProps);
    /** 提交校验接口 xPos: x轴坐标，imgInfo：图片信息
     *  true 通过
     *  false 不通过
     * */
    verify: (xPos: number, imgInfo: DragVerifyImgProps) => Promise<boolean> | boolean;
}
export declare const DragVerify: FunctionComponent<DragVerifyProps>;
export default DragVerify;
