from __future__ import annotations

from pathlib import Path

from iflow_mcp_harumiweb_exstruct.mcp.patch.models import OpenpyxlEngineResult, PatchRequest
from iflow_mcp_harumiweb_exstruct.mcp.patch.ops.openpyxl_ops import apply_openpyxl_ops


def apply_openpyxl_engine(
    request: PatchRequest,
    input_path: Path,
    output_path: Path,
) -> OpenpyxlEngineResult:
    """Apply patch operations using the existing openpyxl backend implementation."""
    return apply_openpyxl_ops(request, input_path, output_path)


__all__ = ["apply_openpyxl_engine"]
