import PropTypes from 'prop-types'; import React, { Component } from 'react'; import SignaturePad from 'signature_pad'; export interface SignatureCanvasProps extends SignaturePad.SignaturePadOptions { canvasProps?: React.CanvasHTMLAttributes; clearOnResize?: boolean; } export declare class SignatureCanvas extends Component { static propTypes: { velocityFilterWeight: PropTypes.Requireable; minWidth: PropTypes.Requireable; maxWidth: PropTypes.Requireable; minDistance: PropTypes.Requireable; dotSize: PropTypes.Requireable any)>; penColor: PropTypes.Requireable; throttle: PropTypes.Requireable; onEnd: PropTypes.Requireable<(...args: any[]) => any>; onBegin: PropTypes.Requireable<(...args: any[]) => any>; canvasProps: PropTypes.Requireable; clearOnResize: PropTypes.Requireable; }; static defaultProps: Pick; static refNullError: Error; private readonly staticThis; _sigPad: SignaturePad | null; _canvas: HTMLCanvasElement | null; private readonly setRef; _excludeOurProps: () => SignaturePad.SignaturePadOptions; componentDidMount: Component['componentDidMount']; componentWillUnmount: Component['componentWillUnmount']; componentDidUpdate: Component['componentDidUpdate']; getCanvas: () => HTMLCanvasElement; getTrimmedCanvas: () => HTMLCanvasElement; getSignaturePad: () => SignaturePad; _checkClearOnResize: () => void; _resizeCanvas: () => void; render: Component['render']; on: SignaturePad['on']; off: SignaturePad['off']; clear: SignaturePad['clear']; isEmpty: SignaturePad['isEmpty']; fromDataURL: SignaturePad['fromDataURL']; toDataURL: SignaturePad['toDataURL']; fromData: SignaturePad['fromData']; toData: SignaturePad['toData']; } export default SignatureCanvas; //# sourceMappingURL=index.d.ts.map