//! Storage Engine — 本地文件存储统一抽象层
//!
//! 提供路径净化、原子写入、文件锁三大核心能力，
//! 所有本地 JSON/二进制文件的读写必须通过此层。

#![allow(unused_imports)]

mod engine;
pub mod paths;

pub mod project;
pub mod auth;
pub mod voice;
pub mod config;
pub mod cover_avatar;

pub use engine::{
    atomic_write_json, atomic_write_bytes,
    with_file_lock, read_json, sanitize_filename, StorageError,
};

pub use paths::{
    init_app_data_dir, get_app_data_dir, get_projects_root_dir,
    get_project_dir, get_project_dir_path, get_project_assets_dir,
    get_project_videos_dir, get_project_products_dir, get_voices_json_path,
    get_app_config_json_path, get_cover_avatars_dir, get_cover_avatars_json_path,
};
