import { default as React } from 'react'; import { BasicComponent } from '../../utils/typings'; export type SignatureType = 'jpg' | 'png'; export interface SignatureProps extends BasicComponent { canvasId: string; /** * 图片格式 * @default png */ type: SignatureType /** * 线条的宽度 * @default 3 */ lineWidth: number /** * 绘图笔触颜色 * @default #000 */ strokeStyle: string unSupportTpl: string; /** * 点击确认按钮触发事件回调函数 * @default - */ onConfirm?: (dataurl: string, isSigned?: boolean) => void /** * 点击重签按钮触发事件回调函数 * @default - */ onClear?: () => void } export declare const Signature: React.ForwardRefExoticComponent & React.RefAttributes>;