weechat.pyi 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  1. #
  2. # WeeChat Python stub file, auto-generated by python_stub.py.
  3. # DO NOT EDIT BY HAND!
  4. #
  5. from typing import Dict
  6. WEECHAT_RC_OK: int
  7. WEECHAT_RC_OK_EAT: int
  8. WEECHAT_RC_ERROR: int
  9. WEECHAT_CONFIG_READ_OK: int
  10. WEECHAT_CONFIG_READ_MEMORY_ERROR: int
  11. WEECHAT_CONFIG_READ_FILE_NOT_FOUND: int
  12. WEECHAT_CONFIG_WRITE_OK: int
  13. WEECHAT_CONFIG_WRITE_ERROR: int
  14. WEECHAT_CONFIG_WRITE_MEMORY_ERROR: int
  15. WEECHAT_CONFIG_OPTION_SET_OK_CHANGED: int
  16. WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE: int
  17. WEECHAT_CONFIG_OPTION_SET_ERROR: int
  18. WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND: int
  19. WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET: int
  20. WEECHAT_CONFIG_OPTION_UNSET_OK_RESET: int
  21. WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED: int
  22. WEECHAT_CONFIG_OPTION_UNSET_ERROR: int
  23. WEECHAT_LIST_POS_SORT: str
  24. WEECHAT_LIST_POS_BEGINNING: str
  25. WEECHAT_LIST_POS_END: str
  26. WEECHAT_HOTLIST_LOW: str
  27. WEECHAT_HOTLIST_MESSAGE: str
  28. WEECHAT_HOTLIST_PRIVATE: str
  29. WEECHAT_HOTLIST_HIGHLIGHT: str
  30. WEECHAT_HOOK_PROCESS_RUNNING: int
  31. WEECHAT_HOOK_PROCESS_ERROR: int
  32. WEECHAT_HOOK_CONNECT_OK: int
  33. WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: int
  34. WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND: int
  35. WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED: int
  36. WEECHAT_HOOK_CONNECT_PROXY_ERROR: int
  37. WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR: int
  38. WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR: int
  39. WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR: int
  40. WEECHAT_HOOK_CONNECT_MEMORY_ERROR: int
  41. WEECHAT_HOOK_CONNECT_TIMEOUT: int
  42. WEECHAT_HOOK_CONNECT_SOCKET_ERROR: int
  43. WEECHAT_HOOK_SIGNAL_STRING: str
  44. WEECHAT_HOOK_SIGNAL_INT: str
  45. WEECHAT_HOOK_SIGNAL_POINTER: str
  46. def register(name: str, author: str, version: str, license: str, description: str, shutdown_function: str, charset: str) -> int:
  47. """`register in WeeChat plugin API reference <https://weechat.org/doc/api#_register>`_"""
  48. ...
  49. def plugin_get_name(plugin: str) -> str:
  50. """`plugin_get_name in WeeChat plugin API reference <https://weechat.org/doc/api#_plugin_get_name>`_"""
  51. ...
  52. def charset_set(charset: str) -> int:
  53. """`charset_set in WeeChat plugin API reference <https://weechat.org/doc/api#_charset_set>`_"""
  54. ...
  55. def iconv_to_internal(charset: str, string: str) -> str:
  56. """`iconv_to_internal in WeeChat plugin API reference <https://weechat.org/doc/api#_iconv_to_internal>`_"""
  57. ...
  58. def iconv_from_internal(charset: str, string: str) -> str:
  59. """`iconv_from_internal in WeeChat plugin API reference <https://weechat.org/doc/api#_iconv_from_internal>`_"""
  60. ...
  61. def gettext(string: str) -> str:
  62. """`gettext in WeeChat plugin API reference <https://weechat.org/doc/api#_gettext>`_"""
  63. ...
  64. def ngettext(string: str, plural: str, count: int) -> str:
  65. """`ngettext in WeeChat plugin API reference <https://weechat.org/doc/api#_ngettext>`_"""
  66. ...
  67. def strlen_screen(string: str) -> int:
  68. """`strlen_screen in WeeChat plugin API reference <https://weechat.org/doc/api#_strlen_screen>`_"""
  69. ...
  70. def string_match(string: str, mask: str, case_sensitive: int) -> int:
  71. """`string_match in WeeChat plugin API reference <https://weechat.org/doc/api#_string_match>`_"""
  72. ...
  73. def string_match_list(string: str, masks: str, case_sensitive: int) -> int:
  74. """`string_match_list in WeeChat plugin API reference <https://weechat.org/doc/api#_string_match_list>`_"""
  75. ...
  76. def string_eval_path_home(path: str, pointers: Dict[str, str], extra_vars: Dict[str, str], options: Dict[str, str]) -> str:
  77. """`string_eval_path_home in WeeChat plugin API reference <https://weechat.org/doc/api#_string_eval_path_home>`_"""
  78. ...
  79. def string_mask_to_regex(mask: str) -> str:
  80. """`string_mask_to_regex in WeeChat plugin API reference <https://weechat.org/doc/api#_string_mask_to_regex>`_"""
  81. ...
  82. def string_has_highlight(string: str, highlight_words: str) -> int:
  83. """`string_has_highlight in WeeChat plugin API reference <https://weechat.org/doc/api#_string_has_highlight>`_"""
  84. ...
  85. def string_has_highlight_regex(string: str, regex: str) -> int:
  86. """`string_has_highlight_regex in WeeChat plugin API reference <https://weechat.org/doc/api#_string_has_highlight_regex>`_"""
  87. ...
  88. def string_format_size(size: int) -> str:
  89. """`string_format_size in WeeChat plugin API reference <https://weechat.org/doc/api#_string_format_size>`_"""
  90. ...
  91. def string_color_code_size(string: str) -> int:
  92. """`string_color_code_size in WeeChat plugin API reference <https://weechat.org/doc/api#_string_color_code_size>`_"""
  93. ...
  94. def string_remove_color(string: str, replacement: str) -> str:
  95. """`string_remove_color in WeeChat plugin API reference <https://weechat.org/doc/api#_string_remove_color>`_"""
  96. ...
  97. def string_is_command_char(string: str) -> int:
  98. """`string_is_command_char in WeeChat plugin API reference <https://weechat.org/doc/api#_string_is_command_char>`_"""
  99. ...
  100. def string_input_for_buffer(string: str) -> str:
  101. """`string_input_for_buffer in WeeChat plugin API reference <https://weechat.org/doc/api#_string_input_for_buffer>`_"""
  102. ...
  103. def string_eval_expression(expr: str, pointers: Dict[str, str], extra_vars: Dict[str, str], options: Dict[str, str]) -> str:
  104. """`string_eval_expression in WeeChat plugin API reference <https://weechat.org/doc/api#_string_eval_expression>`_"""
  105. ...
  106. def mkdir_home(directory: str, mode: int) -> int:
  107. """`mkdir_home in WeeChat plugin API reference <https://weechat.org/doc/api#_mkdir_home>`_"""
  108. ...
  109. def mkdir(directory: str, mode: int) -> int:
  110. """`mkdir in WeeChat plugin API reference <https://weechat.org/doc/api#_mkdir>`_"""
  111. ...
  112. def mkdir_parents(directory: str, mode: int) -> int:
  113. """`mkdir_parents in WeeChat plugin API reference <https://weechat.org/doc/api#_mkdir_parents>`_"""
  114. ...
  115. def list_new() -> str:
  116. """`list_new in WeeChat plugin API reference <https://weechat.org/doc/api#_list_new>`_"""
  117. ...
  118. def list_add(list: str, data: str, where: str, user_data: str) -> str:
  119. """`list_add in WeeChat plugin API reference <https://weechat.org/doc/api#_list_add>`_"""
  120. ...
  121. def list_search(list: str, data: str) -> str:
  122. """`list_search in WeeChat plugin API reference <https://weechat.org/doc/api#_list_search>`_"""
  123. ...
  124. def list_search_pos(list: str, data: str) -> int:
  125. """`list_search_pos in WeeChat plugin API reference <https://weechat.org/doc/api#_list_search_pos>`_"""
  126. ...
  127. def list_casesearch(list: str, data: str) -> str:
  128. """`list_casesearch in WeeChat plugin API reference <https://weechat.org/doc/api#_list_casesearch>`_"""
  129. ...
  130. def list_casesearch_pos(list: str, data: str) -> int:
  131. """`list_casesearch_pos in WeeChat plugin API reference <https://weechat.org/doc/api#_list_casesearch_pos>`_"""
  132. ...
  133. def list_get(list: str, position: int) -> str:
  134. """`list_get in WeeChat plugin API reference <https://weechat.org/doc/api#_list_get>`_"""
  135. ...
  136. def list_set(item: str, value: str) -> int:
  137. """`list_set in WeeChat plugin API reference <https://weechat.org/doc/api#_list_set>`_"""
  138. ...
  139. def list_next(item: str) -> str:
  140. """`list_next in WeeChat plugin API reference <https://weechat.org/doc/api#_list_next>`_"""
  141. ...
  142. def list_prev(item: str) -> str:
  143. """`list_prev in WeeChat plugin API reference <https://weechat.org/doc/api#_list_prev>`_"""
  144. ...
  145. def list_string(item: str) -> str:
  146. """`list_string in WeeChat plugin API reference <https://weechat.org/doc/api#_list_string>`_"""
  147. ...
  148. def list_size(list: str) -> int:
  149. """`list_size in WeeChat plugin API reference <https://weechat.org/doc/api#_list_size>`_"""
  150. ...
  151. def list_remove(list: str, item: str) -> int:
  152. """`list_remove in WeeChat plugin API reference <https://weechat.org/doc/api#_list_remove>`_"""
  153. ...
  154. def list_remove_all(list: str) -> int:
  155. """`list_remove_all in WeeChat plugin API reference <https://weechat.org/doc/api#_list_remove_all>`_"""
  156. ...
  157. def list_free(list: str) -> int:
  158. """`list_free in WeeChat plugin API reference <https://weechat.org/doc/api#_list_free>`_"""
  159. ...
  160. def config_new(name: str, callback_reload: str, callback_reload_data: str) -> str:
  161. """`config_new in WeeChat plugin API reference <https://weechat.org/doc/api#_config_new>`_"""
  162. ...
  163. def config_new_section(config_file: str, name: str,
  164. user_can_add_options: int, user_can_delete_options: int,
  165. callback_read: str, callback_read_data: str,
  166. callback_write: str, callback_write_data: str,
  167. callback_write_default: str, callback_write_default_data: str,
  168. callback_create_option: str, callback_create_option_data: str,
  169. callback_delete_option: str, callback_delete_option_data: str) -> str:
  170. """`config_new_section in WeeChat plugin API reference <https://weechat.org/doc/api#_config_new_section>`_"""
  171. ...
  172. def config_search_section(config_file: str, section_name: str) -> str:
  173. """`config_search_section in WeeChat plugin API reference <https://weechat.org/doc/api#_config_search_section>`_"""
  174. ...
  175. def config_new_option(config_file: str, section: str, name: str, type: str, description: str,
  176. string_values: str, min: int, max: int,
  177. default_value: str | None, value: str | None, null_value_allowed: int,
  178. callback_check_value: str, callback_check_value_data: str,
  179. callback_change: str, callback_change_data: str,
  180. callback_delete: str, callback_delete_data: str) -> str:
  181. """`config_new_option in WeeChat plugin API reference <https://weechat.org/doc/api#_config_new_option>`_"""
  182. ...
  183. def config_search_option(config_file: str, section: str, option_name: str) -> str:
  184. """`config_search_option in WeeChat plugin API reference <https://weechat.org/doc/api#_config_search_option>`_"""
  185. ...
  186. def config_string_to_boolean(text: str) -> int:
  187. """`config_string_to_boolean in WeeChat plugin API reference <https://weechat.org/doc/api#_config_string_to_boolean>`_"""
  188. ...
  189. def config_option_reset(option: str, run_callback: int) -> int:
  190. """`config_option_reset in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_reset>`_"""
  191. ...
  192. def config_option_set(option: str, value: str, run_callback: int) -> int:
  193. """`config_option_set in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_set>`_"""
  194. ...
  195. def config_option_set_null(option: str, run_callback: int) -> int:
  196. """`config_option_set_null in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_set_null>`_"""
  197. ...
  198. def config_option_unset(option: str) -> int:
  199. """`config_option_unset in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_unset>`_"""
  200. ...
  201. def config_option_rename(option: str, new_name: str) -> int:
  202. """`config_option_rename in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_rename>`_"""
  203. ...
  204. def config_option_is_null(option: str) -> int:
  205. """`config_option_is_null in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_is_null>`_"""
  206. ...
  207. def config_option_default_is_null(option: str) -> int:
  208. """`config_option_default_is_null in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_default_is_null>`_"""
  209. ...
  210. def config_boolean(option: str) -> int:
  211. """`config_boolean in WeeChat plugin API reference <https://weechat.org/doc/api#_config_boolean>`_"""
  212. ...
  213. def config_boolean_default(option: str) -> int:
  214. """`config_boolean_default in WeeChat plugin API reference <https://weechat.org/doc/api#_config_boolean_default>`_"""
  215. ...
  216. def config_integer(option: str) -> int:
  217. """`config_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_config_integer>`_"""
  218. ...
  219. def config_integer_default(option: str) -> int:
  220. """`config_integer_default in WeeChat plugin API reference <https://weechat.org/doc/api#_config_integer_default>`_"""
  221. ...
  222. def config_string(option: str) -> str:
  223. """`config_string in WeeChat plugin API reference <https://weechat.org/doc/api#_config_string>`_"""
  224. ...
  225. def config_string_default(option: str) -> str:
  226. """`config_string_default in WeeChat plugin API reference <https://weechat.org/doc/api#_config_string_default>`_"""
  227. ...
  228. def config_color(option: str) -> str:
  229. """`config_color in WeeChat plugin API reference <https://weechat.org/doc/api#_config_color>`_"""
  230. ...
  231. def config_color_default(option: str) -> str:
  232. """`config_color_default in WeeChat plugin API reference <https://weechat.org/doc/api#_config_color_default>`_"""
  233. ...
  234. def config_write_option(config_file: str, option: str) -> int:
  235. """`config_write_option in WeeChat plugin API reference <https://weechat.org/doc/api#_config_write_option>`_"""
  236. ...
  237. def config_write_line(config_file: str, option_name: str, value: str) -> int:
  238. """`config_write_line in WeeChat plugin API reference <https://weechat.org/doc/api#_config_write_line>`_"""
  239. ...
  240. def config_write(config_file: str) -> int:
  241. """`config_write in WeeChat plugin API reference <https://weechat.org/doc/api#_config_write>`_"""
  242. ...
  243. def config_read(config_file: str) -> int:
  244. """`config_read in WeeChat plugin API reference <https://weechat.org/doc/api#_config_read>`_"""
  245. ...
  246. def config_reload(config_file: str) -> int:
  247. """`config_reload in WeeChat plugin API reference <https://weechat.org/doc/api#_config_reload>`_"""
  248. ...
  249. def config_option_free(option: str) -> int:
  250. """`config_option_free in WeeChat plugin API reference <https://weechat.org/doc/api#_config_option_free>`_"""
  251. ...
  252. def config_section_free_options(section: str) -> int:
  253. """`config_section_free_options in WeeChat plugin API reference <https://weechat.org/doc/api#_config_section_free_options>`_"""
  254. ...
  255. def config_section_free(section: str) -> int:
  256. """`config_section_free in WeeChat plugin API reference <https://weechat.org/doc/api#_config_section_free>`_"""
  257. ...
  258. def config_free(config_file: str) -> int:
  259. """`config_free in WeeChat plugin API reference <https://weechat.org/doc/api#_config_free>`_"""
  260. ...
  261. def config_get(option_name: str) -> str:
  262. """`config_get in WeeChat plugin API reference <https://weechat.org/doc/api#_config_get>`_"""
  263. ...
  264. def config_get_plugin(option_name: str) -> str:
  265. """`config_get_plugin in WeeChat plugin API reference <https://weechat.org/doc/api#_config_get_plugin>`_"""
  266. ...
  267. def config_is_set_plugin(option_name: str) -> int:
  268. """`config_is_set_plugin in WeeChat plugin API reference <https://weechat.org/doc/api#_config_is_set_plugin>`_"""
  269. ...
  270. def config_set_plugin(option_name: str, value: str) -> int:
  271. """`config_set_plugin in WeeChat plugin API reference <https://weechat.org/doc/api#_config_set_plugin>`_"""
  272. ...
  273. def config_set_desc_plugin(option_name: str, description: str) -> int:
  274. """`config_set_desc_plugin in WeeChat plugin API reference <https://weechat.org/doc/api#_config_set_desc_plugin>`_"""
  275. ...
  276. def config_unset_plugin(option_name: str) -> int:
  277. """`config_unset_plugin in WeeChat plugin API reference <https://weechat.org/doc/api#_config_unset_plugin>`_"""
  278. ...
  279. def key_bind(context: str, keys: Dict[str, str]) -> int:
  280. """`key_bind in WeeChat plugin API reference <https://weechat.org/doc/api#_key_bind>`_"""
  281. ...
  282. def key_unbind(context: str, key: str) -> int:
  283. """`key_unbind in WeeChat plugin API reference <https://weechat.org/doc/api#_key_unbind>`_"""
  284. ...
  285. def prefix(prefix: str) -> str:
  286. """`prefix in WeeChat plugin API reference <https://weechat.org/doc/api#_prefix>`_"""
  287. ...
  288. def color(color_name: str) -> str:
  289. """`color in WeeChat plugin API reference <https://weechat.org/doc/api#_color>`_"""
  290. ...
  291. def prnt(buffer: str, message: str) -> int:
  292. """`prnt in WeeChat plugin API reference <https://weechat.org/doc/api#_prnt>`_"""
  293. ...
  294. def prnt_date_tags(buffer: str, date: int, tags: str, message: str) -> int:
  295. """`prnt_date_tags in WeeChat plugin API reference <https://weechat.org/doc/api#_prnt_date_tags>`_"""
  296. ...
  297. def prnt_y(buffer: str, y: int, message: str) -> int:
  298. """`prnt_y in WeeChat plugin API reference <https://weechat.org/doc/api#_prnt_y>`_"""
  299. ...
  300. def prnt_y_date_tags(buffer: str, y: int, date: int, tags: str, message: str) -> int:
  301. """`prnt_y_date_tags in WeeChat plugin API reference <https://weechat.org/doc/api#_prnt_y_date_tags>`_"""
  302. ...
  303. def log_print(message: str) -> int:
  304. """`log_print in WeeChat plugin API reference <https://weechat.org/doc/api#_log_print>`_"""
  305. ...
  306. def hook_command(command: str, description: str, args: str, args_description: str,
  307. completion: str, callback: str, callback_data: str) -> str:
  308. """`hook_command in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_command>`_"""
  309. ...
  310. def hook_completion(completion_item: str, description: str, callback: str, callback_data: str) -> str:
  311. """`hook_completion in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_completion>`_"""
  312. ...
  313. def hook_command_run(command: str, callback: str, callback_data: str) -> str:
  314. """`hook_command_run in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_command_run>`_"""
  315. ...
  316. def hook_timer(interval: int, align_second: int, max_calls: int, callback: str, callback_data: str) -> str:
  317. """`hook_timer in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_timer>`_"""
  318. ...
  319. def hook_fd(fd: int, flag_read: int, flag_write: int, flag_exception: int, callback: str, callback_data: str) -> str:
  320. """`hook_fd in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_fd>`_"""
  321. ...
  322. def hook_process(command: str, timeout: int, callback: str, callback_data: str) -> str:
  323. """`hook_process in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_process>`_"""
  324. ...
  325. def hook_process_hashtable(command: str, options: Dict[str, str], timeout: int, callback: str, callback_data: str) -> str:
  326. """`hook_process_hashtable in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_process_hashtable>`_"""
  327. ...
  328. def hook_connect(proxy: str, address: str, port: int, ipv6: int, retry: int, local_hostname: str,
  329. callback: str, callback_data: str) -> str:
  330. """`hook_connect in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_connect>`_"""
  331. ...
  332. def hook_line(buffer_type: str, buffer_name: str, tags: str, callback: str, callback_data: str) -> str:
  333. """`hook_line in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_line>`_"""
  334. ...
  335. def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback: str, callback_data: str) -> str:
  336. """`hook_print in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_print>`_"""
  337. ...
  338. def hook_signal(signal: str, callback: str, callback_data: str) -> str:
  339. """`hook_signal in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_signal>`_"""
  340. ...
  341. def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int:
  342. """`hook_signal_send in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_signal_send>`_"""
  343. ...
  344. def hook_hsignal(signal: str, callback: str, callback_data: str) -> str:
  345. """`hook_hsignal in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_hsignal>`_"""
  346. ...
  347. def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int:
  348. """`hook_hsignal_send in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_hsignal_send>`_"""
  349. ...
  350. def hook_config(option: str, callback: str, callback_data: str) -> str:
  351. """`hook_config in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_config>`_"""
  352. ...
  353. def hook_modifier(modifier: str, callback: str, callback_data: str) -> str:
  354. """`hook_modifier in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_modifier>`_"""
  355. ...
  356. def hook_modifier_exec(modifier: str, modifier_data: str, string: str) -> str:
  357. """`hook_modifier_exec in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_modifier_exec>`_"""
  358. ...
  359. def hook_info(info_name: str, description: str, args_description: str,
  360. callback: str, callback_data: str) -> str:
  361. """`hook_info in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_info>`_"""
  362. ...
  363. def hook_info_hashtable(info_name: str, description: str, args_description: str,
  364. output_description: str, callback: str, callback_data: str) -> str:
  365. """`hook_info_hashtable in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_info_hashtable>`_"""
  366. ...
  367. def hook_infolist(infolist_name: str, description: str, pointer_description: str,
  368. args_description: str, callback: str, callback_data: str) -> str:
  369. """`hook_infolist in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_infolist>`_"""
  370. ...
  371. def hook_focus(area: str, callback: str, callback_data: str) -> str:
  372. """`hook_focus in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_focus>`_"""
  373. ...
  374. def hook_set(hook: str, property: str, value: str) -> int:
  375. """`hook_set in WeeChat plugin API reference <https://weechat.org/doc/api#_hook_set>`_"""
  376. ...
  377. def unhook(hook: str) -> int:
  378. """`unhook in WeeChat plugin API reference <https://weechat.org/doc/api#_unhook>`_"""
  379. ...
  380. def unhook_all() -> int:
  381. """`unhook_all in WeeChat plugin API reference <https://weechat.org/doc/api#_unhook_all>`_"""
  382. ...
  383. def buffer_new(name: str, input_callback: str, input_callback_data: str,
  384. close_callback: str, close_callback_data: str) -> str:
  385. """`buffer_new in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_new>`_"""
  386. ...
  387. def buffer_new_props(name: str, properties: Dict[str, str],
  388. input_callback: str, input_callback_data: str,
  389. close_callback: str, close_callback_data: str) -> str:
  390. """`buffer_new_props in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_new_props>`_"""
  391. ...
  392. def current_buffer() -> str:
  393. """`current_buffer in WeeChat plugin API reference <https://weechat.org/doc/api#_current_buffer>`_"""
  394. ...
  395. def buffer_search(plugin: str, name: str) -> str:
  396. """`buffer_search in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_search>`_"""
  397. ...
  398. def buffer_search_main() -> str:
  399. """`buffer_search_main in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_search_main>`_"""
  400. ...
  401. def buffer_clear(buffer: str) -> int:
  402. """`buffer_clear in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_clear>`_"""
  403. ...
  404. def buffer_close(buffer: str) -> int:
  405. """`buffer_close in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_close>`_"""
  406. ...
  407. def buffer_merge(buffer: str, target_buffer: str) -> int:
  408. """`buffer_merge in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_merge>`_"""
  409. ...
  410. def buffer_unmerge(buffer: str, number: int) -> int:
  411. """`buffer_unmerge in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_unmerge>`_"""
  412. ...
  413. def buffer_get_integer(buffer: str, property: str) -> int:
  414. """`buffer_get_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_get_integer>`_"""
  415. ...
  416. def buffer_get_string(buffer: str, property: str) -> str:
  417. """`buffer_get_string in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_get_string>`_"""
  418. ...
  419. def buffer_get_pointer(buffer: str, property: str) -> str:
  420. """`buffer_get_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_get_pointer>`_"""
  421. ...
  422. def buffer_set(buffer: str, property: str, value: str) -> int:
  423. """`buffer_set in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_set>`_"""
  424. ...
  425. def buffer_string_replace_local_var(buffer: str, string: str) -> str:
  426. """`buffer_string_replace_local_var in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_string_replace_local_var>`_"""
  427. ...
  428. def buffer_match_list(buffer: str, string: str) -> int:
  429. """`buffer_match_list in WeeChat plugin API reference <https://weechat.org/doc/api#_buffer_match_list>`_"""
  430. ...
  431. def current_window() -> str:
  432. """`current_window in WeeChat plugin API reference <https://weechat.org/doc/api#_current_window>`_"""
  433. ...
  434. def window_search_with_buffer(buffer: str) -> str:
  435. """`window_search_with_buffer in WeeChat plugin API reference <https://weechat.org/doc/api#_window_search_with_buffer>`_"""
  436. ...
  437. def window_get_integer(window: str, property: str) -> int:
  438. """`window_get_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_window_get_integer>`_"""
  439. ...
  440. def window_get_string(window: str, property: str) -> str:
  441. """`window_get_string in WeeChat plugin API reference <https://weechat.org/doc/api#_window_get_string>`_"""
  442. ...
  443. def window_get_pointer(window: str, property: str) -> str:
  444. """`window_get_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_window_get_pointer>`_"""
  445. ...
  446. def window_set_title(title: str) -> int:
  447. """`window_set_title in WeeChat plugin API reference <https://weechat.org/doc/api#_window_set_title>`_"""
  448. ...
  449. def nicklist_add_group(buffer: str, parent_group: str, name: str, color: str, visible: int) -> str:
  450. """`nicklist_add_group in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_add_group>`_"""
  451. ...
  452. def nicklist_search_group(buffer: str, from_group: str, name: str) -> str:
  453. """`nicklist_search_group in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_search_group>`_"""
  454. ...
  455. def nicklist_add_nick(buffer: str, group: str, name: str, color: str, prefix: str, prefix_color: str, visible: int) -> str:
  456. """`nicklist_add_nick in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_add_nick>`_"""
  457. ...
  458. def nicklist_search_nick(buffer: str, from_group: str, name: str) -> str:
  459. """`nicklist_search_nick in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_search_nick>`_"""
  460. ...
  461. def nicklist_remove_group(buffer: str, group: str) -> int:
  462. """`nicklist_remove_group in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_remove_group>`_"""
  463. ...
  464. def nicklist_remove_nick(buffer: str, nick: str) -> int:
  465. """`nicklist_remove_nick in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_remove_nick>`_"""
  466. ...
  467. def nicklist_remove_all(buffer: str) -> int:
  468. """`nicklist_remove_all in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_remove_all>`_"""
  469. ...
  470. def nicklist_group_get_integer(buffer: str, group: str, property: str) -> int:
  471. """`nicklist_group_get_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_group_get_integer>`_"""
  472. ...
  473. def nicklist_group_get_string(buffer: str, group: str, property: str) -> str:
  474. """`nicklist_group_get_string in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_group_get_string>`_"""
  475. ...
  476. def nicklist_group_get_pointer(buffer: str, group: str, property: str) -> str:
  477. """`nicklist_group_get_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_group_get_pointer>`_"""
  478. ...
  479. def nicklist_group_set(buffer: str, group: str, property: str, value: str) -> int:
  480. """`nicklist_group_set in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_group_set>`_"""
  481. ...
  482. def nicklist_nick_get_integer(buffer: str, nick: str, property: str) -> int:
  483. """`nicklist_nick_get_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_nick_get_integer>`_"""
  484. ...
  485. def nicklist_nick_get_string(buffer: str, nick: str, property: str) -> str:
  486. """`nicklist_nick_get_string in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_nick_get_string>`_"""
  487. ...
  488. def nicklist_nick_get_pointer(buffer: str, nick: str, property: str) -> str:
  489. """`nicklist_nick_get_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_nick_get_pointer>`_"""
  490. ...
  491. def nicklist_nick_set(buffer: str, nick: str, property: str, value: str) -> int:
  492. """`nicklist_nick_set in WeeChat plugin API reference <https://weechat.org/doc/api#_nicklist_nick_set>`_"""
  493. ...
  494. def bar_item_search(name: str) -> str:
  495. """`bar_item_search in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_item_search>`_"""
  496. ...
  497. def bar_item_new(name: str, build_callback: str, build_callback_data: str) -> str:
  498. """`bar_item_new in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_item_new>`_"""
  499. ...
  500. def bar_item_update(name: str) -> int:
  501. """`bar_item_update in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_item_update>`_"""
  502. ...
  503. def bar_item_remove(item: str) -> int:
  504. """`bar_item_remove in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_item_remove>`_"""
  505. ...
  506. def bar_search(name: str) -> str:
  507. """`bar_search in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_search>`_"""
  508. ...
  509. def bar_new(name: str, hidden: str, priority: str, type: str, condition: str, position: str,
  510. filling_top_bottom: str, filling_left_right: str, size: str, size_max: str,
  511. color_fg: str, color_delim: str, color_bg: str, color_bg_inactive: str,
  512. separator: str, items: str) -> str:
  513. """`bar_new in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_new>`_"""
  514. ...
  515. def bar_set(bar: str, property: str, value: str) -> int:
  516. """`bar_set in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_set>`_"""
  517. ...
  518. def bar_update(name: str) -> int:
  519. """`bar_update in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_update>`_"""
  520. ...
  521. def bar_remove(bar: str) -> int:
  522. """`bar_remove in WeeChat plugin API reference <https://weechat.org/doc/api#_bar_remove>`_"""
  523. ...
  524. def command(buffer: str, command: str) -> int:
  525. """`command in WeeChat plugin API reference <https://weechat.org/doc/api#_command>`_"""
  526. ...
  527. def command_options(buffer: str, command: str, options: Dict[str, str]) -> int:
  528. """`command_options in WeeChat plugin API reference <https://weechat.org/doc/api#_command_options>`_"""
  529. ...
  530. def completion_new(buffer: str) -> str:
  531. """`completion_new in WeeChat plugin API reference <https://weechat.org/doc/api#_completion_new>`_"""
  532. ...
  533. def completion_search(completion: str, data: str, position: int, direction: int) -> int:
  534. """`completion_search in WeeChat plugin API reference <https://weechat.org/doc/api#_completion_search>`_"""
  535. ...
  536. def completion_get_string(completion: str, property: str) -> str:
  537. """`completion_get_string in WeeChat plugin API reference <https://weechat.org/doc/api#_completion_get_string>`_"""
  538. ...
  539. def completion_list_add(completion: str, word: str, nick_completion: int, where: str) -> int:
  540. """`completion_list_add in WeeChat plugin API reference <https://weechat.org/doc/api#_completion_list_add>`_"""
  541. ...
  542. def completion_free(completion: str) -> int:
  543. """`completion_free in WeeChat plugin API reference <https://weechat.org/doc/api#_completion_free>`_"""
  544. ...
  545. def info_get(info_name: str, arguments: str) -> str:
  546. """`info_get in WeeChat plugin API reference <https://weechat.org/doc/api#_info_get>`_"""
  547. ...
  548. def info_get_hashtable(info_name: str, dict_in: Dict[str, str]) -> Dict[str, str]:
  549. """`info_get_hashtable in WeeChat plugin API reference <https://weechat.org/doc/api#_info_get_hashtable>`_"""
  550. ...
  551. def infolist_new() -> str:
  552. """`infolist_new in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_new>`_"""
  553. ...
  554. def infolist_new_item(infolist: str) -> str:
  555. """`infolist_new_item in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_new_item>`_"""
  556. ...
  557. def infolist_new_var_integer(item: str, name: str, value: int) -> str:
  558. """`infolist_new_var_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_new_var_integer>`_"""
  559. ...
  560. def infolist_new_var_string(item: str, name: str, value: str) -> str:
  561. """`infolist_new_var_string in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_new_var_string>`_"""
  562. ...
  563. def infolist_new_var_pointer(item: str, name: str, pointer: str) -> str:
  564. """`infolist_new_var_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_new_var_pointer>`_"""
  565. ...
  566. def infolist_new_var_time(item: str, name: str, time: int) -> str:
  567. """`infolist_new_var_time in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_new_var_time>`_"""
  568. ...
  569. def infolist_get(infolist_name: str, pointer: str, arguments: str) -> str:
  570. """`infolist_get in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_get>`_"""
  571. ...
  572. def infolist_next(infolist: str) -> int:
  573. """`infolist_next in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_next>`_"""
  574. ...
  575. def infolist_prev(infolist: str) -> int:
  576. """`infolist_prev in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_prev>`_"""
  577. ...
  578. def infolist_reset_item_cursor(infolist: str) -> int:
  579. """`infolist_reset_item_cursor in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_reset_item_cursor>`_"""
  580. ...
  581. def infolist_search_var(infolist: str, name: str) -> str:
  582. """`infolist_search_var in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_search_var>`_"""
  583. ...
  584. def infolist_fields(infolist: str) -> str:
  585. """`infolist_fields in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_fields>`_"""
  586. ...
  587. def infolist_integer(infolist: str, var: str) -> int:
  588. """`infolist_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_integer>`_"""
  589. ...
  590. def infolist_string(infolist: str, var: str) -> str:
  591. """`infolist_string in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_string>`_"""
  592. ...
  593. def infolist_pointer(infolist: str, var: str) -> str:
  594. """`infolist_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_pointer>`_"""
  595. ...
  596. def infolist_time(infolist: str, var: str) -> int:
  597. """`infolist_time in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_time>`_"""
  598. ...
  599. def infolist_free(infolist: str) -> int:
  600. """`infolist_free in WeeChat plugin API reference <https://weechat.org/doc/api#_infolist_free>`_"""
  601. ...
  602. def hdata_get(hdata_name: str) -> str:
  603. """`hdata_get in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get>`_"""
  604. ...
  605. def hdata_get_var_offset(hdata: str, name: str) -> int:
  606. """`hdata_get_var_offset in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_var_offset>`_"""
  607. ...
  608. def hdata_get_var_type_string(hdata: str, name: str) -> str:
  609. """`hdata_get_var_type_string in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_var_type_string>`_"""
  610. ...
  611. def hdata_get_var_array_size(hdata: str, pointer: str, name: str) -> int:
  612. """`hdata_get_var_array_size in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_var_array_size>`_"""
  613. ...
  614. def hdata_get_var_array_size_string(hdata: str, pointer: str, name: str) -> str:
  615. """`hdata_get_var_array_size_string in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_var_array_size_string>`_"""
  616. ...
  617. def hdata_get_var_hdata(hdata: str, name: str) -> str:
  618. """`hdata_get_var_hdata in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_var_hdata>`_"""
  619. ...
  620. def hdata_get_list(hdata: str, name: str) -> str:
  621. """`hdata_get_list in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_list>`_"""
  622. ...
  623. def hdata_check_pointer(hdata: str, list: str, pointer: str) -> int:
  624. """`hdata_check_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_check_pointer>`_"""
  625. ...
  626. def hdata_move(hdata: str, pointer: str, count: int) -> str:
  627. """`hdata_move in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_move>`_"""
  628. ...
  629. def hdata_search(hdata: str, pointer: str, search: str,
  630. pointers: Dict[str, str], extra_vars: Dict[str, str], options: Dict[str, str],
  631. count: int) -> str:
  632. """`hdata_search in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_search>`_"""
  633. ...
  634. def hdata_char(hdata: str, pointer: str, name: str) -> int:
  635. """`hdata_char in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_char>`_"""
  636. ...
  637. def hdata_integer(hdata: str, pointer: str, name: str) -> int:
  638. """`hdata_integer in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_integer>`_"""
  639. ...
  640. def hdata_long(hdata: str, pointer: str, name: str) -> int:
  641. """`hdata_long in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_long>`_"""
  642. ...
  643. def hdata_string(hdata: str, pointer: str, name: str) -> str:
  644. """`hdata_string in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_string>`_"""
  645. ...
  646. def hdata_pointer(hdata: str, pointer: str, name: str) -> str:
  647. """`hdata_pointer in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_pointer>`_"""
  648. ...
  649. def hdata_time(hdata: str, pointer: str, name: str) -> int:
  650. """`hdata_time in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_time>`_"""
  651. ...
  652. def hdata_hashtable(hdata: str, pointer: str, name: str) -> Dict[str, str]:
  653. """`hdata_hashtable in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_hashtable>`_"""
  654. ...
  655. def hdata_compare(hdata: str, pointer1: str, pointer2: str, name: str, case_sensitive: int) -> int:
  656. """`hdata_compare in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_compare>`_"""
  657. ...
  658. def hdata_update(hdata: str, pointer: str, hashtable: Dict[str, str]) -> int:
  659. """`hdata_update in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_update>`_"""
  660. ...
  661. def hdata_get_string(hdata: str, property: str) -> str:
  662. """`hdata_get_string in WeeChat plugin API reference <https://weechat.org/doc/api#_hdata_get_string>`_"""
  663. ...
  664. def upgrade_new(filename: str, callback_read: str, callback_read_data: str) -> str:
  665. """`upgrade_new in WeeChat plugin API reference <https://weechat.org/doc/api#_upgrade_new>`_"""
  666. ...
  667. def upgrade_write_object(upgrade_file: str, object_id: int, infolist: str) -> int:
  668. """`upgrade_write_object in WeeChat plugin API reference <https://weechat.org/doc/api#_upgrade_write_object>`_"""
  669. ...
  670. def upgrade_read(upgrade_file: str) -> int:
  671. """`upgrade_read in WeeChat plugin API reference <https://weechat.org/doc/api#_upgrade_read>`_"""
  672. ...
  673. def upgrade_close(upgrade_file: str) -> int:
  674. """`upgrade_close in WeeChat plugin API reference <https://weechat.org/doc/api#_upgrade_close>`_"""
  675. ...