@tsonic/dotnet 10.0.40 → 10.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/Internal/bindings.json +5 -5
  2. package/Internal/internal/index.d.ts +4 -3
  3. package/Internal.d.ts +4 -0
  4. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  5. package/Microsoft.CSharp.RuntimeBinder.d.ts +4 -0
  6. package/Microsoft.VisualBasic/bindings.json +13 -13
  7. package/Microsoft.VisualBasic/internal/index.d.ts +5 -7
  8. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +3 -5
  9. package/Microsoft.VisualBasic.CompilerServices.d.ts +4 -0
  10. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +4 -3
  11. package/Microsoft.VisualBasic.FileIO.d.ts +4 -0
  12. package/Microsoft.VisualBasic.d.ts +4 -0
  13. package/Microsoft.Win32/internal/index.d.ts +19 -18
  14. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  15. package/Microsoft.Win32.SafeHandles.d.ts +4 -0
  16. package/Microsoft.Win32.d.ts +4 -0
  17. package/README.md +83 -104
  18. package/System/bindings.json +1858 -2297
  19. package/System/internal/index.d.ts +1972 -2010
  20. package/System.Buffers/bindings.json +12 -3
  21. package/System.Buffers/internal/index.d.ts +56 -58
  22. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  23. package/System.Buffers.Binary.d.ts +4 -0
  24. package/System.Buffers.Text/internal/index.d.ts +2 -4
  25. package/System.Buffers.Text.d.ts +4 -0
  26. package/System.Buffers.d.ts +10 -6
  27. package/System.CodeDom.Compiler/internal/index.d.ts +31 -30
  28. package/System.CodeDom.Compiler.d.ts +4 -0
  29. package/System.Collections/bindings.json +300 -300
  30. package/System.Collections/internal/index.d.ts +90 -92
  31. package/System.Collections.Concurrent/bindings.json +311 -311
  32. package/System.Collections.Concurrent/internal/index.d.ts +83 -85
  33. package/System.Collections.Concurrent.d.ts +7 -3
  34. package/System.Collections.Frozen/bindings.json +490 -648
  35. package/System.Collections.Frozen/internal/index.d.ts +95 -109
  36. package/System.Collections.Frozen.d.ts +18 -2
  37. package/System.Collections.Generic/bindings.json +9628 -14043
  38. package/System.Collections.Generic/internal/index.d.ts +632 -827
  39. package/System.Collections.Generic.d.ts +20 -16
  40. package/System.Collections.Immutable/bindings.json +6134 -9214
  41. package/System.Collections.Immutable/internal/index.d.ts +414 -502
  42. package/System.Collections.Immutable.d.ts +58 -17
  43. package/System.Collections.ObjectModel/bindings.json +328 -850
  44. package/System.Collections.ObjectModel/internal/index.d.ts +42 -62
  45. package/System.Collections.ObjectModel.d.ts +6 -2
  46. package/System.Collections.Specialized/bindings.json +79 -202
  47. package/System.Collections.Specialized/internal/index.d.ts +72 -85
  48. package/System.Collections.Specialized.d.ts +4 -0
  49. package/System.Collections.d.ts +4 -0
  50. package/System.ComponentModel/bindings.json +271 -210
  51. package/System.ComponentModel/internal/index.d.ts +562 -547
  52. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +126 -125
  53. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  54. package/System.ComponentModel.DataAnnotations.Schema.d.ts +4 -0
  55. package/System.ComponentModel.DataAnnotations.d.ts +4 -0
  56. package/System.ComponentModel.Design/bindings.json +40 -310
  57. package/System.ComponentModel.Design/internal/index.d.ts +85 -93
  58. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +42 -41
  59. package/System.ComponentModel.Design.Serialization.d.ts +4 -0
  60. package/System.ComponentModel.Design.d.ts +4 -0
  61. package/System.ComponentModel.d.ts +5 -0
  62. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  63. package/System.Configuration.Assemblies.d.ts +4 -0
  64. package/System.Data/bindings.json +128 -125
  65. package/System.Data/internal/index.d.ts +341 -340
  66. package/System.Data.Common/bindings.json +68 -68
  67. package/System.Data.Common/internal/index.d.ts +135 -136
  68. package/System.Data.Common.d.ts +4 -0
  69. package/System.Data.SqlTypes/internal/index.d.ts +55 -54
  70. package/System.Data.SqlTypes.d.ts +4 -0
  71. package/System.Data.d.ts +8 -4
  72. package/System.Diagnostics/bindings.json +6324 -6509
  73. package/System.Diagnostics/internal/index.d.ts +435 -437
  74. package/System.Diagnostics.CodeAnalysis/bindings.json +121 -121
  75. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  76. package/System.Diagnostics.CodeAnalysis.d.ts +4 -0
  77. package/System.Diagnostics.Contracts/bindings.json +62 -62
  78. package/System.Diagnostics.Contracts/internal/index.d.ts +23 -25
  79. package/System.Diagnostics.Contracts.d.ts +4 -0
  80. package/System.Diagnostics.Metrics/internal/index.d.ts +82 -84
  81. package/System.Diagnostics.Metrics.d.ts +7 -3
  82. package/System.Diagnostics.SymbolStore/bindings.json +2 -2
  83. package/System.Diagnostics.SymbolStore/internal/index.d.ts +11 -10
  84. package/System.Diagnostics.SymbolStore.d.ts +4 -0
  85. package/System.Diagnostics.Tracing/bindings.json +291 -231
  86. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  87. package/System.Diagnostics.Tracing.d.ts +6 -1
  88. package/System.Diagnostics.d.ts +5 -1
  89. package/System.Drawing/internal/index.d.ts +76 -75
  90. package/System.Drawing.d.ts +4 -0
  91. package/System.Dynamic/bindings.json +13 -13
  92. package/System.Dynamic/internal/index.d.ts +35 -36
  93. package/System.Dynamic.d.ts +4 -0
  94. package/System.Formats.Asn1/bindings.json +48 -69
  95. package/System.Formats.Asn1/internal/index.d.ts +30 -37
  96. package/System.Formats.Asn1.d.ts +4 -0
  97. package/System.Formats.Tar/internal/index.d.ts +8 -7
  98. package/System.Formats.Tar.d.ts +4 -0
  99. package/System.Globalization/bindings.json +3 -3
  100. package/System.Globalization/internal/index.d.ts +35 -37
  101. package/System.Globalization.d.ts +4 -0
  102. package/System.IO/bindings.json +957 -957
  103. package/System.IO/internal/index.d.ts +183 -185
  104. package/System.IO.Compression/internal/index.d.ts +33 -35
  105. package/System.IO.Compression.d.ts +4 -0
  106. package/System.IO.Enumeration/bindings.json +402 -402
  107. package/System.IO.Enumeration/internal/index.d.ts +21 -23
  108. package/System.IO.Enumeration.d.ts +4 -0
  109. package/System.IO.IsolatedStorage/internal/index.d.ts +16 -15
  110. package/System.IO.IsolatedStorage.d.ts +4 -0
  111. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  112. package/System.IO.MemoryMappedFiles.d.ts +4 -0
  113. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  114. package/System.IO.Pipelines.d.ts +4 -0
  115. package/System.IO.Pipes/internal/index.d.ts +8 -7
  116. package/System.IO.Pipes.d.ts +4 -0
  117. package/System.IO.d.ts +4 -0
  118. package/System.Linq/bindings.json +22 -22
  119. package/System.Linq/internal/index.d.ts +705 -705
  120. package/System.Linq.Expressions/internal/index.d.ts +219 -195
  121. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  122. package/System.Linq.Expressions.Interpreter.d.ts +4 -0
  123. package/System.Linq.Expressions.d.ts +6 -2
  124. package/System.Linq.d.ts +18 -14
  125. package/System.Net/bindings.json +131 -131
  126. package/System.Net/internal/index.d.ts +276 -278
  127. package/System.Net.Cache/internal/index.d.ts +3 -2
  128. package/System.Net.Cache.d.ts +4 -0
  129. package/System.Net.Http/bindings.json +22 -22
  130. package/System.Net.Http/internal/index.d.ts +128 -130
  131. package/System.Net.Http.Headers/bindings.json +36 -200
  132. package/System.Net.Http.Headers/internal/index.d.ts +114 -128
  133. package/System.Net.Http.Headers.d.ts +4 -0
  134. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  135. package/System.Net.Http.Json.d.ts +4 -0
  136. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  137. package/System.Net.Http.Metrics.d.ts +4 -0
  138. package/System.Net.Http.d.ts +5 -1
  139. package/System.Net.Mail/bindings.json +96 -96
  140. package/System.Net.Mail/internal/index.d.ts +78 -80
  141. package/System.Net.Mail.d.ts +4 -0
  142. package/System.Net.Mime/internal/index.d.ts +11 -10
  143. package/System.Net.Mime.d.ts +4 -0
  144. package/System.Net.NetworkInformation/bindings.json +40 -40
  145. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  146. package/System.Net.NetworkInformation.d.ts +4 -0
  147. package/System.Net.Quic/internal/index.d.ts +11 -10
  148. package/System.Net.Quic.d.ts +4 -0
  149. package/System.Net.Security/internal/index.d.ts +90 -92
  150. package/System.Net.Security.d.ts +4 -0
  151. package/System.Net.ServerSentEvents/internal/index.d.ts +13 -12
  152. package/System.Net.ServerSentEvents.d.ts +7 -3
  153. package/System.Net.Sockets/internal/index.d.ts +91 -93
  154. package/System.Net.Sockets.d.ts +4 -0
  155. package/System.Net.WebSockets/bindings.json +101 -101
  156. package/System.Net.WebSockets/internal/index.d.ts +49 -48
  157. package/System.Net.WebSockets.d.ts +4 -0
  158. package/System.Net.d.ts +4 -0
  159. package/System.Numerics/bindings.json +547 -119
  160. package/System.Numerics/internal/index.d.ts +302 -304
  161. package/System.Numerics.d.ts +38 -34
  162. package/System.Reflection/bindings.json +870 -870
  163. package/System.Reflection/internal/index.d.ts +257 -259
  164. package/System.Reflection.Emit/bindings.json +754 -754
  165. package/System.Reflection.Emit/internal/index.d.ts +114 -114
  166. package/System.Reflection.Emit.d.ts +4 -0
  167. package/System.Reflection.Metadata/bindings.json +535 -3018
  168. package/System.Reflection.Metadata/internal/index.d.ts +188 -369
  169. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +16 -18
  170. package/System.Reflection.Metadata.Ecma335.d.ts +4 -0
  171. package/System.Reflection.Metadata.d.ts +9 -5
  172. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  173. package/System.Reflection.PortableExecutable/internal/index.d.ts +25 -12
  174. package/System.Reflection.PortableExecutable.d.ts +5 -0
  175. package/System.Reflection.d.ts +4 -0
  176. package/System.Resources/bindings.json +3 -3
  177. package/System.Resources/internal/index.d.ts +33 -35
  178. package/System.Resources.d.ts +4 -0
  179. package/System.Runtime/bindings.json +9 -9
  180. package/System.Runtime/internal/index.d.ts +11 -10
  181. package/System.Runtime.CompilerServices/bindings.json +962 -1160
  182. package/System.Runtime.CompilerServices/internal/index.d.ts +280 -304
  183. package/System.Runtime.CompilerServices.d.ts +30 -16
  184. package/System.Runtime.ConstrainedExecution/bindings.json +9 -9
  185. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  186. package/System.Runtime.ConstrainedExecution.d.ts +4 -0
  187. package/System.Runtime.ExceptionServices/bindings.json +9 -9
  188. package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -2
  189. package/System.Runtime.ExceptionServices.d.ts +4 -0
  190. package/System.Runtime.InteropServices/bindings.json +666 -666
  191. package/System.Runtime.InteropServices/internal/index.d.ts +250 -252
  192. package/System.Runtime.InteropServices.ComTypes/bindings.json +349 -349
  193. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +22 -24
  194. package/System.Runtime.InteropServices.ComTypes.d.ts +4 -0
  195. package/System.Runtime.InteropServices.Java/bindings.json +12 -12
  196. package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -5
  197. package/System.Runtime.InteropServices.Java.d.ts +4 -0
  198. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  199. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +70 -72
  200. package/System.Runtime.InteropServices.JavaScript.d.ts +14 -28
  201. package/System.Runtime.InteropServices.Marshalling/bindings.json +2422 -2422
  202. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +317 -319
  203. package/System.Runtime.InteropServices.Marshalling.d.ts +4 -0
  204. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +151 -151
  205. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +16 -18
  206. package/System.Runtime.InteropServices.ObjectiveC.d.ts +4 -0
  207. package/System.Runtime.InteropServices.Swift/bindings.json +4 -4
  208. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +5 -7
  209. package/System.Runtime.InteropServices.Swift.d.ts +6 -2
  210. package/System.Runtime.InteropServices.d.ts +6 -2
  211. package/System.Runtime.Intrinsics/bindings.json +64 -16
  212. package/System.Runtime.Intrinsics/internal/index.d.ts +515 -517
  213. package/System.Runtime.Intrinsics.Arm/bindings.json +31 -31
  214. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  215. package/System.Runtime.Intrinsics.Arm.d.ts +4 -0
  216. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  217. package/System.Runtime.Intrinsics.Wasm.d.ts +4 -0
  218. package/System.Runtime.Intrinsics.X86/bindings.json +38 -38
  219. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  220. package/System.Runtime.Intrinsics.X86.d.ts +4 -0
  221. package/System.Runtime.Intrinsics.d.ts +12 -8
  222. package/System.Runtime.Loader/bindings.json +48 -69
  223. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  224. package/System.Runtime.Loader.d.ts +4 -0
  225. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  226. package/System.Runtime.Remoting.d.ts +4 -0
  227. package/System.Runtime.Serialization/bindings.json +13 -13
  228. package/System.Runtime.Serialization/internal/index.d.ts +124 -126
  229. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +28 -30
  230. package/System.Runtime.Serialization.DataContracts.d.ts +4 -0
  231. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  232. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +8 -7
  233. package/System.Runtime.Serialization.Formatters.Binary.d.ts +4 -0
  234. package/System.Runtime.Serialization.Formatters.d.ts +4 -0
  235. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  236. package/System.Runtime.Serialization.Json.d.ts +4 -0
  237. package/System.Runtime.Serialization.d.ts +4 -0
  238. package/System.Runtime.Versioning/bindings.json +13 -13
  239. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  240. package/System.Runtime.Versioning.d.ts +4 -0
  241. package/System.Runtime.d.ts +4 -0
  242. package/System.Security/bindings.json +5 -5
  243. package/System.Security/internal/index.d.ts +64 -66
  244. package/System.Security.AccessControl/bindings.json +137 -33
  245. package/System.Security.AccessControl/internal/index.d.ts +62 -61
  246. package/System.Security.AccessControl.d.ts +13 -8
  247. package/System.Security.Authentication/internal/index.d.ts +7 -6
  248. package/System.Security.Authentication.ExtendedProtection/bindings.json +5 -5
  249. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  250. package/System.Security.Authentication.ExtendedProtection.d.ts +4 -0
  251. package/System.Security.Authentication.d.ts +4 -0
  252. package/System.Security.Claims/internal/index.d.ts +45 -44
  253. package/System.Security.Claims.d.ts +4 -0
  254. package/System.Security.Cryptography/bindings.json +509 -509
  255. package/System.Security.Cryptography/internal/index.d.ts +268 -269
  256. package/System.Security.Cryptography.X509Certificates/bindings.json +312 -374
  257. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +96 -103
  258. package/System.Security.Cryptography.X509Certificates.d.ts +4 -0
  259. package/System.Security.Cryptography.d.ts +4 -0
  260. package/System.Security.Permissions/internal/index.d.ts +5 -4
  261. package/System.Security.Permissions.d.ts +4 -0
  262. package/System.Security.Policy/bindings.json +5 -5
  263. package/System.Security.Policy/internal/index.d.ts +9 -8
  264. package/System.Security.Policy.d.ts +4 -0
  265. package/System.Security.Principal/bindings.json +8 -8
  266. package/System.Security.Principal/internal/index.d.ts +30 -29
  267. package/System.Security.Principal.d.ts +4 -0
  268. package/System.Security.d.ts +4 -0
  269. package/System.Text/bindings.json +1577 -1577
  270. package/System.Text/internal/index.d.ts +121 -123
  271. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  272. package/System.Text.Encodings.Web.d.ts +4 -0
  273. package/System.Text.Json/bindings.json +0 -290
  274. package/System.Text.Json/internal/index.d.ts +143 -161
  275. package/System.Text.Json.Nodes/bindings.json +27 -27
  276. package/System.Text.Json.Nodes/internal/index.d.ts +63 -65
  277. package/System.Text.Json.Nodes.d.ts +4 -0
  278. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  279. package/System.Text.Json.Schema.d.ts +4 -0
  280. package/System.Text.Json.Serialization/internal/index.d.ts +37 -39
  281. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +120 -119
  282. package/System.Text.Json.Serialization.Metadata.d.ts +6 -2
  283. package/System.Text.Json.Serialization.d.ts +10 -6
  284. package/System.Text.Json.d.ts +4 -0
  285. package/System.Text.RegularExpressions/bindings.json +414 -578
  286. package/System.Text.RegularExpressions/internal/index.d.ts +48 -62
  287. package/System.Text.RegularExpressions.d.ts +4 -0
  288. package/System.Text.Unicode/bindings.json +508 -508
  289. package/System.Text.Unicode/internal/index.d.ts +29 -31
  290. package/System.Text.Unicode.d.ts +4 -0
  291. package/System.Text.d.ts +4 -0
  292. package/System.Threading/bindings.json +61 -61
  293. package/System.Threading/internal/index.d.ts +156 -158
  294. package/System.Threading.Channels/internal/index.d.ts +31 -33
  295. package/System.Threading.Channels.d.ts +8 -4
  296. package/System.Threading.Tasks/bindings.json +142 -39
  297. package/System.Threading.Tasks/internal/index.d.ts +250 -247
  298. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +121 -122
  299. package/System.Threading.Tasks.Dataflow.d.ts +18 -14
  300. package/System.Threading.Tasks.Sources/bindings.json +9 -9
  301. package/System.Threading.Tasks.Sources/internal/index.d.ts +11 -10
  302. package/System.Threading.Tasks.Sources.d.ts +6 -2
  303. package/System.Threading.Tasks.d.ts +12 -8
  304. package/System.Threading.d.ts +4 -0
  305. package/System.Timers/internal/index.d.ts +8 -7
  306. package/System.Timers.d.ts +4 -0
  307. package/System.Transactions/internal/index.d.ts +31 -30
  308. package/System.Transactions.d.ts +4 -0
  309. package/System.Web/internal/index.d.ts +32 -31
  310. package/System.Web.d.ts +4 -0
  311. package/System.Windows.Input/internal/index.d.ts +5 -4
  312. package/System.Windows.Input.d.ts +4 -0
  313. package/System.Windows.Markup/internal/index.d.ts +3 -2
  314. package/System.Windows.Markup.d.ts +4 -0
  315. package/System.Xml/bindings.json +27 -27
  316. package/System.Xml/internal/index.d.ts +376 -378
  317. package/System.Xml.Linq/bindings.json +6 -6
  318. package/System.Xml.Linq/internal/index.d.ts +101 -100
  319. package/System.Xml.Linq.d.ts +4 -0
  320. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  321. package/System.Xml.Resolvers.d.ts +4 -0
  322. package/System.Xml.Schema/bindings.json +100 -100
  323. package/System.Xml.Schema/internal/index.d.ts +231 -230
  324. package/System.Xml.Schema.d.ts +4 -0
  325. package/System.Xml.Serialization/bindings.json +250 -57
  326. package/System.Xml.Serialization/internal/index.d.ts +274 -242
  327. package/System.Xml.Serialization.d.ts +6 -0
  328. package/System.Xml.XPath/bindings.json +1 -1
  329. package/System.Xml.XPath/internal/index.d.ts +37 -36
  330. package/System.Xml.XPath.d.ts +4 -0
  331. package/System.Xml.Xsl/bindings.json +1 -1
  332. package/System.Xml.Xsl/internal/index.d.ts +50 -49
  333. package/System.Xml.Xsl.Runtime/bindings.json +74 -71
  334. package/System.Xml.Xsl.Runtime/internal/index.d.ts +38 -40
  335. package/System.Xml.Xsl.Runtime.d.ts +4 -0
  336. package/System.Xml.Xsl.d.ts +4 -0
  337. package/System.Xml.d.ts +4 -0
  338. package/System.d.ts +126 -122
  339. package/__internal/extensions/index.d.ts +1335 -1338
  340. package/families.json +63 -7
  341. package/package.json +2 -2
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Security.Cryptography.X509Certificates
3
3
  // Assembly: System.Security.Cryptography
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { SafeX509ChainHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -299,11 +297,11 @@ export const CertificateRequest: {
299
297
  new(subjectName: string, key: CompositeMLDsa): CertificateRequest;
300
298
  new(subjectName: X500DistinguishedName, key: CompositeMLDsa): CertificateRequest;
301
299
  new(subjectName: X500DistinguishedName, publicKey: PublicKey, hashAlgorithm: HashAlgorithmName): CertificateRequest;
302
- new(subjectName: X500DistinguishedName, publicKey: PublicKey, hashAlgorithm: HashAlgorithmName, rsaSignaturePadding: RSASignaturePadding): CertificateRequest;
303
- LoadSigningRequest(pkcs10: byte[], signerHashAlgorithm: HashAlgorithmName, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding): CertificateRequest;
304
- LoadSigningRequest(pkcs10: ReadOnlySpan_1<System_Internal.Byte>, signerHashAlgorithm: HashAlgorithmName, bytesConsumed: int, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding): CertificateRequest;
305
- LoadSigningRequestPem(pkcs10Pem: ReadOnlySpan_1<System_Internal.Char>, signerHashAlgorithm: HashAlgorithmName, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding): CertificateRequest;
306
- LoadSigningRequestPem(pkcs10Pem: string, signerHashAlgorithm: HashAlgorithmName, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding): CertificateRequest;
300
+ new(subjectName: X500DistinguishedName, publicKey: PublicKey, hashAlgorithm: HashAlgorithmName, rsaSignaturePadding: RSASignaturePadding | null): CertificateRequest;
301
+ LoadSigningRequest(pkcs10: byte[], signerHashAlgorithm: HashAlgorithmName, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding | null): CertificateRequest;
302
+ LoadSigningRequest(pkcs10: ReadOnlySpan_1<System_Internal.Byte>, signerHashAlgorithm: HashAlgorithmName, bytesConsumed: int, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding | null): CertificateRequest;
303
+ LoadSigningRequestPem(pkcs10Pem: ReadOnlySpan_1<System_Internal.Char>, signerHashAlgorithm: HashAlgorithmName, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding | null): CertificateRequest;
304
+ LoadSigningRequestPem(pkcs10Pem: string, signerHashAlgorithm: HashAlgorithmName, options?: CertificateRequestLoadOptions, signerSignaturePadding?: RSASignaturePadding | null): CertificateRequest;
307
305
  };
308
306
 
309
307
 
@@ -315,7 +313,7 @@ export interface CertificateRevocationListBuilder$instance {
315
313
  AddEntry(certificate: X509Certificate2, revocationTime?: Nullable_1<DateTimeOffset>, reason?: Nullable_1<X509RevocationReason>): void;
316
314
  AddEntry(serialNumber: byte[], revocationTime?: Nullable_1<DateTimeOffset>, reason?: Nullable_1<X509RevocationReason>): void;
317
315
  AddEntry(serialNumber: ReadOnlySpan_1<System_Internal.Byte>, revocationTime?: Nullable_1<DateTimeOffset>, reason?: Nullable_1<X509RevocationReason>): void;
318
- Build(issuerCertificate: X509Certificate2, crlNumber: BigInteger, nextUpdate: DateTimeOffset, hashAlgorithm: HashAlgorithmName, rsaSignaturePadding?: RSASignaturePadding, thisUpdate?: Nullable_1<DateTimeOffset>): byte[];
316
+ Build(issuerCertificate: X509Certificate2, crlNumber: BigInteger, nextUpdate: DateTimeOffset, hashAlgorithm: HashAlgorithmName, rsaSignaturePadding?: RSASignaturePadding | null, thisUpdate?: Nullable_1<DateTimeOffset>): byte[];
319
317
  Build(issuerName: X500DistinguishedName, generator: X509SignatureGenerator, crlNumber: BigInteger, nextUpdate: DateTimeOffset, hashAlgorithm: HashAlgorithmName, authorityKeyIdentifier: X509AuthorityKeyIdentifierExtension, thisUpdate?: Nullable_1<DateTimeOffset>): byte[];
320
318
  RemoveEntry(serialNumber: byte[]): boolean;
321
319
  RemoveEntry(serialNumber: ReadOnlySpan_1<System_Internal.Byte>): boolean;
@@ -393,24 +391,24 @@ export interface PublicKey$instance {
393
391
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_PublicKey: never;
394
392
 
395
393
  readonly EncodedKeyValue: AsnEncodedData;
396
- readonly EncodedParameters: AsnEncodedData | undefined;
394
+ readonly EncodedParameters: AsnEncodedData | null;
397
395
  readonly Key: AsymmetricAlgorithm;
398
396
  readonly Oid: Oid;
399
397
  ExportSubjectPublicKeyInfo(): byte[];
400
- GetCompositeMLDsaPublicKey(): CompositeMLDsa | undefined;
401
- GetDSAPublicKey(): DSA | undefined;
402
- GetECDiffieHellmanPublicKey(): ECDiffieHellman | undefined;
403
- GetECDsaPublicKey(): ECDsa | undefined;
404
- GetMLDsaPublicKey(): MLDsa | undefined;
405
- GetMLKemPublicKey(): MLKem | undefined;
406
- GetRSAPublicKey(): RSA | undefined;
407
- GetSlhDsaPublicKey(): SlhDsa | undefined;
398
+ GetCompositeMLDsaPublicKey(): CompositeMLDsa | null;
399
+ GetDSAPublicKey(): DSA | null;
400
+ GetECDiffieHellmanPublicKey(): ECDiffieHellman | null;
401
+ GetECDsaPublicKey(): ECDsa | null;
402
+ GetMLDsaPublicKey(): MLDsa | null;
403
+ GetMLKemPublicKey(): MLKem | null;
404
+ GetRSAPublicKey(): RSA | null;
405
+ GetSlhDsaPublicKey(): SlhDsa | null;
408
406
  TryExportSubjectPublicKeyInfo(destination: Span_1<System_Internal.Byte>, bytesWritten: int): boolean;
409
407
  }
410
408
 
411
409
 
412
410
  export const PublicKey: {
413
- new(oid: Oid, parameters: AsnEncodedData, keyValue: AsnEncodedData): PublicKey;
411
+ new(oid: Oid, parameters: AsnEncodedData | null, keyValue: AsnEncodedData): PublicKey;
414
412
  new(key: AsymmetricAlgorithm): PublicKey;
415
413
  new(key: MLKem): PublicKey;
416
414
  new(key: MLDsa): PublicKey;
@@ -493,7 +491,7 @@ export interface X500RelativeDistinguishedName$instance {
493
491
  readonly HasMultipleElements: boolean;
494
492
  readonly RawData: ReadOnlyMemory_1<System_Internal.Byte>;
495
493
  GetSingleElementType(): Oid;
496
- GetSingleElementValue(): string | undefined;
494
+ GetSingleElementValue(): string | null;
497
495
  }
498
496
 
499
497
 
@@ -518,7 +516,7 @@ export const X509AuthorityInformationAccessExtension: {
518
516
  new(): X509AuthorityInformationAccessExtension;
519
517
  new(rawData: byte[], critical: boolean): X509AuthorityInformationAccessExtension;
520
518
  new(rawData: ReadOnlySpan_1<System_Internal.Byte>, critical: boolean): X509AuthorityInformationAccessExtension;
521
- new(ocspUris: IEnumerable_1<System_Internal.String>, caIssuersUris: IEnumerable_1<System_Internal.String>, critical: boolean): X509AuthorityInformationAccessExtension;
519
+ new(ocspUris: IEnumerable_1<System_Internal.String> | null, caIssuersUris: IEnumerable_1<System_Internal.String> | null, critical: boolean): X509AuthorityInformationAccessExtension;
522
520
  };
523
521
 
524
522
 
@@ -528,7 +526,7 @@ export interface X509AuthorityKeyIdentifierExtension$instance extends X509Extens
528
526
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_X509AuthorityKeyIdentifierExtension: never;
529
527
 
530
528
  readonly KeyIdentifier: Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>>;
531
- readonly NamedIssuer: X500DistinguishedName | undefined;
529
+ readonly NamedIssuer: X500DistinguishedName | null;
532
530
  readonly RawIssuer: Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>>;
533
531
  readonly SerialNumber: Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>>;
534
532
  CopyFrom(asnEncodedData: AsnEncodedData): void;
@@ -586,13 +584,13 @@ export interface X509Certificate$instance extends System_Runtime_Serialization_I
586
584
  readonly Subject: string;
587
585
  Dispose(): void;
588
586
  Dispose(disposing: boolean): void;
589
- Equals(obj: unknown): boolean;
590
- Equals(other: X509Certificate): boolean;
587
+ Equals(obj: unknown | null): boolean;
588
+ Equals(other: X509Certificate | null): boolean;
591
589
  Export(contentType: X509ContentType): byte[];
592
- Export(contentType: X509ContentType, password: string): byte[];
593
- Export(contentType: X509ContentType, password: SecureString): byte[];
594
- ExportPkcs12(exportParameters: Pkcs12ExportPbeParameters, password: string): byte[];
595
- ExportPkcs12(exportParameters: PbeParameters, password: string): byte[];
590
+ Export(contentType: X509ContentType, password: string | null): byte[];
591
+ Export(contentType: X509ContentType, password: SecureString | null): byte[];
592
+ ExportPkcs12(exportParameters: Pkcs12ExportPbeParameters, password: string | null): byte[];
593
+ ExportPkcs12(exportParameters: PbeParameters, password: string | null): byte[];
596
594
  GetCertHash(): byte[];
597
595
  GetCertHash(hashAlgorithm: HashAlgorithmName): byte[];
598
596
  GetCertHashString(): string;
@@ -603,8 +601,8 @@ export interface X509Certificate$instance extends System_Runtime_Serialization_I
603
601
  GetHashCode(): int;
604
602
  GetIssuerName(): string;
605
603
  GetKeyAlgorithm(): string;
606
- GetKeyAlgorithmParameters(): byte[] | undefined;
607
- GetKeyAlgorithmParametersString(): string | undefined;
604
+ GetKeyAlgorithmParameters(): byte[] | null;
605
+ GetKeyAlgorithmParametersString(): string | null;
608
606
  GetName(): string;
609
607
  GetPublicKey(): byte[];
610
608
  GetPublicKeyString(): string;
@@ -613,11 +611,11 @@ export interface X509Certificate$instance extends System_Runtime_Serialization_I
613
611
  GetSerialNumber(): byte[];
614
612
  GetSerialNumberString(): string;
615
613
  Import(rawData: byte[]): void;
616
- Import(rawData: byte[], password: string, keyStorageFlags: X509KeyStorageFlags): void;
617
- Import(rawData: byte[], password: SecureString, keyStorageFlags: X509KeyStorageFlags): void;
614
+ Import(rawData: byte[], password: string | null, keyStorageFlags: X509KeyStorageFlags): void;
615
+ Import(rawData: byte[], password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): void;
618
616
  Import(fileName: string): void;
619
- Import(fileName: string, password: string, keyStorageFlags: X509KeyStorageFlags): void;
620
- Import(fileName: string, password: SecureString, keyStorageFlags: X509KeyStorageFlags): void;
617
+ Import(fileName: string, password: string | null, keyStorageFlags: X509KeyStorageFlags): void;
618
+ Import(fileName: string, password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): void;
621
619
  Reset(): void;
622
620
  ToString(): string;
623
621
  ToString(fVerbose: boolean): string;
@@ -628,16 +626,16 @@ export interface X509Certificate$instance extends System_Runtime_Serialization_I
628
626
  export const X509Certificate: {
629
627
  new(): X509Certificate;
630
628
  new(data: byte[]): X509Certificate;
631
- new(rawData: byte[], password: string): X509Certificate;
632
- new(rawData: byte[], password: SecureString): X509Certificate;
633
- new(rawData: byte[], password: string, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
634
- new(rawData: byte[], password: SecureString, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
629
+ new(rawData: byte[], password: string | null): X509Certificate;
630
+ new(rawData: byte[], password: SecureString | null): X509Certificate;
631
+ new(rawData: byte[], password: string | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
632
+ new(rawData: byte[], password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
635
633
  new(handle: nint): X509Certificate;
636
634
  new(fileName: string): X509Certificate;
637
- new(fileName: string, password: string): X509Certificate;
638
- new(fileName: string, password: SecureString): X509Certificate;
639
- new(fileName: string, password: string, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
640
- new(fileName: string, password: SecureString, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
635
+ new(fileName: string, password: string | null): X509Certificate;
636
+ new(fileName: string, password: SecureString | null): X509Certificate;
637
+ new(fileName: string, password: string | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
638
+ new(fileName: string, password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate;
641
639
  new(cert: X509Certificate): X509Certificate;
642
640
  new(info: SerializationInfo, context: StreamingContext): X509Certificate;
643
641
  CreateFromCertFile(filename: string): X509Certificate;
@@ -669,8 +667,8 @@ export interface X509Certificate2$instance extends X509Certificate$instance, Sys
669
667
  readonly IssuerName: X500DistinguishedName;
670
668
  readonly NotAfter: DateTime;
671
669
  readonly NotBefore: DateTime;
672
- get PrivateKey(): AsymmetricAlgorithm | undefined;
673
- set PrivateKey(value: AsymmetricAlgorithm | undefined);
670
+ get PrivateKey(): AsymmetricAlgorithm | null;
671
+ set PrivateKey(value: AsymmetricAlgorithm | null);
674
672
  readonly PublicKey: PublicKey;
675
673
  readonly RawData: byte[];
676
674
  readonly RawDataMemory: ReadOnlyMemory_1<System_Internal.Byte>;
@@ -685,23 +683,23 @@ export interface X509Certificate2$instance extends X509Certificate$instance, Sys
685
683
  CopyWithPrivateKey(privateKey: SlhDsa): X509Certificate2;
686
684
  CopyWithPrivateKey(privateKey: CompositeMLDsa): X509Certificate2;
687
685
  ExportCertificatePem(): string;
688
- GetCompositeMLDsaPrivateKey(): CompositeMLDsa | undefined;
689
- GetCompositeMLDsaPublicKey(): CompositeMLDsa | undefined;
690
- GetECDiffieHellmanPrivateKey(): ECDiffieHellman | undefined;
691
- GetECDiffieHellmanPublicKey(): ECDiffieHellman | undefined;
692
- GetMLDsaPrivateKey(): MLDsa | undefined;
693
- GetMLDsaPublicKey(): MLDsa | undefined;
694
- GetMLKemPrivateKey(): MLKem | undefined;
695
- GetMLKemPublicKey(): MLKem | undefined;
686
+ GetCompositeMLDsaPrivateKey(): CompositeMLDsa | null;
687
+ GetCompositeMLDsaPublicKey(): CompositeMLDsa | null;
688
+ GetECDiffieHellmanPrivateKey(): ECDiffieHellman | null;
689
+ GetECDiffieHellmanPublicKey(): ECDiffieHellman | null;
690
+ GetMLDsaPrivateKey(): MLDsa | null;
691
+ GetMLDsaPublicKey(): MLDsa | null;
692
+ GetMLKemPrivateKey(): MLKem | null;
693
+ GetMLKemPublicKey(): MLKem | null;
696
694
  GetNameInfo(nameType: X509NameType, forIssuer: boolean): string;
697
- GetSlhDsaPrivateKey(): SlhDsa | undefined;
698
- GetSlhDsaPublicKey(): SlhDsa | undefined;
695
+ GetSlhDsaPrivateKey(): SlhDsa | null;
696
+ GetSlhDsaPublicKey(): SlhDsa | null;
699
697
  Import(rawData: byte[]): void;
700
- Import(rawData: byte[], password: string, keyStorageFlags: X509KeyStorageFlags): void;
701
- Import(rawData: byte[], password: SecureString, keyStorageFlags: X509KeyStorageFlags): void;
698
+ Import(rawData: byte[], password: string | null, keyStorageFlags: X509KeyStorageFlags): void;
699
+ Import(rawData: byte[], password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): void;
702
700
  Import(fileName: string): void;
703
- Import(fileName: string, password: string, keyStorageFlags: X509KeyStorageFlags): void;
704
- Import(fileName: string, password: SecureString, keyStorageFlags: X509KeyStorageFlags): void;
701
+ Import(fileName: string, password: string | null, keyStorageFlags: X509KeyStorageFlags): void;
702
+ Import(fileName: string, password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): void;
705
703
  MatchesHostname(hostname: string, allowWildcards?: boolean, allowCommonName?: boolean): boolean;
706
704
  Reset(): void;
707
705
  ToString(): string;
@@ -714,25 +712,25 @@ export interface X509Certificate2$instance extends X509Certificate$instance, Sys
714
712
  export const X509Certificate2: {
715
713
  new(): X509Certificate2;
716
714
  new(rawData: byte[]): X509Certificate2;
717
- new(rawData: byte[], password: string): X509Certificate2;
718
- new(rawData: byte[], password: SecureString): X509Certificate2;
719
- new(rawData: byte[], password: string, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
720
- new(rawData: byte[], password: SecureString, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
715
+ new(rawData: byte[], password: string | null): X509Certificate2;
716
+ new(rawData: byte[], password: SecureString | null): X509Certificate2;
717
+ new(rawData: byte[], password: string | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
718
+ new(rawData: byte[], password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
721
719
  new(rawData: ReadOnlySpan_1<System_Internal.Byte>): X509Certificate2;
722
720
  new(rawData: ReadOnlySpan_1<System_Internal.Byte>, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
723
721
  new(handle: nint): X509Certificate2;
724
722
  new(fileName: string): X509Certificate2;
725
- new(fileName: string, password: string): X509Certificate2;
726
- new(fileName: string, password: SecureString): X509Certificate2;
727
- new(fileName: string, password: string, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
728
- new(fileName: string, password: SecureString, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
723
+ new(fileName: string, password: string | null): X509Certificate2;
724
+ new(fileName: string, password: SecureString | null): X509Certificate2;
725
+ new(fileName: string, password: string | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
726
+ new(fileName: string, password: SecureString | null, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
729
727
  new(fileName: string, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags: X509KeyStorageFlags): X509Certificate2;
730
728
  new(certificate: X509Certificate): X509Certificate2;
731
729
  CreateFromEncryptedPem(certPem: ReadOnlySpan_1<System_Internal.Char>, keyPem: ReadOnlySpan_1<System_Internal.Char>, password: ReadOnlySpan_1<System_Internal.Char>): X509Certificate2;
732
- CreateFromEncryptedPemFile(certPemFilePath: string, password: ReadOnlySpan_1<System_Internal.Char>, keyPemFilePath?: string): X509Certificate2;
730
+ CreateFromEncryptedPemFile(certPemFilePath: string, password: ReadOnlySpan_1<System_Internal.Char>, keyPemFilePath?: string | null): X509Certificate2;
733
731
  CreateFromPem(certPem: ReadOnlySpan_1<System_Internal.Char>, keyPem: ReadOnlySpan_1<System_Internal.Char>): X509Certificate2;
734
732
  CreateFromPem(certPem: ReadOnlySpan_1<System_Internal.Char>): X509Certificate2;
735
- CreateFromPemFile(certPemFilePath: string, keyPemFilePath?: string): X509Certificate2;
733
+ CreateFromPemFile(certPemFilePath: string, keyPemFilePath?: string | null): X509Certificate2;
736
734
  GetCertContentType(rawData: byte[]): X509ContentType;
737
735
  GetCertContentType(rawData: ReadOnlySpan_1<System_Internal.Byte>): X509ContentType;
738
736
  GetCertContentType(fileName: string): X509ContentType;
@@ -764,11 +762,11 @@ export interface X509Certificate2Collection$instance extends X509CertificateColl
764
762
  AddRange(value: X509CertificateCollection): void;
765
763
  Contains(certificate: X509Certificate2): boolean;
766
764
  Contains(value: X509Certificate): boolean;
767
- Export(contentType: X509ContentType): byte[] | undefined;
768
- Export(contentType: X509ContentType, password: string): byte[] | undefined;
765
+ Export(contentType: X509ContentType): byte[] | null;
766
+ Export(contentType: X509ContentType, password: string | null): byte[] | null;
769
767
  ExportCertificatePems(): string;
770
- ExportPkcs12(exportParameters: Pkcs12ExportPbeParameters, password: string): byte[];
771
- ExportPkcs12(exportParameters: PbeParameters, password: string): byte[];
768
+ ExportPkcs12(exportParameters: Pkcs12ExportPbeParameters, password: string | null): byte[];
769
+ ExportPkcs12(exportParameters: PbeParameters, password: string | null): byte[];
772
770
  ExportPkcs7Pem(): string;
773
771
  Find(findType: X509FindType, findValue: unknown, validOnly: boolean): X509Certificate2Collection;
774
772
  FindByThumbprint(hashAlgorithm: HashAlgorithmName, thumbprintHex: string): X509Certificate2Collection;
@@ -779,11 +777,11 @@ export interface X509Certificate2Collection$instance extends X509CertificateColl
779
777
  GetEnumerator(): IEnumerator;
780
778
  Import(rawData: byte[]): void;
781
779
  Import(rawData: ReadOnlySpan_1<System_Internal.Byte>): void;
782
- Import(rawData: byte[], password: string, keyStorageFlags?: X509KeyStorageFlags): void;
783
- Import(rawData: ReadOnlySpan_1<System_Internal.Byte>, password: string, keyStorageFlags?: X509KeyStorageFlags): void;
780
+ Import(rawData: byte[], password: string | null, keyStorageFlags?: X509KeyStorageFlags): void;
781
+ Import(rawData: ReadOnlySpan_1<System_Internal.Byte>, password: string | null, keyStorageFlags?: X509KeyStorageFlags): void;
784
782
  Import(rawData: ReadOnlySpan_1<System_Internal.Byte>, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags): void;
785
783
  Import(fileName: string): void;
786
- Import(fileName: string, password: string, keyStorageFlags?: X509KeyStorageFlags): void;
784
+ Import(fileName: string, password: string | null, keyStorageFlags?: X509KeyStorageFlags): void;
787
785
  Import(fileName: string, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags): void;
788
786
  ImportFromPem(certPem: ReadOnlySpan_1<System_Internal.Char>): void;
789
787
  ImportFromPemFile(certPemFilePath: string): void;
@@ -816,7 +814,7 @@ export interface __X509Certificate2Collection$views {
816
814
  export type X509Certificate2Collection = X509Certificate2Collection$instance & __X509Certificate2Collection$views & { [index: number]: X509Certificate2; };
817
815
 
818
816
 
819
- export interface X509Certificate2Enumerator$instance {
817
+ export interface X509Certificate2Enumerator$instance extends System_Collections_Generic_Internal.IEnumerator_1$instance<X509Certificate2> {
820
818
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_X509Certificate2Enumerator: never;
821
819
 
822
820
  readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
@@ -896,12 +894,7 @@ export const X509CertificateCollection_X509CertificateEnumerator: {
896
894
  };
897
895
 
898
896
 
899
- export interface __X509CertificateCollection_X509CertificateEnumerator$views {
900
- As_IEnumerator(): System_Collections_Internal.IEnumerator$instance;
901
- }
902
-
903
- export type X509CertificateCollection_X509CertificateEnumerator = X509CertificateCollection_X509CertificateEnumerator$instance & __X509CertificateCollection_X509CertificateEnumerator$views;
904
-
897
+ export type X509CertificateCollection_X509CertificateEnumerator = X509CertificateCollection_X509CertificateEnumerator$instance;
905
898
 
906
899
  export interface X509Chain$instance {
907
900
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_X509Chain: never;
@@ -912,7 +905,7 @@ export interface X509Chain$instance {
912
905
  readonly ChainElements: X509ChainElementCollection;
913
906
  ChainPolicy: X509ChainPolicy;
914
907
  readonly ChainStatus: X509ChainStatus[];
915
- readonly SafeHandle: SafeX509ChainHandle | undefined;
908
+ readonly SafeHandle: SafeX509ChainHandle | null;
916
909
  Build(certificate: X509Certificate2): boolean;
917
910
  Dispose(): void;
918
911
  Dispose(disposing: boolean): void;
@@ -978,7 +971,7 @@ export interface __X509ChainElementCollection$views {
978
971
  export type X509ChainElementCollection = X509ChainElementCollection$instance & __X509ChainElementCollection$views & { readonly [index: number]: X509ChainElement; };
979
972
 
980
973
 
981
- export interface X509ChainElementEnumerator$instance {
974
+ export interface X509ChainElementEnumerator$instance extends System_Collections_Generic_Internal.IEnumerator_1$instance<X509ChainElement> {
982
975
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_X509ChainElementEnumerator: never;
983
976
 
984
977
  readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
@@ -1080,7 +1073,7 @@ export interface X509ExtensionCollection$instance {
1080
1073
  Add(extension: X509Extension): int;
1081
1074
  CopyTo(array: X509Extension[], index: int): void;
1082
1075
  get_Item(index: int): X509Extension;
1083
- get_Item(oid: string): X509Extension | undefined;
1076
+ get_Item(oid: string): X509Extension | null;
1084
1077
  GetEnumerator(): X509ExtensionEnumerator;
1085
1078
  }
1086
1079
 
@@ -1099,7 +1092,7 @@ export interface __X509ExtensionCollection$views {
1099
1092
  export type X509ExtensionCollection = X509ExtensionCollection$instance & __X509ExtensionCollection$views;
1100
1093
 
1101
1094
 
1102
- export interface X509ExtensionEnumerator$instance {
1095
+ export interface X509ExtensionEnumerator$instance extends System_Collections_Generic_Internal.IEnumerator_1$instance<X509Extension> {
1103
1096
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_X509ExtensionEnumerator: never;
1104
1097
 
1105
1098
  readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
@@ -1171,7 +1164,7 @@ export interface X509Store$instance extends System_Internal.IDisposable$instance
1171
1164
  readonly Certificates: X509Certificate2Collection;
1172
1165
  readonly IsOpen: boolean;
1173
1166
  readonly Location: StoreLocation;
1174
- readonly Name: string | undefined;
1167
+ readonly Name: string | null;
1175
1168
  readonly StoreHandle: nint;
1176
1169
  Add(certificate: X509Certificate2): void;
1177
1170
  AddRange(certificates: X509Certificate2Collection): void;
@@ -1224,7 +1217,7 @@ export type X509SubjectAlternativeNameExtension = X509SubjectAlternativeNameExte
1224
1217
  export interface X509SubjectKeyIdentifierExtension$instance extends X509Extension {
1225
1218
  readonly __tsonic_type_System_Security_Cryptography_X509Certificates_X509SubjectKeyIdentifierExtension: never;
1226
1219
 
1227
- readonly SubjectKeyIdentifier: string | undefined;
1220
+ readonly SubjectKeyIdentifier: string | null;
1228
1221
  readonly SubjectKeyIdentifierBytes: ReadOnlyMemory_1<System_Internal.Byte>;
1229
1222
  CopyFrom(asnEncodedData: AsnEncodedData): void;
1230
1223
  }
@@ -1245,8 +1238,8 @@ export type X509SubjectKeyIdentifierExtension = X509SubjectKeyIdentifierExtensio
1245
1238
 
1246
1239
  export abstract class DSACertificateExtensions$instance {
1247
1240
  static CopyWithPrivateKey(certificate: X509Certificate2, privateKey: DSA): X509Certificate2;
1248
- static GetDSAPrivateKey(certificate: X509Certificate2): DSA | undefined;
1249
- static GetDSAPublicKey(certificate: X509Certificate2): DSA | undefined;
1241
+ static GetDSAPrivateKey(certificate: X509Certificate2): DSA | null;
1242
+ static GetDSAPublicKey(certificate: X509Certificate2): DSA | null;
1250
1243
  }
1251
1244
 
1252
1245
 
@@ -1254,8 +1247,8 @@ export type DSACertificateExtensions = DSACertificateExtensions$instance;
1254
1247
 
1255
1248
  export abstract class ECDsaCertificateExtensions$instance {
1256
1249
  static CopyWithPrivateKey(certificate: X509Certificate2, privateKey: ECDsa): X509Certificate2;
1257
- static GetECDsaPrivateKey(certificate: X509Certificate2): ECDsa | undefined;
1258
- static GetECDsaPublicKey(certificate: X509Certificate2): ECDsa | undefined;
1250
+ static GetECDsaPrivateKey(certificate: X509Certificate2): ECDsa | null;
1251
+ static GetECDsaPublicKey(certificate: X509Certificate2): ECDsa | null;
1259
1252
  }
1260
1253
 
1261
1254
 
@@ -1263,8 +1256,8 @@ export type ECDsaCertificateExtensions = ECDsaCertificateExtensions$instance;
1263
1256
 
1264
1257
  export abstract class RSACertificateExtensions$instance {
1265
1258
  static CopyWithPrivateKey(certificate: X509Certificate2, privateKey: RSA): X509Certificate2;
1266
- static GetRSAPrivateKey(certificate: X509Certificate2): RSA | undefined;
1267
- static GetRSAPublicKey(certificate: X509Certificate2): RSA | undefined;
1259
+ static GetRSAPrivateKey(certificate: X509Certificate2): RSA | null;
1260
+ static GetRSAPublicKey(certificate: X509Certificate2): RSA | null;
1268
1261
  }
1269
1262
 
1270
1263
 
@@ -1274,14 +1267,14 @@ export abstract class X509CertificateLoader$instance {
1274
1267
  static LoadCertificate(data: byte[]): X509Certificate2;
1275
1268
  static LoadCertificate(data: ReadOnlySpan_1<System_Internal.Byte>): X509Certificate2;
1276
1269
  static LoadCertificateFromFile(path: string): X509Certificate2;
1277
- static LoadPkcs12(data: byte[], password: string, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2;
1278
- static LoadPkcs12(data: ReadOnlySpan_1<System_Internal.Byte>, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2;
1279
- static LoadPkcs12Collection(data: byte[], password: string, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2Collection;
1280
- static LoadPkcs12Collection(data: ReadOnlySpan_1<System_Internal.Byte>, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2Collection;
1281
- static LoadPkcs12CollectionFromFile(path: string, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2Collection;
1282
- static LoadPkcs12CollectionFromFile(path: string, password: string, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2Collection;
1283
- static LoadPkcs12FromFile(path: string, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2;
1284
- static LoadPkcs12FromFile(path: string, password: string, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits): X509Certificate2;
1270
+ static LoadPkcs12(data: byte[], password: string | null, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2;
1271
+ static LoadPkcs12(data: ReadOnlySpan_1<System_Internal.Byte>, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2;
1272
+ static LoadPkcs12Collection(data: byte[], password: string | null, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2Collection;
1273
+ static LoadPkcs12Collection(data: ReadOnlySpan_1<System_Internal.Byte>, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2Collection;
1274
+ static LoadPkcs12CollectionFromFile(path: string, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2Collection;
1275
+ static LoadPkcs12CollectionFromFile(path: string, password: string | null, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2Collection;
1276
+ static LoadPkcs12FromFile(path: string, password: ReadOnlySpan_1<System_Internal.Char>, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2;
1277
+ static LoadPkcs12FromFile(path: string, password: string | null, keyStorageFlags?: X509KeyStorageFlags, loaderLimits?: Pkcs12LoaderLimits | null): X509Certificate2;
1285
1278
  }
1286
1279
 
1287
1280
 
@@ -5,6 +5,10 @@
5
5
  // Import internal declarations
6
6
  import * as Internal from './System.Security.Cryptography.X509Certificates/internal/index.js';
7
7
 
8
+ // Core type aliases from @tsonic/core
9
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
10
+
11
+
8
12
  // Cross-namespace type imports for constraints
9
13
  import type { SafeX509ChainHandle } from './Microsoft.Win32.SafeHandles/internal/index.js';
10
14
  import type { IEnumerable_1, IEnumerator_1 } from './System.Collections.Generic/internal/index.js';
@@ -5,6 +5,10 @@
5
5
  // Import internal declarations
6
6
  import * as Internal from './System.Security.Cryptography/internal/index.js';
7
7
 
8
+ // Core type aliases from @tsonic/core
9
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
10
+
11
+
8
12
  // Cross-namespace type imports for constraints
9
13
  import type { SafeNCryptKeyHandle, SafeNCryptProviderHandle, SafeNCryptSecretHandle } from './Microsoft.Win32.SafeHandles/internal/index.js';
10
14
  import type { ICollection_1, IEnumerable_1, IEnumerator_1, IList_1, IReadOnlyCollection_1, IReadOnlyList_1 } from './System.Collections.Generic/internal/index.js';
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Security.Permissions
3
3
  // Assembly: System.Private.CoreLib
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import type { IPermission } from "../../System.Security/internal/index.js";
@@ -66,7 +67,7 @@ export interface SecurityAttribute$instance extends Attribute {
66
67
 
67
68
  Action: SecurityAction;
68
69
  Unrestricted: boolean;
69
- CreatePermission(): IPermission | undefined;
70
+ CreatePermission(): IPermission | null;
70
71
  }
71
72
 
72
73
 
@@ -94,7 +95,7 @@ export interface SecurityPermissionAttribute$instance extends CodeAccessSecurity
94
95
  SerializationFormatter: boolean;
95
96
  SkipVerification: boolean;
96
97
  UnmanagedCode: boolean;
97
- CreatePermission(): IPermission | undefined;
98
+ CreatePermission(): IPermission | null;
98
99
  }
99
100
 
100
101
 
@@ -5,6 +5,10 @@
5
5
  // Import internal declarations
6
6
  import * as Internal from './System.Security.Permissions/internal/index.js';
7
7
 
8
+ // Core type aliases from @tsonic/core
9
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
10
+
11
+
8
12
  // Cross-namespace type imports for constraints
9
13
  import type { IPermission } from './System.Security/internal/index.js';
10
14
  import type { Attribute, Boolean as ClrBoolean, Enum, IComparable, IConvertible, IFormatProvider, IFormattable, Int32, ISpanFormattable, Object as ClrObject, String as ClrString, Type, TypeCode, Void } from './System/internal/index.js';
@@ -313,7 +313,7 @@
313
313
  {
314
314
  "stableId": "System.Private.CoreLib:System.Collections.ICollection::CopyTo(System.Array,System.Int32):System.Void",
315
315
  "clrName": "CopyTo",
316
- "metadataToken": 100703826,
316
+ "metadataToken": 100703831,
317
317
  "canonicalSignature": "(System.Array,System.Int32):System.Void",
318
318
  "normalizedSignature": "CopyTo|(System.Array,System.Int32):System.Void|static=false",
319
319
  "emitScope": "ViewOnly",
@@ -334,7 +334,7 @@
334
334
  {
335
335
  "stableId": "System.Private.CoreLib:System.Collections.IEnumerable::GetEnumerator():System.Collections.IEnumerator",
336
336
  "clrName": "GetEnumerator",
337
- "metadataToken": 100703845,
337
+ "metadataToken": 100703850,
338
338
  "canonicalSignature": "():System.Collections.IEnumerator",
339
339
  "normalizedSignature": "GetEnumerator|():System.Collections.IEnumerator|static=false",
340
340
  "emitScope": "ViewOnly",
@@ -452,7 +452,7 @@
452
452
  {
453
453
  "stableId": "System.Private.CoreLib:System.Collections.ICollection::Count:System.Int32",
454
454
  "clrName": "Count",
455
- "metadataToken": 385881256,
455
+ "metadataToken": 385881258,
456
456
  "canonicalSignature": ":System.Int32",
457
457
  "normalizedSignature": "Count|:System.Int32|static=false|accessor=get",
458
458
  "emitScope": "ViewOnly",
@@ -472,7 +472,7 @@
472
472
  {
473
473
  "stableId": "System.Private.CoreLib:System.Collections.ICollection::SyncRoot:System.Object",
474
474
  "clrName": "SyncRoot",
475
- "metadataToken": 385881257,
475
+ "metadataToken": 385881259,
476
476
  "canonicalSignature": ":System.Object",
477
477
  "normalizedSignature": "SyncRoot|:System.Object|static=false|accessor=get",
478
478
  "emitScope": "ViewOnly",
@@ -492,7 +492,7 @@
492
492
  {
493
493
  "stableId": "System.Private.CoreLib:System.Collections.ICollection::IsSynchronized:System.Boolean",
494
494
  "clrName": "IsSynchronized",
495
- "metadataToken": 385881258,
495
+ "metadataToken": 385881260,
496
496
  "canonicalSignature": ":System.Boolean",
497
497
  "normalizedSignature": "IsSynchronized|:System.Boolean|static=false|accessor=get",
498
498
  "emitScope": "ViewOnly",
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Security.Policy
3
3
  // Assembly: System.Security.AccessControl
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as System_Collections_Internal from "../../System.Collections/internal/index.js";
@@ -23,17 +24,17 @@ export interface Evidence$instance {
23
24
  Locked: boolean;
24
25
  readonly SyncRoot: unknown;
25
26
  AddAssembly(id: unknown): void;
26
- AddAssemblyEvidence<T extends EvidenceBase>(evidence: T): void;
27
+ AddAssemblyEvidence<T extends unknown & EvidenceBase>(evidence: T): void;
27
28
  AddHost(id: unknown): void;
28
- AddHostEvidence<T extends EvidenceBase>(evidence: T): void;
29
+ AddHostEvidence<T extends unknown & EvidenceBase>(evidence: T): void;
29
30
  Clear(): void;
30
- Clone(): Evidence | undefined;
31
+ Clone(): Evidence | null;
31
32
  CopyTo(array: ClrArray, index: int): void;
32
33
  GetAssemblyEnumerator(): IEnumerator;
33
- GetAssemblyEvidence<T extends EvidenceBase>(): T | undefined;
34
+ GetAssemblyEvidence<T extends unknown & EvidenceBase>(): T | null;
34
35
  GetEnumerator(): IEnumerator;
35
36
  GetHostEnumerator(): IEnumerator;
36
- GetHostEvidence<T extends EvidenceBase>(): T | undefined;
37
+ GetHostEvidence<T extends unknown & EvidenceBase>(): T | null;
37
38
  Merge(evidence: Evidence): void;
38
39
  RemoveType(t: Type): void;
39
40
  }
@@ -58,7 +59,7 @@ export type Evidence = Evidence$instance & __Evidence$views;
58
59
  export interface EvidenceBase$instance {
59
60
  readonly __tsonic_type_System_Security_Policy_EvidenceBase: never;
60
61
 
61
- Clone(): EvidenceBase | undefined;
62
+ Clone(): EvidenceBase | null;
62
63
  }
63
64
 
64
65
 
@@ -5,6 +5,10 @@
5
5
  // Import internal declarations
6
6
  import * as Internal from './System.Security.Policy/internal/index.js';
7
7
 
8
+ // Core type aliases from @tsonic/core
9
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
10
+
11
+
8
12
  // Cross-namespace type imports for constraints
9
13
  import type { ICollection, IEnumerable, IEnumerator } from './System.Collections/internal/index.js';
10
14
  import type { Array as ClrArray, Boolean as ClrBoolean, Int32, Object as ClrObject, String as ClrString, Type, Void } from './System/internal/index.js';