import type { BuildFormParams } from '../utils/manageForm'; /** * React hook wrapping around {@link buildForm} to build a form from a Questionnaire and an optional filled QuestionnaireResponse. * If a QuestionnaireResponse is not provided, an empty QuestionnaireResponse is set as the initial QuestionnaireResponse. * * The build process also supports: * - Applying readOnly mode to all items in the form view * - Providing a default terminology server URL (fallbacks to a public Ontoserver instance if not provided) * - Passing additional SDC variables into the FhirPathContext (e.g. for pre-population purposes) * - Adjusting renderer styling and behaviour via `rendererConfigStore` * - Overriding QuestionnaireItem rendering via `qItemOverrideComponents` * - Overriding SDC UI controls via `sdcUiOverrideComponents` * * @param params - {@link BuildFormParams} containing the configuration for building the form * @returns Hook result for form building lifecycle * * @author Sean Fong */ declare function useBuildForm(params: BuildFormParams): boolean; export default useBuildForm;