/** * Storybook stand-in for the VTBA form runtime (ac-react-app formBuilder.ts), * which isn't part of this package. Reproduces the parts the download library * relies on: validate on submit, "submit" for a while, then dispatch * vtba-form:success (cancelable) or vtba-form:error on [data-vtba-form]. If * nothing cancels the success event, it shows the default success message like * the real runtime. Not exported from the package. */ export interface MockVtbaFormRuntimeOptions { outcome?: "success" | "error"; latencyMs?: number; /** Receives what would be sent to HubSpot (data-hs-property || name → value). */ onSubmit?: (fields: Record) => void; } export declare function mockVtbaFormRuntime(scope: ParentNode, options?: MockVtbaFormRuntimeOptions): () => void;