import * as React from 'react'; import { OneBlinkReadOnlyFormProps } from './OneBlinkFormBase'; declare function OneBlinkReadOnlyForm(props: OneBlinkReadOnlyFormProps): import("react/jsx-runtime").JSX.Element; /** * Component for rendering a OneBlink Form in read-only mode. By default, all * inputs are read-only. Pass `editableFormElementIds` with controlled * submission props (`definition`, `submission`, `setFormSubmission`, * `executedLookups`) to keep selected inputs editable. Selecting a `form` or * `infoPage` element makes all of its descendants editable. This component does * **not** render the submit, cancel or save draft buttons. * * Form element default values are not applied to fields that were left blank. * * It is also recommended to import the `css` from this library as well. * * ```js * import { OneBlinkReadOnlyForm } from '@oneblink/apps-react' * import '@oneblink/apps-react/dist/styles.css' * ``` * * #### Example * * ```tsx * import React from 'react' * import ReactDOM from 'react-dom' * import { * FormTypes * IsOfflineContextProvider, * OneBlinkReadOnlyForm, * useFormSubmissionState, * useIsMounted, * } from '@oneblink/apps-react' * import '@oneblink/apps-react/dist/styles.css' * * const googleMapsApiKey = 'ENTER_YOUR_MAPS_API_KEY_HERE' * const formsAppId = 1 * const form: FormTypes.Form = { * id: 1, * name: 'Name of Form', * description: '', * organisationId: 'abc123', * formsAppEnvironmentId: 1, * formsAppIds: [], * elements: [], * isAuthenticated: false, * isMultiPage: false, * isInfoPage: false, * publishStartDate: null, * publishEndDate: null, * postSubmissionAction: 'FORMS_LIBRARY', * submissionEvents: [], * tags: [], * } * * function FormContainer() { * const isMounted = useIsMounted() * const [ * { definition, submission, executedLookups }, * setFormSubmission, * ] = useFormSubmissionState(form) * * const handleFormError = React.useCallback(() => { * // handle form rendering error caused by a misconfigured form here... * }, [isMounted]) * * return ( * * ) * } * * function App() { * return ( * * * * ) * } * * const root = document.getElementById('root') * if (root) { * ReactDOM.render(, root) * } * ``` * * @param props * @returns * @group Components */ declare const _default: React.MemoExoticComponent; export default _default;