import { type LayoutType } from '@openmrs/esm-framework'; import type { FormField, FormPage, FormSection, SessionMode, FormSchema } from '../types'; export declare function shouldUseInlineLayout(renderingType: 'single-line' | 'multiline' | 'automatic', layoutType: LayoutType, workspaceLayout: 'minimized' | 'maximized', sessionMode: SessionMode): boolean; export declare function evaluateConditionalAnswered(field: FormField, allFields: FormField[]): void; export declare function evaluateFieldReadonlyProp(field: FormField, sectionReadonly: string | boolean, pageReadonly: string | boolean, formReadonly: string | boolean): void; export declare function findPagesWithErrors(pages: Set, errorFields: FormField[]): string[]; export declare function evalConditionalRequired(field: FormField, allFields: FormField[], formValues: Record): boolean; export declare function evaluateDisabled(node: any, allFields: FormField[], allValues: Record, sessionMode: SessionMode, patient: fhir.Patient, expressionRunnerFn: any): any; export declare function evaluateHide(node: any, allFields: FormField[], allValues: Record, sessionMode: SessionMode, patient: fhir.Patient, expressionRunnerFn: any, updateFormFieldFn: (field: FormField) => void | null): void; /** * Given a reference to a concept (either the uuid, or the source and reference term, ie "CIEL:1234") and a set of concepts, return matching concept, if any * * @param reference a uuid or source/term mapping, ie "3cd6f86c-26fe-102b-80cb-0017a47871b2" or "CIEL:1234" * @param concepts */ export declare function findConceptByReference(reference: string, concepts: any): any; export declare function scrollIntoView(viewId: string, shouldFocus?: boolean): void; export declare const extractObsValueAndDisplay: (field: FormField, obs: any) => { value: any; display: any; }; /** * Checks if a given form page has visible content. * * A page is considered to have visible content if: * - The page itself is not hidden. * - At least one section within the page is visible. * - At least one question within each section is visible. */ export declare function isPageContentVisible(page: FormPage): boolean; /** * Find formField section * @param formJson FormSchema * @param field FormField */ export declare function findFieldSection(formJson: FormSchema, field: FormField): FormSection; //# sourceMappingURL=form-helper.d.ts.map