import { JsonSchema, Middleware } from '@jsonforms/core'; /** * Builds a JsonForms middleware that keeps the rendered schema in sync with the active branch of every * `allOf` / `if`/`then`/`else` in the schema, at the root and in nested objects. * * On every core action it resolves the schema against the current data (see resolveConditionalSchema) * and, when the resolved schema differs from the one currently in the store, swaps it in, regenerating * the UI schema unless disabled. This both prevents the self-referential `Control` at scope `#` that a * raw root or nested combinator makes JsonForms generate (an infinite render recursion) and makes * conditional narrowing update live as the user edits. * * @param originalSchema - The original schema (with its combinators) resolved against the data on every action. * @param options - Options bag. * @param options.regenerateUischema - Whether to regenerate the UI schema from the resolved schema; set true only when no explicit UI schema was supplied. Defaults to true. * @returns The conditional middleware. */ export declare const createConditionalMiddleware: (originalSchema: JsonSchema | undefined, { regenerateUischema }?: { regenerateUischema?: boolean; }) => Middleware;