import { StudioGenericEvent, StudioComponentEvent, BoundStudioComponentEvent } from '@aws-amplify/codegen-ui'; import { JsxAttribute } from 'typescript'; import { Primitive } from '../primitive'; /** * SECURITY: the bound and action paths below emit an attribute name resolved * through mapGenericEventToReact(), which only ever returns a value from a * compile-time mapping (and throws otherwise). The final fallback emits the raw * schema-supplied event name, so it is validated and dropped when it is not * expressible as a JSX attribute name. */ export declare function buildOpeningElementEvents(componentType: string, event: StudioComponentEvent, name: string, componentName: string): JsxAttribute | undefined; export declare function buildBindingEvent(componentType: string, event: BoundStudioComponentEvent, eventName: string): JsxAttribute; export declare function buildActionEvent(componentType: string, eventName: string, componentName: string): JsxAttribute; export declare function mapGenericEventToReact(componentType: Primitive, genericEventBinding: StudioGenericEvent): string;