import { Scopable, JsonSchema, UISchemaElement } from '@jsonforms/core'; import Ajv2019 from 'ajv/dist/2019'; import type { Options } from 'ajv'; export declare const createAjv: (options?: Options) => Ajv2019; export declare const isOrCondition: (condition: any) => boolean; export declare const isAndCondition: (condition: any) => boolean; export declare const isLeafCondition: (condition: any) => boolean; export declare const isSchemaCondition: (condition: any) => boolean; export declare const getConditionScope: (condition: Scopable, path: string | undefined) => string; export declare const isErrorCondition: (condition: { type: string; }) => boolean; export declare const evaluateCondition: (data: any, condition: any, path: string | undefined, ajv: any) => any; /** * Check if rule is fulfilled * @param {*} uischema * @param {*} data * @param {*} path * @returns */ export declare const isRuleFulfilled: (uischema: UISchemaElement, data: any, path: string | undefined, ajv: any) => boolean; export declare const evalError: (uischema: any, data: any, path: string, ajv: any) => boolean; export declare const hasErrorRule: (uischema: { rule: { effect: string; }; }) => boolean; /** * Evaluate error if its rule is enabled * @param {*} uischema * @param {*} data * @param {*} path * @returns */ export declare const isErrorEnabled: (uischema: any, data: any, path: string, ajv: any) => boolean; /** * Indicates whether the given `uischema` element shall be enabled or disabled. * Checks the global readonly flag, uischema rule, uischema options (including the config), * the schema and the enablement indicator of the parent. */ export declare const isInherentlyEnabled: (state: any, ownProps: any, uischema: any, schema: any, rootData: any, config: any) => any; export declare const isRequired: (schema: JsonSchema, schemaPath: string, rootSchema: JsonSchema) => boolean; export declare const evalVisibility: (uischema: UISchemaElement, data: any, path: string | undefined, ajv: any) => boolean; export declare const evalEnablement: (uischema: UISchemaElement, data: any, path: string | undefined, ajv: any) => boolean; export declare const hasShowRule: (uischema: UISchemaElement) => boolean; export declare const hasEnableRule: (uischema: UISchemaElement) => boolean; export declare const hasEvaluateRule: (uischema: UISchemaElement) => boolean; export declare const isVisible: (uischema: UISchemaElement, data: any, path: string | undefined, ajv: any) => boolean; export declare const isEnabled: (uischema: UISchemaElement, data: any, path: string | undefined, ajv: any) => boolean;