import { Translatable } from '../../../../mixins/translatable'; import { PropertyDeclarations } from 'lit-element'; export declare class SignableFields extends Translatable { /** @readonly */ static get properties(): PropertyDeclarations; /** * Optional open: An Object with key, value pairs where the key is a item * attribute and the value is a previously computed HMAC validation code. * * **Important security information:** this web component does not generate or validates the HMAC validation code. * Please, refer to [the Product Verification page](https://wiki.foxycart.com/v/2.0/hmac_validation) for more information and tools for generating the codes. */ signatures?: Record; /** * Optional open: An Object with key, value pairs where the key is a item * attribute and the value is a boolean indicating that the property is editable by the user. * * **Advanced use only**: this web component does not provide means for the user to alter item attributes. * * See [Product Verification](https://wiki.foxycart.com/v/2.0/hmac_validation) for more information. */ open?: Record; /** * Concatenates the fieldName and it's signature. * * This method does not compute the signature. It must be provided. * Signatures should not be computed in the frontend. * * The unaltered field name is returned if there is no available signature. * * @argument fieldName the name of the field to get the signed version. */ signedName(fieldName: string): string; /** * Checks if a given field is user editable. * * @argument fieldName the name of the field to check if it is user editable. * @returns editable true if it is editable, false otherwise. */ isOpen(fieldName: string): boolean; }