import React, { ReactNode } from 'react'; import { FieldValues } from '../utils/init'; import { ContextOnAction, ContextOnChange, ContextOnError, ContextOnSubmit, ContextOnView, ElementProps, FormContext, PopupOptions } from '../types/Form'; import { InitialLoader } from '../hooks/useLoader'; export * from './grid/StyledContainer'; export type { StyledContainerProps } from './grid/StyledContainer'; export interface Props { formId: string; onChange?: null | ((context: ContextOnChange) => Promise | void); onLoad?: null | ((context: FormContext) => Promise | void); onFormLoad?: null | ((context: FormContext) => Promise | void); onFormComplete?: null | ((context: FormContext) => Promise | void); onSubmit?: null | ((context: ContextOnSubmit) => Promise | void); onError?: null | ((context: ContextOnError) => Promise | void); onView?: null | ((context: ContextOnView) => Promise | void); onAction?: null | ((context: ContextOnAction) => Promise | void); onViewElements?: string[]; saveUrlParams?: boolean; initialValues?: FieldValues; initialStepId?: string; hideTestUI?: boolean; language?: string; initialLoader?: InitialLoader; popupOptions?: PopupOptions; elementProps?: ElementProps; contextRef?: React.MutableRefObject; formProps?: Record; customComponents?: Record; style?: { [cssProperty: string]: string; }; className?: string; children?: ReactNode; _draft?: boolean; readOnly?: boolean; hashNavigation?: boolean; } interface InternalProps { _internalId: string; _isAuthLoading?: boolean; _bypassCDN?: boolean; _pollFuserData?: boolean; } export interface ClickActionElement { id: string; properties: { [key: string]: any; }; repeat?: any; } export declare function JSForm({ formId, _internalId, _isAuthLoading, ...props }: Props & InternalProps): import("@emotion/react/jsx-runtime").JSX.Element | null; export default function ReactForm(props: Props): import("@emotion/react/jsx-runtime").JSX.Element; //# sourceMappingURL=index.d.ts.map