massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / oauthlib / oauthlib / oauth1 / rfc5849 / signature.pyi
1 from typing import Any
2
3 log: Any
4
5 def signature_base_string(http_method: str, base_str_uri: str, normalized_encoded_request_parameters: str) -> str: ...
6 def base_string_uri(uri: str, host: str | None = ...) -> str: ...
7 def collect_parameters(
8     uri_query: str = ...,
9     body: Any | None = ...,
10     headers: Any | None = ...,
11     exclude_oauth_signature: bool = ...,
12     with_realm: bool = ...,
13 ): ...
14 def normalize_parameters(params) -> str: ...
15 def sign_hmac_sha1_with_client(sig_base_str, client): ...
16 def verify_hmac_sha1(request, client_secret: Any | None = ..., resource_owner_secret: Any | None = ...): ...
17 def sign_hmac_sha1(base_string, client_secret, resource_owner_secret): ...
18 def sign_hmac_sha256_with_client(sig_base_str, client): ...
19 def verify_hmac_sha256(request, client_secret: Any | None = ..., resource_owner_secret: Any | None = ...): ...
20 def sign_hmac_sha256(base_string, client_secret, resource_owner_secret): ...
21 def sign_hmac_sha512_with_client(sig_base_str: str, client): ...
22 def verify_hmac_sha512(request, client_secret: str | None = ..., resource_owner_secret: str | None = ...): ...
23 def sign_rsa_sha1_with_client(sig_base_str, client): ...
24 def verify_rsa_sha1(request, rsa_public_key: str): ...
25 def sign_rsa_sha1(base_string, rsa_private_key): ...
26 def sign_rsa_sha256_with_client(sig_base_str: str, client): ...
27 def verify_rsa_sha256(request, rsa_public_key: str): ...
28 def sign_rsa_sha512_with_client(sig_base_str: str, client): ...
29 def verify_rsa_sha512(request, rsa_public_key: str): ...
30 def sign_plaintext_with_client(_signature_base_string, client): ...
31 def sign_plaintext(client_secret, resource_owner_secret): ...
32 def verify_plaintext(request, client_secret: Any | None = ..., resource_owner_secret: Any | None = ...): ...