from typing import Set


def import_declarations(import_set: Set[str]) -> str:
    """
    Generate the import declaration(s) given the import specs.

    :param import_set: import specs
    :return: Go import declaration

    >>> import_declarations(set())
    ''

    >>> import_declarations({'time'})
    'import "time"'

    >>> print(import_declarations({'time', 'regexp'}))
    import (
        "regexp"
        "time"
    )

    """
    if len(import_set) == 0:
        return ''

    elif len(import_set) == 1:
        return 'import "{}"'.format(list(import_set)[0])

    else:
        parts = ['import (\n']
        for package in sorted(import_set):
            parts.append('    "{}"\n'.format(package))
        parts.append(')')
        return ''.join(parts)