import { EsignatureProps } from "@lifesg/react-design-system/e-signature"; import { AxiosRequestConfig } from "axios"; import { IBaseFieldSchema } from ".."; import { IYupValidationRule } from "../../frontend-engine"; export interface IESignatureFieldValidationRule extends IYupValidationRule { /** for customising upload error message */ upload?: boolean | undefined; } export interface IESignatureFieldSchema extends IBaseFieldSchema<"e-signature-field", V, IESignatureFieldValidationRule>, Pick { upload?: { url: string; type: "base64" | "multipart"; headers?: AxiosRequestConfig["headers"] | undefined; sessionId?: string | undefined; } | undefined; } export interface IESignatureValue { dataURL?: string | undefined; fileId: string; fileUrl?: string | undefined; uploadResponse?: unknown | undefined; }