# Copyright: (c) 2024, Luca Bilke <luca@bil.ke>
# MIT License (see LICENSE)

from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable

if TYPE_CHECKING:
    from ansible_collections.snailed.ez_compose.plugins.module_utils.models import (
        State,
    )


BASE_ARGS: dict[str, Any] = {}


def run_helper(
    state: State,
    service_name: str,
    params: dict[str, Any],
    helper: Callable[[State, str, dict[str, Any]], State] = lambda a, _b, _c: a,
) -> State:
    return helper(state, service_name, params)