import type { Questionnaire, QuestionnaireResponse } from 'fhir/r4'; import type Client from 'fhirclient/lib/Client'; /** * React hook to initialise a form by: * - Calling the buildForm() function to build a form from a questionnaire, an optional QuestionnaireResponse and other optional properties. * - Setting a FHIRClient object to make further FHIR calls i.e. answerExpressions. * * Deprecated in favour of directly calling {@link buildForm} or using the {@link useBuildForm} hook in your own code. * You can still use it, but it might not be compatible with renderer appearance and behaviour customisation via {@link rendererConfigStore}. * * @param questionnaire - Questionnaire to be rendered * @param questionnaireResponse - Pre-populated/draft/loaded QuestionnaireResponse to be rendered (optional) * @param readOnly - Applies read-only mode to all items in the form view * @param terminologyServerUrl - Terminology server url to fetch terminology. If not provided, the default terminology server will be used. (optional) * @param additionalVariables - Additional key-value pair of SDC variables `Record` for testing (optional) * @param fhirClient - FHIRClient object to perform further FHIR calls. At the moment it's only used in answerExpressions (optional) * * @author Sean Fong */ declare function useInitialiseForm(questionnaire: Questionnaire, questionnaireResponse?: QuestionnaireResponse, readOnly?: boolean, terminologyServerUrl?: string, additionalVariables?: Record, fhirClient?: Client): boolean; export default useInitialiseForm;