//! # elementor-prop-migrations-rs
//!
//! Applies declarative prop-type migrations to Elementor element data.
//! Port of PHP `Migration_Interpreter` + `Path_Resolver`.
//!
//! ## Usage
//!
//! ```rust
//! use elementor_prop_migrations_rs::run;
//! use serde_json::json;
//!
//! let schema = json!({
//!     "up": [
//!         {"op": {"fn": "set", "path": "props.color", "value": {"$$type":"color","value":"red"}}}
//!     ]
//! });
//!
//! let data = json!({"props": {}});
//! let result = run(&schema, data, "up").unwrap();
//!
//! assert_eq!(result["props"]["color"]["$$type"], "color");
//! ```

pub mod migration_interpreter;
pub mod path_resolver;

pub use migration_interpreter::{run, MigrationError};
pub use path_resolver::{get, resolve, resolve_with_wildcard_binding, PathMatch};
