from .identity import uSwidIdentity as uSwidIdentity
from .problem import uSwidProblem as uSwidProblem
from _typeshed import Incomplete
from enum import IntEnum
from typing import List, Optional

class uSwidLinkRel(IntEnum):
    LICENSE: int
    COMPILER: int
    ANCESTOR: int
    COMPONENT: int
    FEATURE: int
    INSTALLATIONMEDIA: int
    PACKAGEINSTALLER: int
    PARENT: int
    PATCHES: int
    REQUIRES: int
    SEE_ALSO: int
    SUPERSEDES: int
    SUPPLEMENTAL: int

class uSwidLink:
    identity: Incomplete
    def __init__(self, href: Optional[str] = ..., rel: Optional[str] = ...) -> None: ...
    @property
    def rel(self) -> Optional[str]: ...
    @property
    def href(self) -> Optional[str]: ...
    @property
    def href_for_display(self) -> Optional[str]: ...
    def problems(self) -> List[uSwidProblem]: ...
