@ts-for-gir/lib 3.2.9 → 4.0.0-beta.1

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 (310) hide show
  1. package/README.md +0 -1
  2. package/lib/conflict-resolver.d.ts +2 -39
  3. package/lib/conflict-resolver.js +4 -228
  4. package/lib/conflict-resolver.js.map +1 -1
  5. package/lib/constants.d.ts +3 -7
  6. package/lib/constants.js +6 -16
  7. package/lib/constants.js.map +1 -1
  8. package/lib/dependency-manager.d.ts +3 -5
  9. package/lib/dependency-manager.js +10 -17
  10. package/lib/dependency-manager.js.map +1 -1
  11. package/lib/formatters/default.d.ts +4 -0
  12. package/lib/formatters/default.js +7 -0
  13. package/lib/formatters/default.js.map +1 -0
  14. package/lib/formatters/formatter.d.ts +3 -0
  15. package/lib/formatters/formatter.js +3 -0
  16. package/lib/formatters/formatter.js.map +1 -0
  17. package/lib/formatters/json.d.ts +4 -0
  18. package/lib/formatters/json.js +7 -0
  19. package/lib/formatters/json.js.map +1 -0
  20. package/lib/generators/dts/gio.d.ts +2 -0
  21. package/lib/generators/dts/gio.js +9 -0
  22. package/lib/generators/dts/gio.js.map +1 -0
  23. package/lib/generators/dts/glib.d.ts +2 -0
  24. package/lib/generators/dts/glib.js +514 -0
  25. package/lib/generators/dts/glib.js.map +1 -0
  26. package/lib/generators/dts/gobject.d.ts +2 -0
  27. package/lib/generators/dts/gobject.js +117 -0
  28. package/lib/generators/dts/gobject.js.map +1 -0
  29. package/lib/generators/dts-inline.d.ts +8 -0
  30. package/lib/generators/dts-inline.js +59 -0
  31. package/lib/generators/dts-inline.js.map +1 -0
  32. package/lib/generators/dts-modules.d.ts +8 -0
  33. package/lib/generators/dts-modules.js +100 -0
  34. package/lib/generators/dts-modules.js.map +1 -0
  35. package/lib/generators/dts.d.ts +45 -0
  36. package/lib/generators/dts.js +682 -0
  37. package/lib/generators/dts.js.map +1 -0
  38. package/lib/generators/generator.d.ts +45 -0
  39. package/lib/generators/generator.js +9 -0
  40. package/lib/generators/generator.js.map +1 -0
  41. package/lib/generators/index.d.ts +5 -0
  42. package/lib/generators/index.js +6 -0
  43. package/lib/generators/index.js.map +1 -0
  44. package/lib/generators/json.d.ts +256 -0
  45. package/lib/generators/json.js +869 -0
  46. package/lib/generators/json.js.map +1 -0
  47. package/lib/generics/clutter.d.ts +26 -0
  48. package/lib/generics/clutter.js +49 -0
  49. package/lib/generics/clutter.js.map +1 -0
  50. package/lib/generics/generify.d.ts +2 -0
  51. package/lib/generics/generify.js +39 -0
  52. package/lib/generics/generify.js.map +1 -0
  53. package/lib/generics/gio.d.ts +7 -0
  54. package/lib/generics/gio.js +51 -0
  55. package/lib/generics/gio.js.map +1 -0
  56. package/lib/generics/glib.d.ts +7 -0
  57. package/lib/generics/glib.js +18 -0
  58. package/lib/generics/glib.js.map +1 -0
  59. package/lib/generics/meta.d.ts +21 -0
  60. package/lib/generics/meta.js +26 -0
  61. package/lib/generics/meta.js.map +1 -0
  62. package/lib/generics/st.d.ts +16 -0
  63. package/lib/generics/st.js +92 -0
  64. package/lib/generics/st.js.map +1 -0
  65. package/lib/generics/visitor.d.ts +20 -0
  66. package/lib/generics/visitor.js +259 -0
  67. package/lib/generics/visitor.js.map +1 -0
  68. package/lib/gir/alias.d.ts +24 -0
  69. package/lib/gir/alias.js +43 -0
  70. package/lib/gir/alias.js.map +1 -0
  71. package/lib/gir/base.d.ts +62 -0
  72. package/lib/gir/base.js +95 -0
  73. package/lib/gir/base.js.map +1 -0
  74. package/lib/gir/class.d.ts +189 -0
  75. package/lib/gir/class.js +1132 -0
  76. package/lib/gir/class.js.map +1 -0
  77. package/lib/gir/const.d.ts +25 -0
  78. package/lib/gir/const.js +43 -0
  79. package/lib/gir/const.js.map +1 -0
  80. package/lib/gir/enum.d.ts +45 -0
  81. package/lib/gir/enum.js +164 -0
  82. package/lib/gir/enum.js.map +1 -0
  83. package/lib/gir/function.d.ts +199 -0
  84. package/lib/gir/function.js +683 -0
  85. package/lib/gir/function.js.map +1 -0
  86. package/lib/gir/generics.d.ts +5 -0
  87. package/lib/gir/generics.js +57 -0
  88. package/lib/gir/generics.js.map +1 -0
  89. package/lib/gir/namespace.d.ts +21 -0
  90. package/lib/gir/namespace.js +57 -0
  91. package/lib/gir/namespace.js.map +1 -0
  92. package/lib/gir/nodes.d.ts +11 -0
  93. package/lib/gir/nodes.js +12 -0
  94. package/lib/gir/nodes.js.map +1 -0
  95. package/lib/gir/property.d.ts +60 -0
  96. package/lib/gir/property.js +128 -0
  97. package/lib/gir/property.js.map +1 -0
  98. package/lib/gir/registry.d.ts +51 -0
  99. package/lib/gir/registry.js +144 -0
  100. package/lib/gir/registry.js.map +1 -0
  101. package/lib/gir/signal.d.ts +33 -0
  102. package/lib/gir/signal.js +165 -0
  103. package/lib/gir/signal.js.map +1 -0
  104. package/lib/gir/util.d.ts +49 -0
  105. package/lib/gir/util.js +556 -0
  106. package/lib/gir/util.js.map +1 -0
  107. package/lib/gir-factory.d.ts +2 -2
  108. package/lib/gir-factory.js +8 -44
  109. package/lib/gir-factory.js.map +1 -1
  110. package/lib/gir-module.d.ts +61 -221
  111. package/lib/gir-module.js +382 -2095
  112. package/lib/gir-module.js.map +1 -1
  113. package/lib/gir.d.ts +251 -0
  114. package/lib/gir.js +638 -0
  115. package/lib/gir.js.map +1 -0
  116. package/lib/index.d.ts +5 -3
  117. package/lib/index.js +7 -3
  118. package/lib/index.js.map +1 -1
  119. package/lib/injection/callbacks/index.d.ts +0 -1
  120. package/lib/injection/callbacks/index.js +0 -1
  121. package/lib/injection/callbacks/index.js.map +1 -1
  122. package/lib/injection/classes/index.d.ts +0 -1
  123. package/lib/injection/classes/index.js +0 -1
  124. package/lib/injection/classes/index.js.map +1 -1
  125. package/lib/injection/injector.d.ts +2 -3
  126. package/lib/injection/injector.js +6 -8
  127. package/lib/injection/injector.js.map +1 -1
  128. package/lib/injections/gee08.d.ts +7 -0
  129. package/lib/injections/gee08.js +68 -0
  130. package/lib/injections/gee08.js.map +1 -0
  131. package/lib/injections/gee1.d.ts +7 -0
  132. package/lib/injections/gee1.js +28 -0
  133. package/lib/injections/gee1.js.map +1 -0
  134. package/lib/injections/gio.d.ts +7 -0
  135. package/lib/injections/gio.js +431 -0
  136. package/lib/injections/gio.js.map +1 -0
  137. package/lib/injections/glib.d.ts +7 -0
  138. package/lib/injections/glib.js +204 -0
  139. package/lib/injections/glib.js.map +1 -0
  140. package/lib/injections/gobject.d.ts +7 -0
  141. package/lib/injections/gobject.js +479 -0
  142. package/lib/injections/gobject.js.map +1 -0
  143. package/lib/injections/inject.d.ts +4 -0
  144. package/lib/injections/inject.js +28 -0
  145. package/lib/injections/inject.js.map +1 -0
  146. package/lib/injections/tracker1.d.ts +7 -0
  147. package/lib/injections/tracker1.js +30 -0
  148. package/lib/injections/tracker1.js.map +1 -0
  149. package/lib/library-version.js.map +1 -1
  150. package/lib/logger.d.ts +1 -3
  151. package/lib/logger.js +3 -8
  152. package/lib/logger.js.map +1 -1
  153. package/lib/messages.d.ts +1 -4
  154. package/lib/messages.js +1 -3
  155. package/lib/messages.js.map +1 -1
  156. package/lib/registry.d.ts +9 -0
  157. package/lib/registry.js +13 -0
  158. package/lib/registry.js.map +1 -0
  159. package/lib/symtable.js +1 -1
  160. package/lib/symtable.js.map +1 -1
  161. package/lib/transformation.d.ts +4 -5
  162. package/lib/transformation.js +31 -127
  163. package/lib/transformation.js.map +1 -1
  164. package/lib/types/generate-config.d.ts +4 -11
  165. package/lib/types/gir-alias-element.d.ts +3 -12
  166. package/lib/types/gir-bitfield-element.d.ts +3 -14
  167. package/lib/types/gir-callable-param-element.d.ts +3 -31
  168. package/lib/types/gir-callable-params.d.ts +7 -0
  169. package/lib/types/gir-callable-params.js +2 -0
  170. package/lib/types/gir-callable-params.js.map +1 -0
  171. package/lib/types/gir-callable-return.d.ts +3 -20
  172. package/lib/types/gir-callback-element.d.ts +3 -12
  173. package/lib/types/gir-class-element.d.ts +3 -34
  174. package/lib/types/gir-constant-element.d.ts +3 -14
  175. package/lib/types/gir-constructor-element.d.ts +3 -5
  176. package/lib/types/gir-enum-element.d.ts +3 -16
  177. package/lib/types/gir-field-element.d.ts +3 -16
  178. package/lib/types/gir-function-element.d.ts +3 -5
  179. package/lib/types/gir-instance-parameter.d.ts +2 -17
  180. package/lib/types/gir-interface-element.d.ts +4 -19
  181. package/lib/types/gir-member-element.d.ts +4 -16
  182. package/lib/types/gir-method-element.d.ts +4 -10
  183. package/lib/types/gir-namespace.d.ts +14 -17
  184. package/lib/types/gir-property-element.d.ts +3 -22
  185. package/lib/types/gir-record-element.d.ts +3 -23
  186. package/lib/types/gir-repository.d.ts +3 -14
  187. package/lib/types/gir-signal.d.ts +3 -18
  188. package/lib/types/gir-union-element.d.ts +3 -16
  189. package/lib/types/gir-virtual-method.d.ts +3 -7
  190. package/lib/types/index.d.ts +3 -54
  191. package/lib/types/index.js +3 -54
  192. package/lib/types/index.js.map +1 -1
  193. package/lib/types/parsed-gir.d.ts +3 -2
  194. package/lib/types/transformations.d.ts +1 -8
  195. package/lib/types/user-config.d.ts +0 -11
  196. package/lib/types.d.ts +23 -0
  197. package/lib/types.js +2 -0
  198. package/lib/types.js.map +1 -0
  199. package/lib/util.d.ts +20 -0
  200. package/lib/util.js +67 -0
  201. package/lib/util.js.map +1 -0
  202. package/lib/utils.d.ts +2 -30
  203. package/lib/utils.js +0 -56
  204. package/lib/utils.js.map +1 -1
  205. package/lib/validators/class.d.ts +7 -0
  206. package/lib/validators/class.js +217 -0
  207. package/lib/validators/class.js.map +1 -0
  208. package/lib/validators/interface.d.ts +5 -0
  209. package/lib/validators/interface.js +16 -0
  210. package/lib/validators/interface.js.map +1 -0
  211. package/lib/visitor.d.ts +35 -0
  212. package/lib/visitor.js +29 -0
  213. package/lib/visitor.js.map +1 -0
  214. package/package.json +15 -11
  215. package/lib/injection/callbacks/node-gtk/index.d.ts +0 -2
  216. package/lib/injection/callbacks/node-gtk/index.js +0 -2
  217. package/lib/injection/callbacks/node-gtk/index.js.map +0 -1
  218. package/lib/injection/classes/node-gtk/gdk-4.0.d.ts +0 -2
  219. package/lib/injection/classes/node-gtk/gdk-4.0.js +0 -32
  220. package/lib/injection/classes/node-gtk/gdk-4.0.js.map +0 -1
  221. package/lib/injection/classes/node-gtk/gio-2.0.d.ts +0 -2
  222. package/lib/injection/classes/node-gtk/gio-2.0.js +0 -14
  223. package/lib/injection/classes/node-gtk/gio-2.0.js.map +0 -1
  224. package/lib/injection/classes/node-gtk/glib-2.0.d.ts +0 -2
  225. package/lib/injection/classes/node-gtk/glib-2.0.js +0 -19
  226. package/lib/injection/classes/node-gtk/glib-2.0.js.map +0 -1
  227. package/lib/injection/classes/node-gtk/gobject-2.0.d.ts +0 -2
  228. package/lib/injection/classes/node-gtk/gobject-2.0.js +0 -66
  229. package/lib/injection/classes/node-gtk/gobject-2.0.js.map +0 -1
  230. package/lib/injection/classes/node-gtk/graphene-1.0.d.ts +0 -2
  231. package/lib/injection/classes/node-gtk/graphene-1.0.js +0 -133
  232. package/lib/injection/classes/node-gtk/graphene-1.0.js.map +0 -1
  233. package/lib/injection/classes/node-gtk/gtk-3.0.d.ts +0 -2
  234. package/lib/injection/classes/node-gtk/gtk-3.0.js +0 -31
  235. package/lib/injection/classes/node-gtk/gtk-3.0.js.map +0 -1
  236. package/lib/injection/classes/node-gtk/gtk-4.0.d.ts +0 -2
  237. package/lib/injection/classes/node-gtk/gtk-4.0.js +0 -52
  238. package/lib/injection/classes/node-gtk/gtk-4.0.js.map +0 -1
  239. package/lib/injection/classes/node-gtk/index.d.ts +0 -2
  240. package/lib/injection/classes/node-gtk/index.js +0 -19
  241. package/lib/injection/classes/node-gtk/index.js.map +0 -1
  242. package/lib/injection/classes/node-gtk/pango-1.0.d.ts +0 -2
  243. package/lib/injection/classes/node-gtk/pango-1.0.js +0 -31
  244. package/lib/injection/classes/node-gtk/pango-1.0.js.map +0 -1
  245. package/lib/types/build-type.d.ts +0 -1
  246. package/lib/types/build-type.js +0 -2
  247. package/lib/types/build-type.js.map +0 -1
  248. package/lib/types/environment.d.ts +0 -1
  249. package/lib/types/environment.js +0 -2
  250. package/lib/types/environment.js.map +0 -1
  251. package/lib/types/gir-any-type.d.ts +0 -5
  252. package/lib/types/gir-any-type.js +0 -2
  253. package/lib/types/gir-any-type.js.map +0 -1
  254. package/lib/types/gir-array-type.d.ts +0 -20
  255. package/lib/types/gir-array-type.js +0 -3
  256. package/lib/types/gir-array-type.js.map +0 -1
  257. package/lib/types/gir-boolean.d.ts +0 -1
  258. package/lib/types/gir-boolean.js +0 -2
  259. package/lib/types/gir-boolean.js.map +0 -1
  260. package/lib/types/gir-boxed-element.d.ts +0 -15
  261. package/lib/types/gir-boxed-element.js +0 -2
  262. package/lib/types/gir-boxed-element.js.map +0 -1
  263. package/lib/types/gir-c-include.d.ts +0 -7
  264. package/lib/types/gir-c-include.js +0 -2
  265. package/lib/types/gir-c-include.js.map +0 -1
  266. package/lib/types/gir-callable-attrs.d.ts +0 -15
  267. package/lib/types/gir-callable-attrs.js +0 -3
  268. package/lib/types/gir-callable-attrs.js.map +0 -1
  269. package/lib/types/gir-callable-param.d.ts +0 -7
  270. package/lib/types/gir-callable-param.js +0 -2
  271. package/lib/types/gir-callable-param.js.map +0 -1
  272. package/lib/types/gir-direction.d.ts +0 -7
  273. package/lib/types/gir-direction.js +0 -9
  274. package/lib/types/gir-direction.js.map +0 -1
  275. package/lib/types/gir-doc-element.d.ts +0 -68
  276. package/lib/types/gir-doc-element.js +0 -2
  277. package/lib/types/gir-doc-element.js.map +0 -1
  278. package/lib/types/gir-implements.d.ts +0 -8
  279. package/lib/types/gir-implements.js +0 -2
  280. package/lib/types/gir-implements.js.map +0 -1
  281. package/lib/types/gir-include.d.ts +0 -9
  282. package/lib/types/gir-include.js +0 -2
  283. package/lib/types/gir-include.js.map +0 -1
  284. package/lib/types/gir-info-attrs.d.ts +0 -13
  285. package/lib/types/gir-info-attrs.js +0 -2
  286. package/lib/types/gir-info-attrs.js.map +0 -1
  287. package/lib/types/gir-info-elements.d.ts +0 -5
  288. package/lib/types/gir-info-elements.js +0 -2
  289. package/lib/types/gir-info-elements.js.map +0 -1
  290. package/lib/types/gir-package.d.ts +0 -7
  291. package/lib/types/gir-package.js +0 -2
  292. package/lib/types/gir-package.js.map +0 -1
  293. package/lib/types/gir-prerequisite.d.ts +0 -5
  294. package/lib/types/gir-prerequisite.js +0 -2
  295. package/lib/types/gir-prerequisite.js.map +0 -1
  296. package/lib/types/gir-transfer-ownership-type.d.ts +0 -5
  297. package/lib/types/gir-transfer-ownership-type.js +0 -7
  298. package/lib/types/gir-transfer-ownership-type.js.map +0 -1
  299. package/lib/types/gir-transfer-ownership.d.ts +0 -9
  300. package/lib/types/gir-transfer-ownership.js +0 -2
  301. package/lib/types/gir-transfer-ownership.js.map +0 -1
  302. package/lib/types/gir-type.d.ts +0 -14
  303. package/lib/types/gir-type.js +0 -2
  304. package/lib/types/gir-type.js.map +0 -1
  305. package/lib/types/gir-var-args.d.ts +0 -5
  306. package/lib/types/gir-var-args.js +0 -2
  307. package/lib/types/gir-var-args.js.map +0 -1
  308. package/lib/types/module-type.d.ts +0 -1
  309. package/lib/types/module-type.js +0 -2
  310. package/lib/types/module-type.js.map +0 -1
