def type_decls(printer, ast):
    """Prints "typedef ..."."""
    type_str = printer.ast_to_string(ast["type"])
    names_str = ', '.join(map(lambda name: printer.ast_to_string(name), ast["names"]))
    return f'typedef {type_str} {names_str};'