import { type FormSchema, type PreFilledQuestions } from '../types'; export declare function useFormJson(formUuid: string, rawFormJson: any, encounterUuid: string, formSessionIntent: string, preFilledQuestions?: PreFilledQuestions): { formJson: FormSchema; isLoading: boolean; formError: Error; }; /** * Fetches a form JSON schema from OpenMRS and recursively fetches its subForms if they available. * * If `rawFormJson` is provided, it will be used as the raw form JSON object. Otherwise, the form JSON will be fetched from OpenMRS using the `formIdentifier` parameter. * * @param rawFormJson The raw form JSON object to be used if `formIdentifier` is not provided. * @param formIdentifier The UUID or name of the form to be fetched from OpenMRS if `rawFormJson` is not provided. * @param formSessionIntent An optional parameter that represents the current intent. * @param preFilledQuestions An optional parameter that represents the pre-filled questions. * @returns A well-built form object that might include subForms. */ export declare function loadFormJson(formIdentifier: string, rawFormJson?: FormSchema, formSessionIntent?: string, preFilledQuestions?: PreFilledQuestions): Promise; //# sourceMappingURL=useFormJson.d.ts.map