massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / agent.pyi
1 from socket import _RetAddress, socket
2 from threading import Thread
3 from typing import Protocol, Tuple
4
5 from paramiko.channel import Channel
6 from paramiko.message import Message
7 from paramiko.pkey import PKey
8 from paramiko.transport import Transport
9
10 class _AgentProxy(Protocol):
11     def connect(self) -> None: ...
12     def close(self) -> None: ...
13
14 cSSH2_AGENTC_REQUEST_IDENTITIES: bytes
15 SSH2_AGENT_IDENTITIES_ANSWER: int
16 cSSH2_AGENTC_SIGN_REQUEST: bytes
17 SSH2_AGENT_SIGN_RESPONSE: int
18
19 class AgentSSH:
20     def __init__(self) -> None: ...
21     def get_keys(self) -> Tuple[AgentKey, ...]: ...
22
23 class AgentProxyThread(Thread):
24     def __init__(self, agent: _AgentProxy) -> None: ...
25     def run(self) -> None: ...
26
27 class AgentLocalProxy(AgentProxyThread):
28     def __init__(self, agent: AgentServerProxy) -> None: ...
29     def get_connection(self) -> tuple[socket, _RetAddress]: ...
30
31 class AgentRemoteProxy(AgentProxyThread):
32     def __init__(self, agent: AgentClientProxy, chan: Channel) -> None: ...
33     def get_connection(self) -> tuple[socket, _RetAddress]: ...
34
35 class AgentClientProxy:
36     thread: Thread
37     def __init__(self, chanRemote: Channel) -> None: ...
38     def __del__(self) -> None: ...
39     def connect(self) -> None: ...
40     def close(self) -> None: ...
41
42 class AgentServerProxy(AgentSSH):
43     thread: Thread
44     def __init__(self, t: Transport) -> None: ...
45     def __del__(self) -> None: ...
46     def connect(self) -> None: ...
47     def close(self) -> None: ...
48     def get_env(self) -> dict[str, str]: ...
49
50 class AgentRequestHandler:
51     def __init__(self, chanClient: Channel) -> None: ...
52     def __del__(self) -> None: ...
53     def close(self) -> None: ...
54
55 class Agent(AgentSSH):
56     def __init__(self) -> None: ...
57     def close(self) -> None: ...
58
59 class AgentKey(PKey):
60     agent: AgentSSH
61     blob: bytes
62     public_blob: None
63     name: str
64     def __init__(self, agent: AgentSSH, blob: bytes) -> None: ...
65     def asbytes(self) -> bytes: ...
66     def get_name(self) -> str: ...
67     def sign_ssh_data(self, data: bytes) -> Message: ...