@@ -0,0 +1,189 @@
1
+ import { TypeIdentifier, Generic } from "../gir.js";
2
+ import { TypeExpression } from "../gir.js";
3
+ import { IntrospectedBase, IntrospectedClassMember, IntrospectedNamespaceMember, Options } from "./base.js";
4
+ import { GirInterfaceElement, GirClassElement, GirRecordElement, GirUnionElement, ClassStructTypeIdentifier } from "../index.js";
5
+ import { IntrospectedClassFunction, IntrospectedVirtualClassFunction, IntrospectedStaticClassFunction, IntrospectedConstructor, IntrospectedDirectAllocationConstructor, IntrospectedClassCallback } from "./function.js";
6
+ import { IntrospectedProperty, IntrospectedField } from "./property.js";
7
+ import { IntrospectedNamespace } from "./namespace.js";
8
+ import { IntrospectedSignal } from "./signal.js";
9
+ import { FormatGenerator } from "../generators/generator.js";
10
+ import { LoadOptions } from "../types.js";
11
+ import { GirVisitor } from "../visitor.js";
12
+ export declare enum FilterBehavior {
13
+ DELETE = 0,
14
+ PRESERVE = 1
15
+ }
16
+ export declare function filterConflicts<T extends IntrospectedClassMember | IntrospectedClassFunction | IntrospectedProperty>(ns: IntrospectedNamespace, c: IntrospectedBaseClass, elements: T[], behavior?: FilterBehavior): T[];
17
+ export declare function filterFunctionConflict<T extends IntrospectedStaticClassFunction | IntrospectedVirtualClassFunction | IntrospectedClassFunction | IntrospectedConstructor>(ns: IntrospectedNamespace, base: IntrospectedBaseClass, elements: T[], conflict_ids: string[]): T[];
18
+ export declare function promisifyFunctions(functions: IntrospectedClassFunction[]): IntrospectedClassFunction<IntrospectedBaseClass | import("./enum.js").IntrospectedEnum>[];
19
+ export declare const enum ClassInjectionMember {
20
+ MEMBER = "member",
21
+ CONSTRUCTOR = "_constructor",
22
+ PROPERTY = "prop",
23
+ FIELD = "field",
24
+ MAIN_CONSTRUCTOR = "constructor"
25
+ }
26
+ export interface ClassDefinition {
27
+ superType: TypeIdentifier;
28
+ interfaces: TypeIdentifier[];
29
+ mainConstructor: IntrospectedConstructor;
30
+ constructors: IntrospectedConstructor[];
31
+ members: IntrospectedClassFunction[];
32
+ props: IntrospectedProperty[];
33
+ fields: IntrospectedField[];
34
+ callbacks: IntrospectedClassCallback[];
35
+ }
36
+ export interface ResolutionNode {
37
+ identifier: TypeIdentifier;
38
+ node: IntrospectedBaseClass;
39
+ }
40
+ export interface InterfaceResolution extends ResolutionNode, Iterable<InterfaceResolution | ClassResolution> {
41
+ extends(): InterfaceResolution | ClassResolution | undefined;
42
+ node: IntrospectedInterface;
43
+ }
44
+ export interface ClassResolution extends ResolutionNode, Iterable<ClassResolution> {
45
+ extends(): ClassResolution | undefined;
46
+ implements(): InterfaceResolution[];
47
+ node: IntrospectedClass;
48
+ }
49
+ export interface RecordResolution extends ResolutionNode, Iterable<RecordResolution> {
50
+ extends(): RecordResolution | undefined;
51
+ node: IntrospectedRecord;
52
+ }
53
+ export declare abstract class IntrospectedBaseClass extends IntrospectedNamespaceMember {
54
+ /**
55
+ * Used to add a TypeScript index signature to a class
56
+ *
57
+ * NOTE: This should probably be migrated into the TypeScript generator itself.
58
+ */
59
+ __ts__indexSignature?: string;
60
+ superType: TypeIdentifier | null;
61
+ mainConstructor: null | IntrospectedConstructor | IntrospectedDirectAllocationConstructor;
62
+ constructors: IntrospectedConstructor[];
63
+ members: IntrospectedClassFunction[];
64
+ props: IntrospectedProperty[];
65
+ fields: IntrospectedField[];
66
+ callbacks: IntrospectedClassCallback[];
67
+ generics: Generic[];
68
+ constructor(options: Options<{
69
+ name: string;
70
+ namespace: IntrospectedNamespace;
71
+ }> & Partial<ClassDefinition>);
72
+ abstract accept(visitor: GirVisitor): IntrospectedBaseClass;
73
+ abstract copy(options?: {
74
+ parent?: undefined;
75
+ constructors?: IntrospectedConstructor[];
76
+ members?: IntrospectedClassFunction[];
77
+ props?: IntrospectedProperty[];
78
+ fields?: IntrospectedField[];
79
+ callbacks?: IntrospectedClassCallback[];
80
+ }): IntrospectedBaseClass;
81
+ getGenericName: () => string;
82
+ abstract resolveParents(): RecordResolution | InterfaceResolution | ClassResolution;
83
+ abstract someParent(predicate: (b: IntrospectedBaseClass) => boolean): boolean;
84
+ abstract findParent(predicate: (b: IntrospectedBaseClass) => boolean): IntrospectedBaseClass | undefined;
85
+ abstract findParentMap<K>(predicate: (b: IntrospectedBaseClass) => K | undefined): K | undefined;
86
+ addGeneric(definition: {
87
+ deriveFrom?: TypeIdentifier;
88
+ default?: TypeExpression;
89
+ constraint?: TypeExpression;
90
+ propagate?: boolean;
91
+ }): void;
92
+ getType(): TypeIdentifier;
93
+ static fromXML(element: GirClassElement | GirInterfaceElement | GirRecordElement, ns: IntrospectedNamespace, options: LoadOptions): IntrospectedBaseClass;
94
+ abstract asString<T = string>(generator: FormatGenerator<T>): T;
95
+ }
96
+ type ClassMember = IntrospectedClassMember | IntrospectedClassFunction | IntrospectedProperty;
97
+ export declare class IntrospectedClass extends IntrospectedBaseClass {
98
+ signals: IntrospectedSignal[];
99
+ interfaces: TypeIdentifier[];
100
+ isAbstract: boolean;
101
+ mainConstructor: null | IntrospectedConstructor;
102
+ private _staticDefinition;
103
+ constructor(name: string, namespace: IntrospectedNamespace);
104
+ accept(visitor: GirVisitor): IntrospectedClass;
105
+ hasInstanceSymbol<S extends {
106
+ name: string;
107
+ }>(s: S): boolean;
108
+ someParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): boolean;
109
+ findParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): IntrospectedClass | IntrospectedInterface | undefined;
110
+ findParentMap<K>(predicate: (p: IntrospectedClass | IntrospectedInterface) => K | undefined): K | undefined;
111
+ implementedProperties(potentialConflicts?: IntrospectedBase<never>[]): IntrospectedProperty[];
112
+ implementedMethods(potentialConflicts?: ClassMember[]): IntrospectedClassFunction<IntrospectedBaseClass | import("./enum.js").IntrospectedEnum>[];
113
+ resolveParents(): ClassResolution;
114
+ copy(options?: {
115
+ parent?: undefined;
116
+ signals?: IntrospectedSignal[];
117
+ constructors?: IntrospectedConstructor[];
118
+ members?: IntrospectedClassFunction[];
119
+ props?: IntrospectedProperty[];
120
+ fields?: IntrospectedField[];
121
+ callbacks?: IntrospectedClassCallback[];
122
+ }): IntrospectedClass;
123
+ get staticDefinition(): string | null;
124
+ static fromXML(element: GirClassElement, ns: IntrospectedNamespace, options: LoadOptions): IntrospectedClass;
125
+ registerStaticDefinition(typeStruct: string): void;
126
+ asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateClass"]>;
127
+ }
128
+ export declare class IntrospectedRecord extends IntrospectedBaseClass {
129
+ private _isForeign;
130
+ private _structFor;
131
+ private _isSimple;
132
+ private _isSimpleWithoutPointers;
133
+ isForeign(): boolean;
134
+ get structFor(): ClassStructTypeIdentifier | null;
135
+ getType(): TypeIdentifier;
136
+ someParent(predicate: (p: IntrospectedRecord) => boolean): boolean;
137
+ findParent(predicate: (p: IntrospectedRecord) => boolean): IntrospectedRecord | undefined;
138
+ findParentMap<K>(predicate: (p: IntrospectedRecord) => K | undefined): K | undefined;
139
+ accept(visitor: GirVisitor): IntrospectedRecord;
140
+ resolveParents(): RecordResolution;
141
+ copy(options?: {
142
+ parent?: undefined;
143
+ constructors?: IntrospectedConstructor[];
144
+ members?: IntrospectedClassFunction[];
145
+ props?: IntrospectedProperty[];
146
+ fields?: IntrospectedField[];
147
+ callbacks?: IntrospectedClassCallback[];
148
+ }): IntrospectedRecord;
149
+ static foreign(name: string, namespace: IntrospectedNamespace): IntrospectedRecord;
150
+ static fromXML(element: GirRecordElement | GirUnionElement, namespace: IntrospectedNamespace, options: LoadOptions): IntrospectedRecord;
151
+ /**
152
+ * Calculate if a type expression is "simple" without pointers
153
+ */
154
+ isSimpleTypeWithoutPointers(typeContainer: TypeExpression): boolean;
155
+ /**
156
+ * Calculate if a type expression is "simple"
157
+ */
158
+ isSimpleType(typeContainer: TypeExpression): boolean;
159
+ /**
160
+ * Check if a record is "simple" and can be constructed by GJS
161
+ */
162
+ isSimple(): boolean;
163
+ isSimpleWithoutPointers(): string | null;
164
+ asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateRecord"]>;
165
+ }
166
+ export declare class GirComplexRecord extends IntrospectedRecord {
167
+ isSimple(): boolean;
168
+ }
169
+ export declare class IntrospectedInterface extends IntrospectedBaseClass {
170
+ noParent: boolean;
171
+ mainConstructor: null | IntrospectedConstructor;
172
+ copy(options?: {
173
+ parent?: undefined;
174
+ noParent?: boolean;
175
+ constructors?: IntrospectedConstructor[];
176
+ members?: IntrospectedClassFunction[];
177
+ props?: IntrospectedProperty[];
178
+ fields?: IntrospectedField[];
179
+ callbacks?: IntrospectedClassCallback[];
180
+ }): IntrospectedInterface;
181
+ someParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): boolean;
182
+ findParent(predicate: (p: IntrospectedClass | IntrospectedInterface) => boolean): IntrospectedInterface | IntrospectedClass | undefined;
183
+ findParentMap<K>(predicate: (p: IntrospectedClass | IntrospectedInterface) => K | undefined): K | undefined;
184
+ resolveParents(): InterfaceResolution;
185
+ accept(visitor: GirVisitor): IntrospectedInterface;
186
+ static fromXML(element: GirInterfaceElement, namespace: IntrospectedNamespace, options: LoadOptions): IntrospectedInterface;
187
+ asString<T extends FormatGenerator<unknown>>(generator: T): ReturnType<T["generateInterface"]>;
188
+ }
189
+ export {};