import textwrap


def get_notifiers_provider_config(message, subtitle, title) -> dict:
    """
    Return kwargs that will be passed to `notifiers.notify` method.
    """
    # different providers have different requirements for the `notify` method
    # most seem to take a `message` parameter, but they also have different
    # potential formatting requirements for messages.

    # use the following provider-specific map for `notify` parameters
    provider_config = {
        "pushover": {
            "message": textwrap.dedent(
                f"""
                <i>{subtitle}</i>

                {message}
                """
            ),
            "title": title,
            "html": True,
        },
        "slack": {"message": message if message else "task complete"},
    }
    return provider_config