from typing import List


def generate_def(functions: List[str], dll_name: str) -> str:
    """Generate .def file defining provided functions

    Args:
        functions: list of functions to define
        dll_name: name for LIBRARY

    Returns:
        string containing a .def file that defines and exports those functions
    """
    text = []
    text.append("LIBRARY " + dll_name)
    text.append("")
    text.append("EXPORTS")
    for i in functions:
        text.append(" " * 4 + i)
    text.append("")
    return "\n".join(text)