import type Input from "./Input.js";
import type { InputMethod } from "../../../../portal/jsonTypes.js";

/** @since 5.1 */
export interface SignatureInputProperties extends Partial<Pick<SignatureInput, "inputMethod">> {}

/**
 * The `SignatureInput` class defines a user interface for an input to which a signature can be attached. This [AttachmentElement.input](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/#input) is used in [attachment elements](https://developers.arcgis.com/javascript/latest/references/core/form/elements/AttachmentElement/) that are set within a [feature layer's](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#formTemplate) or [FeatureForm's](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureForm/#formTemplate) `formTemplate` and is displayed within the [Editor](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-editor/).
 *
 * > [!CAUTION]
 * >
 * > This class is not fully supported within the SDK and is not intended for use in development.
 *
 * @since 5.1
 * @see [SignatureInput](https://developers.arcgis.com/javascript/latest/references/core/form/elements/inputs/attachments/SignatureInput/)
 * @example
 * // Creates a new SignatureInput for an attachment element within a form
 * const signatureInput = new SignatureInput({
 *   inputMethod: "capture",
 * });
 */
export default class SignatureInput extends Input {
  /** @since 5.1 */
  constructor(properties?: SignatureInputProperties);
  /**
   * The supported input methods used to attach a signature.
   *
   * @default "any"
   * @since 5.1
   */
  accessor inputMethod: InputMethod;
  /**
   * The input type identifier.
   *
   * @since 5.1
   */
  get type(): "signature";
}