export interface FormJsonFile { version: string; semanticVersion?: string; json: any; } /** * This is a form behaviour property applied on `page` or `section` or `question` */ interface BehaviourProperty { name: string; type: 'field' | 'section' | 'page' | 'all'; value: string; } /** * Convenience function for loading form(s) associated to a given package or form version. * * @param packageName The package associated with the form * @param formNamespace The form namespace * @param version The form version * @param isStrict If `true`, throws error if specified form version wasn't found * @param formsRegistry Form registry. (This was added for testing purposes) * @returns The form json */ export declare function getForm(packageName: string, formNamespace: string, version?: string, isStrict?: boolean, formsRegistry?: any): any; export declare function loadSubforms(parentForm: any): any; export declare function getLatestFormVersion(forms: FormJsonFile[]): FormJsonFile; export declare function getFormByVersion(forms: FormJsonFile[], requiredVersion: string, isStrict?: boolean): FormJsonFile; export declare function lookupForms(packageName: any, formNamespace: any, formsRegistry: any): { version: string; semanticVersion: any; json: any; }[]; /** * Function parses JSON form input and filters validation behaviours according to a given intent * * @param {string} intent The specified intent * @param {object} originalJson The original JSON form schema object * @param parentOverrides An array of behaviour overrides from parent form to be applied to a subform * @returns {object} The form json */ export declare function applyFormIntent(intent: any, originalJson: any, parentOverrides?: Array): any; export declare function updateExcludeIntentBehaviour(excludedIntents: Array, originalJson: any): any; export declare function addToBaseFormsRegistry(customRegistry: Record): void; export {}; //# sourceMappingURL=forms-loader.d.ts.map