react-monaco-json-merge
Version:
A powerful React component for 3-way JSON merging with semantic comparison, built on Monaco Editor. Features schema-aware conflict detection, interactive resolution, and real-time validation.
13 lines • 620 B
TypeScript
import type { JSONSchema } from "../types";
export declare function hasSchemaVariants(schema: JSONSchema): boolean;
export declare function getSchemaVariants(schema: JSONSchema): JSONSchema[] | undefined;
export declare function getSubschemaKeyword(schema: JSONSchema): string;
/**
* Synchronous version of chooseSubschema for use in non-async contexts
* Enhanced to handle object discriminators and const values
*/
export declare function chooseSubschemaSync(data: unknown, variants: JSONSchema[], _schemaKeyword?: string): {
selectedIndex: number;
schema: JSONSchema;
};
//# sourceMappingURL=schema.d.ts.map