from _typeshed import Incomplete
from collections.abc import Collection

from authlib.jose.rfc7517 import Key

class KeySet:
    keys: Collection[Key]
    def __init__(self, keys) -> None: ...
    def as_dict(self, is_private: bool = False, **params) -> dict[str, list[Incomplete]]: ...
    def as_json(self, is_private: bool = False, **params) -> str: ...
    def find_by_kid(self, kid, **params): ...
