import type { Field } from 'payload'; /** * Panel fields that let an EDITOR configure a form's analytics event — the GTM * `dataLayer` push fired on successful submit — without any code change. Add * them to the Forms collection via the plugin's `formOverrides`: * * ipalKit({ * forms: { * formOverrides: { * fields: ({ defaultFields }) => [...defaultFields, ...buildFormAnalyticsFields()], * }, * }, * }) * * The front reads this config and emits the event automatically via * `formAnalyticsOnSuccess` (see forms.md) — so adding a tracked form, or * changing its event name/params, is panel-only. The GTM side (the Lead/Pixel * tag, its trigger and consent gate) stays in GTM, which is itself a no-code * panel for tags. */ export declare function buildFormAnalyticsFields(): Field[];