declare module "react-native-signature-canvas-optimized" { import React from "react"; import {StyleProp, ViewStyle} from "react-native"; type ImageType = "image/jpeg" | "image/svg+xml"; type DataURL = "Base64"; type ForwardRef = React.ForwardRefExoticComponent & React.RefAttributes>; type SignatureViewProps = { webStyle?: string; onOK?: (signature: string) => void; onEmpty?: () => void; onClear?: () => void; onBegin?: () => void; onEnd?: () => void; descriptionText?: string; clearText?: string; confirmText?: string; customHtml?: string | null | undefined; autoClear?: boolean; trimWhitespace?: boolean; rotated?: boolean; imageType?: ImageType; dataURL?: DataURL; penColor?: string; backgroundColor?: string; dotSize?: number, minWidth?: number, androidHardwareAccelerationDisabled?: boolean; optimizeSvg?: boolean; style?: StyleProp } export type SignatureViewRef = { readSignature: () => void; clearSignature: () => void; } const SignatureView: ForwardRef export default SignatureView; }