declare const shopmagic_form: { ajax_url: string; }; declare const wp: { i18n: { __: any; }; }; const { __ } = wp.i18n interface AjaxResponse { success: boolean, data?: string } class ShortcodeForm { private readonly form: HTMLFormElement; private readonly messageContainer: HTMLElement; constructor(elementIdentifier: string) { const form = document.querySelector(elementIdentifier) if (!(form instanceof HTMLFormElement)) { throw new Error('Invalid element. Must be