@girs/modulemd-2.0 2.0.0-4.0.0-beta.3

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.
@@ -0,0 +1,2459 @@
1
+ /*
2
+ * Type Definitions for Gjs (https://gjs.guide/)
3
+ *
4
+ * These type definitions are automatically generated, do not edit them by hand.
5
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
6
+ */
7
+
8
+ import './modulemd-2.0-ambient.d.ts';
9
+
10
+ /**
11
+ * Modulemd-2.0
12
+ */
13
+
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+
17
+ export namespace Modulemd {
18
+ enum CompressionTypeEnum {
19
+ /**
20
+ * Zstandard compression; since 2.15
21
+ */
22
+ ZSTD_COMPRESSION,
23
+ /**
24
+ * Autodetection failure
25
+ */
26
+ DETECTION_FAILED,
27
+ /**
28
+ * Unknown compression
29
+ */
30
+ UNKNOWN_COMPRESSION,
31
+ /**
32
+ * No compression
33
+ */
34
+ NO_COMPRESSION,
35
+ /**
36
+ * gzip compression
37
+ */
38
+ GZ_COMPRESSION,
39
+ /**
40
+ * bzip2 compression
41
+ */
42
+ BZ2_COMPRESSION,
43
+ /**
44
+ * LZMA compression
45
+ */
46
+ XZ_COMPRESSION,
47
+ /**
48
+ * zchunk compression
49
+ */
50
+ ZCK_COMPRESSION,
51
+ /**
52
+ * Enum list terminator
53
+ */
54
+ SENTINEL,
55
+ }
56
+ enum DefaultsVersionEnum {
57
+ /**
58
+ * Represents an error handling mdversion.
59
+ */
60
+ ERROR,
61
+ /**
62
+ * Represents an unset mdversion.
63
+ */
64
+ UNSET,
65
+ /**
66
+ * Represents v1 of the #ModulemdDefaults metadata
67
+ * format.
68
+ */
69
+ ONE,
70
+ /**
71
+ * Represents the highest-supported version of the
72
+ * #ModulemdDefaults metadata format.
73
+ */
74
+ LATEST,
75
+ }
76
+ class Error extends GLib.Error {
77
+ static $gtype: GObject.GType<Error>;
78
+
79
+ // Static fields of Modulemd.Error
80
+
81
+ /**
82
+ * Represents an error encountered while upgrading the
83
+ * metadata version of a module stream or module defaults.
84
+ */
85
+ static UPGRADE: number;
86
+ /**
87
+ * Represents an error encountered while validating
88
+ * module metadata.
89
+ */
90
+ static VALIDATE: number;
91
+ /**
92
+ * Represents an error encountered when attempting
93
+ * to access a file.
94
+ */
95
+ static FILE_ACCESS: number;
96
+ /**
97
+ * Represents an error indicating that no streams
98
+ * matched when searching for a specific module stream.
99
+ */
100
+ static NO_MATCHES: number;
101
+ /**
102
+ * Represents an error indicating that
103
+ * multiple streams matched when searching for a specific module
104
+ * stream.
105
+ */
106
+ static TOO_MANY_MATCHES: number;
107
+ /**
108
+ * Could not detect the mime type of a file for
109
+ * automatic detection of compression format.
110
+ */
111
+ static MAGIC: number;
112
+ /**
113
+ * The requested function is not implemented
114
+ * on this platform, likely due to needing a newer version of a dependency
115
+ * library.
116
+ */
117
+ static NOT_IMPLEMENTED: number;
118
+ /**
119
+ * The object is missing some data necessary
120
+ * for proper operation.
121
+ */
122
+ static MISSING_REQUIRED: number;
123
+
124
+ // Constructors of Modulemd.Error
125
+
126
+ constructor(options: { message: string; code: number });
127
+ _init(...args: any[]): void;
128
+ }
129
+
130
+ enum ErrorEnum {
131
+ /**
132
+ * Represents an error encountered while upgrading the
133
+ * metadata version of a module stream or module defaults.
134
+ */
135
+ UPGRADE,
136
+ /**
137
+ * Represents an error encountered while validating
138
+ * module metadata.
139
+ */
140
+ VALIDATE,
141
+ /**
142
+ * Represents an error encountered when attempting
143
+ * to access a file.
144
+ */
145
+ FILE_ACCESS,
146
+ /**
147
+ * Represents an error indicating that no streams
148
+ * matched when searching for a specific module stream. Since: 2.2
149
+ */
150
+ NO_MATCHES,
151
+ /**
152
+ * Represents an error indicating that
153
+ * multiple streams matched when searching for a specific module
154
+ * stream. Since: 2.2
155
+ */
156
+ TOO_MANY_MATCHES,
157
+ /**
158
+ * Could not detect the mime type of a file for
159
+ * automatic detection of compression format. Since: 2.8
160
+ */
161
+ MAGIC,
162
+ /**
163
+ * The requested function is not implemented
164
+ * on this platform, likely due to needing a newer version of a dependency
165
+ * library. Since: 2.8
166
+ */
167
+ NOT_IMPLEMENTED,
168
+ }
169
+ enum ModuleStreamVersionEnum {
170
+ /**
171
+ * Represents an error handling module stream
172
+ * version.
173
+ */
174
+ ERROR,
175
+ /**
176
+ * Represents an unset module stream version.
177
+ */
178
+ UNSET,
179
+ /**
180
+ * Represents v1 of the #ModulemdModuleStream
181
+ * metadata format.
182
+ */
183
+ ONE,
184
+ /**
185
+ * Represents v2 of the #ModulemdModuleStream
186
+ * metadata format.
187
+ */
188
+ TWO,
189
+ /**
190
+ * Represents the highest-supported version of
191
+ * the #ModulemdModuleStream metadata format.
192
+ */
193
+ LATEST,
194
+ }
195
+ enum ObsoletesVersionEnum {
196
+ /**
197
+ * Represents an error handling mdversion.
198
+ */
199
+ ERROR,
200
+ /**
201
+ * Represents an unset mdversion.
202
+ */
203
+ UNSET,
204
+ /**
205
+ * Represents v1 of the #ModulemdObsoletes metadata
206
+ * format.
207
+ */
208
+ ONE,
209
+ /**
210
+ * Represents the highest-supported version of the
211
+ * #ModulemdObsoletes metadata format.
212
+ */
213
+ LATEST,
214
+ }
215
+ enum PackagerVersionEnum {
216
+ /**
217
+ * Represents an error handling module stream
218
+ * version.
219
+ */
220
+ ERROR,
221
+ /**
222
+ * Represents an unset module stream version.
223
+ */
224
+ UNSET,
225
+ /**
226
+ * Represents v2 of the ModulePackager
227
+ * metadata format. Since: 2.11
228
+ */
229
+ TWO,
230
+ /**
231
+ * Represents v3 of the ModulePackager
232
+ * metadata format. Since: 2.11
233
+ */
234
+ THREE,
235
+ /**
236
+ * Represents the highest-supported version of
237
+ * the ModulePackager metadata format.
238
+ */
239
+ LATEST,
240
+ }
241
+ class YamlError extends GLib.Error {
242
+ static $gtype: GObject.GType<YamlError>;
243
+
244
+ // Static fields of Modulemd.YamlError
245
+
246
+ /**
247
+ * Represents an error encountered while opening a
248
+ * YAML file.
249
+ */
250
+ static OPEN: number;
251
+ /**
252
+ * Represents an internal programming error
253
+ * encountered while parsing a YAML document.
254
+ */
255
+ static PROGRAMMING: number;
256
+ /**
257
+ * Represents an error indicating that
258
+ * unexpected data or some other parsing error that violates the YAML spec
259
+ * was encountered while parsing a YAML document.
260
+ */
261
+ static UNPARSEABLE: number;
262
+ /**
263
+ * Represents an error indicating invalid data
264
+ * violating the modulemd YAML spec was encountered while parsing a YAML
265
+ * document.
266
+ */
267
+ static PARSE: number;
268
+ /**
269
+ * Represents an error encountered while writing a
270
+ * YAML file.
271
+ */
272
+ static EMIT: number;
273
+ /**
274
+ * Represents an error indicating that
275
+ * required elements are missing while parsing a YAML document.
276
+ */
277
+ static MISSING_REQUIRED: number;
278
+ /**
279
+ * Represents an error indicating that a YAML
280
+ * output event could not be initialized.
281
+ */
282
+ static EVENT_INIT: number;
283
+ /**
284
+ * Represents a data inconsistency error
285
+ * encountered while parsing a YAML document.
286
+ */
287
+ static INCONSISTENT: number;
288
+ static UNKNOWN_ATTR: number;
289
+
290
+ // Constructors of Modulemd.YamlError
291
+
292
+ constructor(options: { message: string; code: number });
293
+ _init(...args: any[]): void;
294
+ }
295
+
296
+ enum YamlErrorEnum {
297
+ /**
298
+ * Represents an error encountered while opening a
299
+ * YAML file.
300
+ */
301
+ OPEN,
302
+ /**
303
+ * Represents an internal programming error
304
+ * encountered while parsing a YAML document.
305
+ */
306
+ PROGRAMMING,
307
+ /**
308
+ * Represents an error indicating that
309
+ * unexpected data or some other parsing error was encountered while parsing a
310
+ * YAML document.
311
+ */
312
+ UNPARSEABLE,
313
+ /**
314
+ * Represents an error indicating invalid data was
315
+ * encountered while parsing a YAML document.
316
+ */
317
+ PARSE,
318
+ /**
319
+ * Represents an error encountered while writing a
320
+ * YAML file.
321
+ */
322
+ EMIT,
323
+ /**
324
+ * Represents an error indicating that
325
+ * required elements are missing while parsing a YAML document.
326
+ */
327
+ MISSING_REQUIRED,
328
+ /**
329
+ * Represents an error indicating that a YAML
330
+ * output event could not be initialized.
331
+ */
332
+ EVENT_INIT,
333
+ /**
334
+ * Represents a data inconsistency error
335
+ * encountered while parsing a YAML document.
336
+ */
337
+ INCONSISTENT,
338
+ }
339
+ /**
340
+ * The ModuleStream v3 specification defines the maximum lenth of the context
341
+ * field.
342
+ */
343
+ const MMD_MAXCONTEXTLEN: number;
344
+ /**
345
+ * The #ModulemdPackagerV3 default module metadata license.
346
+ */
347
+ const MMD_PACKAGER_DEFAULT_MODULE_LICENSE: string;
348
+ function compression_type(name: string): CompressionTypeEnum;
349
+ function error_quark(): GLib.Quark;
350
+ function get_version(): string;
351
+ /**
352
+ * This is a convenience function that is a wrapper around
353
+ * modulemd_module_index_new() and modulemd_module_index_update_from_file()
354
+ * with `strict=False`.
355
+ *
356
+ * It will return the imported module metadata if all subdocuments are
357
+ * parseable and valid. If any part of the document is unreadable or fails
358
+ * validation, it will return NULL and set `error` appropriately. If you need
359
+ * more detail about which parts of the document failed, use the lower-level
360
+ * functions.
361
+ * @param yaml_file A YAML file containing the module metadata and other related information such as default streams.
362
+ * @returns A newly-allocated #ModulemdModuleIndex object initialized with the content from @yaml_file. Returns NULL and sets @error if the file is not completely valid.
363
+ */
364
+ function load_file(yaml_file: string): ModuleIndex;
365
+ /**
366
+ * This is a convenience function that is a wrapper around
367
+ * modulemd_module_index_new() and modulemd_module_index_update_from_string()
368
+ * with `strict=False`.
369
+ *
370
+ * It will return the imported module metadata if all subdocuments are
371
+ * parseable and valid. If any part of the document is unreadable or fails
372
+ * validation, it will return NULL and set `error` appropriately. If you need
373
+ * more detail about which parts of the document failed, use the lower-level
374
+ * functions.
375
+ * @param yaml_string A YAML string containing the module metadata and other related information such as default streams.
376
+ * @returns A newly-allocated #ModulemdModuleIndex object initialized with the content from @yaml_string. Returns NULL and sets @error if the metadata is not completely valid.
377
+ */
378
+ function load_string(yaml_string: string): ModuleIndex;
379
+ function read_packager_file(
380
+ yaml_path: string,
381
+ module_name?: string | null,
382
+ module_stream?: string | null,
383
+ ): [GObject.GType, GObject.Object];
384
+ function read_packager_string(
385
+ yaml_string: string,
386
+ module_name?: string | null,
387
+ module_stream?: string | null,
388
+ ): [GObject.GType, GObject.Object];
389
+ function yaml_error_quark(): GLib.Quark;
390
+ interface ReadHandler {
391
+ (data: any, size: number): number;
392
+ }
393
+ interface WriteHandler {
394
+ (data: any, size: number): number;
395
+ }
396
+ module BuildConfig {
397
+ // Constructor properties interface
398
+
399
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
400
+ }
401
+
402
+ class BuildConfig extends GObject.Object {
403
+ static $gtype: GObject.GType<BuildConfig>;
404
+
405
+ // Constructors of Modulemd.BuildConfig
406
+
407
+ constructor(properties?: Partial<BuildConfig.ConstructorProps>, ...args: any[]);
408
+
409
+ _init(...args: any[]): void;
410
+
411
+ static ['new'](): BuildConfig;
412
+
413
+ // Own methods of Modulemd.BuildConfig
414
+
415
+ /**
416
+ * Add a build-time dependency for this module.
417
+ * @param module_name The name of the module to depend on.
418
+ * @param stream_name The name of the module stream to depend on.
419
+ */
420
+ add_buildtime_requirement(module_name: string, stream_name: string): void;
421
+ /**
422
+ * Add a build-time dependency for this module.
423
+ * @param module_name The name of the module to depend on.
424
+ * @param stream_name The name of the module stream to depend on.
425
+ */
426
+ add_runtime_requirement(module_name: string, stream_name: string): void;
427
+ /**
428
+ * Remove all build-time dependencies for this module.
429
+ */
430
+ clear_buildtime_requirements(): void;
431
+ /**
432
+ * Remove all run-time dependencies for this module.
433
+ */
434
+ clear_runtime_requirements(): void;
435
+ compare(self_2: BuildConfig): number;
436
+ copy(): BuildConfig;
437
+ equals(self_2: BuildConfig): boolean;
438
+ get_buildopts(): Buildopts;
439
+ get_buildtime_modules_as_strv(): string[];
440
+ get_buildtime_requirement_stream(module_name: string): string;
441
+ /**
442
+ * Get the context that this build configuration produces.
443
+ *
444
+ * Note: This function returns the context as stored internally. If you want to
445
+ * be sure that it is in the correct format, call
446
+ * modulemd_build_config_validate() first.
447
+ * @returns The string representing the context that this build configuration produces.
448
+ */
449
+ get_context(): string;
450
+ /**
451
+ * Get the platform that this build configuration applies to.
452
+ * @returns The string representing the platform that this build configuration applies to.
453
+ */
454
+ get_platform(): string;
455
+ get_runtime_modules_as_strv(): string[];
456
+ get_runtime_requirement_stream(module_name: string): string;
457
+ /**
458
+ * Remove a build-time dependency for this module.
459
+ * @param module_name The name of the module to be removed.
460
+ */
461
+ remove_buildtime_requirement(module_name: string): void;
462
+ /**
463
+ * Remove a run-time dependency for this module.
464
+ * @param module_name The name of the module to be removed.
465
+ */
466
+ remove_runtime_requirement(module_name: string): void;
467
+ /**
468
+ * Set build options for this module's components.
469
+ * @param buildopts A #ModulemdBuildopts object describing build options that apply globally to components in this module.
470
+ */
471
+ set_buildopts(buildopts: Buildopts): void;
472
+ /**
473
+ * Set the context that this build configuration produces.
474
+ *
475
+ * Note: For consistency in the API, this function does not validate the input
476
+ * `context`. This validation will be performed as part of the
477
+ * modulemd_build_config_validate() routine where it can be reported cleanly.
478
+ * @param context A string of up to ten alphanumeric characters.
479
+ */
480
+ set_context(context: string): void;
481
+ /**
482
+ * Set the platform that this build configuration applies to.
483
+ * @param platform A string of up to ten alphanumeric characters.
484
+ */
485
+ set_platform(platform: string): void;
486
+ /**
487
+ * Determine if this #ModulemdBuildConfig is valid according to the YAML
488
+ * specification.
489
+ * @returns TRUE if validation passes. Returns FALSE and sets @error appropriately on validation failure.
490
+ */
491
+ validate(): boolean;
492
+ }
493
+
494
+ module Buildopts {
495
+ // Constructor properties interface
496
+
497
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
498
+ rpm_macros: string;
499
+ rpmMacros: string;
500
+ }
501
+ }
502
+
503
+ class Buildopts extends GObject.Object {
504
+ static $gtype: GObject.GType<Buildopts>;
505
+
506
+ // Own properties of Modulemd.Buildopts
507
+
508
+ get rpm_macros(): string;
509
+ set rpm_macros(val: string);
510
+ get rpmMacros(): string;
511
+ set rpmMacros(val: string);
512
+
513
+ // Constructors of Modulemd.Buildopts
514
+
515
+ constructor(properties?: Partial<Buildopts.ConstructorProps>, ...args: any[]);
516
+
517
+ _init(...args: any[]): void;
518
+
519
+ static ['new'](): Buildopts;
520
+
521
+ // Own methods of Modulemd.Buildopts
522
+
523
+ /**
524
+ * Restrict the list of architectures for which to build this module. It may be
525
+ * called any number of times to indicate support on additional architectures.
526
+ * Use modulemd_buildopts_clear_arches() to return to "all architectures".
527
+ * @param arch An architecture for which to build this module.
528
+ */
529
+ add_arch(arch: string): void;
530
+ add_rpm_to_whitelist(rpm: string): void;
531
+ /**
532
+ * Indicate that this module should be built for all architectures.
533
+ */
534
+ clear_arches(): void;
535
+ /**
536
+ * Remove all RPMs from the whitelist.
537
+ */
538
+ clear_rpm_whitelist(): void;
539
+ /**
540
+ * Create a copy of this #ModulemdBuildopts object.
541
+ * @returns A newly-allocated #ModulemdBuildopts object that is a copy of @self.
542
+ */
543
+ copy(): Buildopts;
544
+ /**
545
+ * Check for equality for two #ModulemdBuildopts objects.
546
+ * @param self_2 A #ModulemdBuildopts object.
547
+ * @returns TRUE if both objects are equal, FALSE otherwise.
548
+ */
549
+ equals(self_2: Buildopts): boolean;
550
+ get_arches(): string[];
551
+ get_rpm_macros(): string;
552
+ get_rpm_whitelist(): string[];
553
+ remove_arch(arch: string): void;
554
+ remove_rpm_from_whitelist(rpm: string): void;
555
+ set_rpm_macros(rpm_macros: string): void;
556
+ }
557
+
558
+ module Component {
559
+ // Constructor properties interface
560
+
561
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
562
+ buildonly: boolean;
563
+ buildorder: number;
564
+ name: string;
565
+ rationale: string;
566
+ }
567
+ }
568
+
569
+ abstract class Component extends GObject.Object {
570
+ static $gtype: GObject.GType<Component>;
571
+
572
+ // Own properties of Modulemd.Component
573
+
574
+ get buildonly(): boolean;
575
+ set buildonly(val: boolean);
576
+ get buildorder(): number;
577
+ set buildorder(val: number);
578
+ get name(): string;
579
+ get rationale(): string;
580
+ set rationale(val: string);
581
+
582
+ // Constructors of Modulemd.Component
583
+
584
+ constructor(properties?: Partial<Component.ConstructorProps>, ...args: any[]);
585
+
586
+ _init(...args: any[]): void;
587
+
588
+ // Own virtual methods of Modulemd.Component
589
+
590
+ vfunc_copy(key?: string | null): Component;
591
+ vfunc_equals(self_2: Component): boolean;
592
+ vfunc_get_name(): string;
593
+ vfunc_set_name(name?: string | null): void;
594
+ /**
595
+ * Verifies that all stored values are internally consistent and that the
596
+ * component is sufficiently-complete for emitting. This function is called
597
+ * implicitly before attempting to emit the contents.
598
+ */
599
+ vfunc_validate(): boolean;
600
+
601
+ // Own methods of Modulemd.Component
602
+
603
+ /**
604
+ * Add a build dependency of this component.
605
+ * @param key A key representing another component in the #ModulemdModuleStream components map.
606
+ */
607
+ add_buildafter(key: string): void;
608
+ /**
609
+ * Remove all buildafter entries for this component.
610
+ */
611
+ clear_buildafter(): void;
612
+ copy(key?: string | null): Component;
613
+ equals(self_2: Component): boolean;
614
+ get_buildafter(): string[];
615
+ get_buildonly(): boolean;
616
+ get_buildorder(): number;
617
+ get_key(): string;
618
+ get_name(): string;
619
+ get_rationale(): string;
620
+ set_buildonly(buildonly: boolean): void;
621
+ set_buildorder(buildorder: number): void;
622
+ set_name(name?: string | null): void;
623
+ set_rationale(rationale?: string | null): void;
624
+ /**
625
+ * Verifies that all stored values are internally consistent and that the
626
+ * component is sufficiently-complete for emitting. This function is called
627
+ * implicitly before attempting to emit the contents.
628
+ * @returns TRUE if the #ModulemdComponent passed validation. FALSE and sets @error appropriately if validation fails.
629
+ */
630
+ validate(): boolean;
631
+ }
632
+
633
+ module ComponentModule {
634
+ // Constructor properties interface
635
+
636
+ interface ConstructorProps extends Component.ConstructorProps {
637
+ ref: string | any;
638
+ repository: string;
639
+ }
640
+ }
641
+
642
+ class ComponentModule extends Component {
643
+ static $gtype: GObject.GType<ComponentModule>;
644
+
645
+ // Own properties of Modulemd.ComponentModule
646
+
647
+ // This accessor conflicts with a property or field in a parent class or interface.
648
+ ref: string | any;
649
+ get repository(): string;
650
+ set repository(val: string);
651
+
652
+ // Constructors of Modulemd.ComponentModule
653
+
654
+ constructor(properties?: Partial<ComponentModule.ConstructorProps>, ...args: any[]);
655
+
656
+ _init(...args: any[]): void;
657
+
658
+ static ['new'](key: string): ComponentModule;
659
+
660
+ // Own methods of Modulemd.ComponentModule
661
+
662
+ get_ref(): string;
663
+ get_repository(): string;
664
+ set_ref(ref?: string | null): void;
665
+ set_repository(repository?: string | null): void;
666
+ }
667
+
668
+ module ComponentRpm {
669
+ // Constructor properties interface
670
+
671
+ interface ConstructorProps extends Component.ConstructorProps {
672
+ buildroot: boolean;
673
+ cache: string;
674
+ ref: string | any;
675
+ repository: string;
676
+ srpm_buildroot: boolean;
677
+ srpmBuildroot: boolean;
678
+ }
679
+ }
680
+
681
+ class ComponentRpm extends Component {
682
+ static $gtype: GObject.GType<ComponentRpm>;
683
+
684
+ // Own properties of Modulemd.ComponentRpm
685
+
686
+ get buildroot(): boolean;
687
+ set buildroot(val: boolean);
688
+ get cache(): string;
689
+ set cache(val: string);
690
+ // This accessor conflicts with a property or field in a parent class or interface.
691
+ ref: string | any;
692
+ get repository(): string;
693
+ set repository(val: string);
694
+ get srpm_buildroot(): boolean;
695
+ set srpm_buildroot(val: boolean);
696
+ get srpmBuildroot(): boolean;
697
+ set srpmBuildroot(val: boolean);
698
+
699
+ // Constructors of Modulemd.ComponentRpm
700
+
701
+ constructor(properties?: Partial<ComponentRpm.ConstructorProps>, ...args: any[]);
702
+
703
+ _init(...args: any[]): void;
704
+
705
+ static ['new'](key: string): ComponentRpm;
706
+
707
+ // Own methods of Modulemd.ComponentRpm
708
+
709
+ /**
710
+ * Add an architecture on which this RPM will be multilib. It may be called
711
+ * any number of times. Use modulemd_component_rpm_clear_multilib_arches() to
712
+ * return to "no architectures".
713
+ * @param arch An architecture on which this package should be multilib.
714
+ */
715
+ add_multilib_arch(arch: string): void;
716
+ /**
717
+ * Restrict the list of architectures on which this RPM will be available. It
718
+ * may be called any number of times to indicate support on additional
719
+ * architectures. Use modulemd_component_rpm_clear_arches() to return to "all
720
+ * architectures".
721
+ * @param arch An architecture on which this package should be available.
722
+ */
723
+ add_restricted_arch(arch: string): void;
724
+ /**
725
+ * Indicate that this RPM component is available on all arches.
726
+ */
727
+ clear_arches(): void;
728
+ /**
729
+ * Indicate that this RPM component is multilib on no architectures.
730
+ */
731
+ clear_multilib_arches(): void;
732
+ get_arches(): string[];
733
+ get_buildroot(): boolean;
734
+ get_cache(): string;
735
+ get_multilib_arches(): string[];
736
+ get_ref(): string;
737
+ get_repository(): string;
738
+ get_srpm_buildroot(): boolean;
739
+ /**
740
+ * Indicate that this RPM component is available on all arches.
741
+ */
742
+ reset_arches(): void;
743
+ /**
744
+ * Indicate that this RPM component is multilib on no architectures.
745
+ */
746
+ reset_multilib_arches(): void;
747
+ set_buildroot(buildroot: boolean): void;
748
+ set_cache(cache?: string | null): void;
749
+ set_ref(ref?: string | null): void;
750
+ set_repository(repository?: string | null): void;
751
+ set_srpm_buildroot(srpm_buildroot: boolean): void;
752
+ }
753
+
754
+ module Defaults {
755
+ // Constructor properties interface
756
+
757
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
758
+ mdversion: number;
759
+ module_name: string;
760
+ moduleName: string;
761
+ }
762
+ }
763
+
764
+ abstract class Defaults extends GObject.Object {
765
+ static $gtype: GObject.GType<Defaults>;
766
+
767
+ // Own properties of Modulemd.Defaults
768
+
769
+ get mdversion(): number;
770
+ get module_name(): string;
771
+ get moduleName(): string;
772
+
773
+ // Constructors of Modulemd.Defaults
774
+
775
+ constructor(properties?: Partial<Defaults.ConstructorProps>, ...args: any[]);
776
+
777
+ _init(...args: any[]): void;
778
+
779
+ static ['new'](version: number, module_name: string): Defaults;
780
+
781
+ // Own virtual methods of Modulemd.Defaults
782
+
783
+ vfunc_copy(): Defaults;
784
+ vfunc_equals(self_2: Defaults): boolean;
785
+ vfunc_get_mdversion(): number;
786
+ vfunc_validate(): boolean;
787
+
788
+ // Own methods of Modulemd.Defaults
789
+
790
+ copy(): Defaults;
791
+ equals(self_2: Defaults): boolean;
792
+ get_mdversion(): number;
793
+ get_modified(): number;
794
+ get_module_name(): string;
795
+ set_modified(modified: number): void;
796
+ upgrade(mdversion: number): Defaults;
797
+ validate(): boolean;
798
+ }
799
+
800
+ module DefaultsV1 {
801
+ // Constructor properties interface
802
+
803
+ interface ConstructorProps extends Defaults.ConstructorProps {}
804
+ }
805
+
806
+ class DefaultsV1 extends Defaults {
807
+ static $gtype: GObject.GType<DefaultsV1>;
808
+
809
+ // Constructors of Modulemd.DefaultsV1
810
+
811
+ constructor(properties?: Partial<DefaultsV1.ConstructorProps>, ...args: any[]);
812
+
813
+ _init(...args: any[]): void;
814
+
815
+ static ['new'](module_name: string): DefaultsV1;
816
+ // Conflicted with Modulemd.Defaults.new
817
+
818
+ static ['new'](...args: never[]): any;
819
+
820
+ // Own methods of Modulemd.DefaultsV1
821
+
822
+ /**
823
+ * Add a profile that will be installed for this stream if none are explicitly
824
+ * specified by the user. This function may be called any number of times for
825
+ * the same stream and will deduplicate input.
826
+ * @param stream_name The name of the module stream to which to add this default profile.
827
+ * @param profile_name The name of the default profile to add.
828
+ * @param intent The name of the system intent to add profile defaults to. If NULL, this sets the generic fallback profiles for the stream. System intents are deprecated and calls with this non-NULL argument will become void in the future.
829
+ */
830
+ add_default_profile_for_stream(stream_name: string, profile_name: string, intent?: string | null): void;
831
+ get_default_profiles_for_stream(stream_name: string, intent?: string | null): string[];
832
+ get_default_stream(intent?: string | null): string;
833
+ get_streams_with_default_profiles(intent?: string | null): string[];
834
+ /**
835
+ * Removes this stream from the list of profiles entirely. It will not appear
836
+ * in the output document.
837
+ * @param stream_name The name of the module stream from which to remove default profiles.
838
+ * @param intent The name of the system intent from which to remove the profile defaults for this stream. System intents are deprecated and calls with this non-NULL arugment will become void in the future.
839
+ */
840
+ remove_default_profiles_for_stream(stream_name: string, intent?: string | null): void;
841
+ /**
842
+ * Set the default stream for this module.
843
+ * @param default_stream The name of the default stream for this module. If NULL, it will remove the default stream.
844
+ * @param intent If non-NULL, this indicates the system intent to apply this default stream. If NULL, it will be added as common defaults. System intents are deprecated and calls with this non-NULL argument will become void in the future.
845
+ */
846
+ set_default_stream(default_stream?: string | null, intent?: string | null): void;
847
+ /**
848
+ * Sets the default profiles for `stream_name` to the empty set. When output to
849
+ * a file, it will appear as `stream_name: []`.
850
+ * @param stream_name The name of the module stream for which to empty default profiles.
851
+ * @param intent The name of the system intent from which to clear the profile defaults for this stream. System intents are deprecated and calls with this non-NULL argument will become void in the future.
852
+ */
853
+ set_empty_default_profiles_for_stream(stream_name: string, intent?: string | null): void;
854
+ }
855
+
856
+ module Dependencies {
857
+ // Constructor properties interface
858
+
859
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
860
+ }
861
+
862
+ class Dependencies extends GObject.Object {
863
+ static $gtype: GObject.GType<Dependencies>;
864
+
865
+ // Constructors of Modulemd.Dependencies
866
+
867
+ constructor(properties?: Partial<Dependencies.ConstructorProps>, ...args: any[]);
868
+
869
+ _init(...args: any[]): void;
870
+
871
+ static ['new'](): Dependencies;
872
+
873
+ // Own methods of Modulemd.Dependencies
874
+
875
+ /**
876
+ * Add a single stream of a module that is required to build another dependent
877
+ * module. The matrix of streams and module names will be calculated by the
878
+ * build-system. If the provided module name is already present, the streams
879
+ * will be added (with deduplication).
880
+ * @param module_name The name of the module to depend on.
881
+ * @param module_stream The name of the module stream to depend on.
882
+ */
883
+ add_buildtime_stream(module_name: string, module_stream: string): void;
884
+ /**
885
+ * Adds a module and its stream that is required at runtime by a dependent
886
+ * module. The matrix of streams and module names will be calculated by the
887
+ * build-system. If the listed provided module name is already present, the
888
+ * streams will be added (with deduplication).
889
+ * @param module_name The name of the module to depend on.
890
+ * @param module_stream The name of the module stream to depend on.
891
+ */
892
+ add_runtime_stream(module_name: string, module_stream: string): void;
893
+ /**
894
+ * Remove all buildtime dependencies from this #ModulemdDependencies object.
895
+ */
896
+ clear_buildtime_dependencies(): void;
897
+ /**
898
+ * Remove all runtime dependencies from this #ModulemdDependencies object.
899
+ */
900
+ clear_runtime_dependencies(): void;
901
+ /**
902
+ * Create a copy of this #ModulemdDependencies object.
903
+ * @returns The copied #ModulemdDependencies object.
904
+ */
905
+ copy(): Dependencies;
906
+ /**
907
+ * Check if `self_1` and `self_2` are equal objects.
908
+ * @param self_2 A #ModulemdDependencies object.
909
+ * @returns TRUE, if the're equal. FALSE, otherwise.
910
+ */
911
+ equals(self_2: Dependencies): boolean;
912
+ get_buildtime_modules(): string[];
913
+ get_buildtime_streams(module: string): string[] | null;
914
+ get_runtime_modules(): string[];
915
+ get_runtime_streams(module: string): string[] | null;
916
+ /**
917
+ * Adds a module and inserts an empty list for it as buildtime dependency.
918
+ * @param module_name The name of the module to add dependencies on.
919
+ */
920
+ set_empty_buildtime_dependencies_for_module(module_name: string): void;
921
+ /**
922
+ * Adds a module and inserts an empty list for it as runtime dependency.
923
+ * @param module_name The name of the module to add dependencies on.
924
+ */
925
+ set_empty_runtime_dependencies_for_module(module_name: string): void;
926
+ }
927
+
928
+ module Module {
929
+ // Constructor properties interface
930
+
931
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
932
+ module_name: string;
933
+ moduleName: string;
934
+ }
935
+ }
936
+
937
+ class Module extends GObject.Object {
938
+ static $gtype: GObject.GType<Module>;
939
+
940
+ // Own properties of Modulemd.Module
941
+
942
+ get module_name(): string;
943
+ get moduleName(): string;
944
+
945
+ // Constructors of Modulemd.Module
946
+
947
+ constructor(properties?: Partial<Module.ConstructorProps>, ...args: any[]);
948
+
949
+ _init(...args: any[]): void;
950
+
951
+ // Own methods of Modulemd.Module
952
+
953
+ /**
954
+ * Iterates through all #ModulemdModuleStream entries in this
955
+ * #ModulemdModule and removes any XMD sections that are present. This is
956
+ * generally done to trim down the metadata to only the portions that are
957
+ * useful to the package manager.
958
+ */
959
+ clear_xmds(): void;
960
+ copy(): Module;
961
+ get_all_streams(): ModuleStream[];
962
+ get_defaults(): Defaults;
963
+ get_module_name(): string;
964
+ get_newest_active_obsoletes(stream: string, context?: string | null): Obsoletes;
965
+ get_obsoletes(): Obsoletes[];
966
+ get_stream_by_NSVC(stream_name: string, version: number, context: string): ModuleStream;
967
+ get_stream_by_NSVCA(
968
+ stream_name: string,
969
+ version: number,
970
+ context?: string | null,
971
+ arch?: string | null,
972
+ ): ModuleStream;
973
+ get_stream_names(): string[];
974
+ get_streams_by_stream_name(stream_name: string): ModuleStream[];
975
+ get_translation(stream: string): Translation;
976
+ /**
977
+ * Remove one or more #ModulemdModuleStream objects from this #ModulemdModule
978
+ * that match the provided parameters.
979
+ * @param stream_name The name of the stream to remove.
980
+ * @param version The version of the stream to remove. If set to zero, matches all versions.
981
+ * @param context The context of the stream to remove. If NULL, matches all stream contexts.
982
+ * @param arch The processor architecture of the stream to remove. If NULL, matches all architectures.
983
+ */
984
+ remove_streams_by_NSVCA(
985
+ stream_name: string,
986
+ version: number,
987
+ context?: string | null,
988
+ arch?: string | null,
989
+ ): void;
990
+ search_streams(
991
+ stream_name: string,
992
+ version: number,
993
+ context?: string | null,
994
+ arch?: string | null,
995
+ ): ModuleStream[];
996
+ /**
997
+ * All arguments to this method will be compared using
998
+ * [fnmatch(3)](https://www.mankier.com/3/fnmatch).
999
+ * @param stream_name The name of the stream to retrieve. If NULL, will search all streams.
1000
+ * @param version The version of the stream to retrieve. If NULL, will search all versions.
1001
+ * @param context The context of the stream to retrieve. If NULL, will search all contexts.
1002
+ * @param arch The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search.
1003
+ * @returns The list of stream objects matching all of the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
1004
+ */
1005
+ search_streams_by_glob(
1006
+ stream_name?: string | null,
1007
+ version?: string | null,
1008
+ context?: string | null,
1009
+ arch?: string | null,
1010
+ ): ModuleStream[];
1011
+ search_streams_by_nsvca_glob(nsvca_pattern?: string | null): ModuleStream[];
1012
+ validate(): boolean;
1013
+ }
1014
+
1015
+ module ModuleIndex {
1016
+ // Constructor properties interface
1017
+
1018
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1019
+ }
1020
+
1021
+ class ModuleIndex extends GObject.Object {
1022
+ static $gtype: GObject.GType<ModuleIndex>;
1023
+
1024
+ // Constructors of Modulemd.ModuleIndex
1025
+
1026
+ constructor(properties?: Partial<ModuleIndex.ConstructorProps>, ...args: any[]);
1027
+
1028
+ _init(...args: any[]): void;
1029
+
1030
+ static ['new'](): ModuleIndex;
1031
+
1032
+ // Own methods of Modulemd.ModuleIndex
1033
+
1034
+ add_defaults(defaults: Defaults): boolean;
1035
+ /**
1036
+ * Add a #ModulemdModuleStream to the #ModulemdModuleIndex. While being added,
1037
+ * the #ModulemdModuleStream will be upgraded to %MD_MODULESTREAM_VERSION_LATEST
1038
+ * to ensure that merges done with #ModulemdModuleIndexMerger will always occur
1039
+ * between streams of the same version. If this upgrade cannot be performed,
1040
+ * the function will return `error` set appropriately.
1041
+ * @param stream The #ModulemdModuleStream to add to the index. The stream added must have a module name and stream name set on it or it will be rejected.
1042
+ * @returns TRUE if the #ModulemdModuleStream was added successfully. If the stream already existed in the index, it will be replaced by the new one. On failure, returns FALSE and sets @error appropriately.
1043
+ */
1044
+ add_module_stream(stream: ModuleStream): boolean;
1045
+ add_obsoletes(obsoletes: Obsoletes): boolean;
1046
+ add_translation(translation: Translation): boolean;
1047
+ /**
1048
+ * Iterates through all #ModulemdModuleStream entries in this
1049
+ * #ModulemdModuleIndex and removes any XMD sections that are present. This is
1050
+ * generally done to trim down the metadata to only the portions that are
1051
+ * useful to the package manager.
1052
+ */
1053
+ clear_xmds(): void;
1054
+ dump_to_string(): string;
1055
+ /**
1056
+ * Get a dictionary of all modules in the index that have a default stream.
1057
+ *
1058
+ * This function cannot fail, but may return an empty (non-NULL) #GHashTable.
1059
+ * @param intent The name of the system intent whose default stream will be retrieved. If left NULL or the specified intent has no separate default, it will return the generic default stream for this module. System intents are deprecated and this argument will be ignored in the future.
1060
+ * @returns A #GHashTable with the module name as the key and the default stream as the value for all modules with a default stream in the index. Modules without a default stream will not appear in this table.
1061
+ */
1062
+ get_default_streams(intent?: string | null): GLib.HashTable<string, string>;
1063
+ get_defaults_mdversion(): DefaultsVersionEnum;
1064
+ get_module(module_name: string): Module;
1065
+ get_module_names(): string[];
1066
+ get_stream_mdversion(): ModuleStreamVersionEnum;
1067
+ /**
1068
+ * Remove a module, including all of its streams, its defaults and its
1069
+ * translations from a #ModulemdModuleIndex.
1070
+ * @param module_name The name of the module to remove from the index.
1071
+ * @returns TRUE if the module name was present in the index. FALSE if it was not.
1072
+ */
1073
+ remove_module(module_name: string): boolean;
1074
+ /**
1075
+ * All arguments to this method will be compared using
1076
+ * [fnmatch(3)](https://www.mankier.com/3/fnmatch).
1077
+ * @param nevra_pattern A [glob](https://www.mankier.com/3/glob) pattern to match against the NEVRA strings of the rpm artifacts in the #ModulemdModuleStream objects in this module.
1078
+ * @returns The list of stream objects containing an RPM that matches the @nevra_pattern. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
1079
+ */
1080
+ search_rpms(nevra_pattern: string): ModuleStream[];
1081
+ /**
1082
+ * All arguments to this method will be compared using
1083
+ * [fnmatch(3)](https://www.mankier.com/3/fnmatch).
1084
+ * @param module_name The name of the module to retrieve. If NULL, will search all modules in the index.
1085
+ * @param stream_name The name of the stream to retrieve. If NULL, will search all streams in a module.
1086
+ * @param version The version of the stream to retrieve. If NULL, will search all versions.
1087
+ * @param context The context of the stream to retrieve. If NULL, will search all contexts.
1088
+ * @param arch The processor architecture of the stream to retrieve. If NULL, the architecture is not included in the search.
1089
+ * @returns The list of stream objects matching all of the requested parameters. This function cannot fail, but it may return a zero-length list if no matches were found. The returned streams will be in a predictable order, sorted first by module name, then stream name, then by version (highest first), then by context and finally by architecture.
1090
+ */
1091
+ search_streams(
1092
+ module_name?: string | null,
1093
+ stream_name?: string | null,
1094
+ version?: string | null,
1095
+ context?: string | null,
1096
+ arch?: string | null,
1097
+ ): ModuleStream[];
1098
+ search_streams_by_nsvca_glob(nsvca_pattern?: string | null): ModuleStream[];
1099
+ /**
1100
+ * This function will open the directory at `path` and iterate through it,
1101
+ * adding any files with the suffix ".yaml" to `self`. If `overrides_path` is
1102
+ * non-%NULL, it will also open any files with the suffix ".yaml" in that
1103
+ * location and import them, overriding any conflicts with the existing
1104
+ * defaults.
1105
+ *
1106
+ * Note: If you need detailed information about what failed and why, it is
1107
+ * better to implement the directory traversal yourself and use the
1108
+ * modulemd_module_index_update_from_file() function, as it will return the
1109
+ * failures information.
1110
+ * @param path The path to a directory containing defaults documents.
1111
+ * @param strict Whether the parser should return failure if it encounters an unknown mapping key or a conflict in module default streams.
1112
+ * @param overrides_path If non-%NULL, the path to a directory containing defaults documents that should override those in @path.
1113
+ * @returns %TRUE if all ".yaml" files in the directory were imported successfully (this includes if no ".yaml" files were present). %FALSE if one or more files could not be read successfully and sets @error appropriately.
1114
+ */
1115
+ update_from_defaults_directory(path: string, strict: boolean, overrides_path?: string | null): boolean;
1116
+ update_from_file(yaml_file: string, strict: boolean): [boolean, SubdocumentInfo[]];
1117
+ update_from_string(yaml_string: string, strict: boolean): [boolean, SubdocumentInfo[]];
1118
+ /**
1119
+ * Upgrades all #ModulemdDefaults objects in this index to `mdversion` if they
1120
+ * are not already at that version. An attempt to downgrade or an attempt to
1121
+ * upgrade beyond the latest supported version will report an error. In the
1122
+ * case of a failure to upgrade a particular #ModulemdDefaults object of the
1123
+ * index, an error will be reported and the index will be left in an undefined
1124
+ * state.
1125
+ * @param mdversion The #ModulemdDefaults metadata version to upgrade to.
1126
+ */
1127
+ upgrade_defaults(mdversion: DefaultsVersionEnum): boolean;
1128
+ /**
1129
+ * Upgrades all #ModulemdModuleStream objects in this index to `mdversion` if
1130
+ * they are not already at that version.
1131
+ * @param mdversion The #ModulemdModuleStream metadata version to upgrade to.
1132
+ */
1133
+ upgrade_streams(mdversion: ModuleStreamVersionEnum): boolean;
1134
+ }
1135
+
1136
+ module ModuleIndexMerger {
1137
+ // Constructor properties interface
1138
+
1139
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1140
+ }
1141
+
1142
+ class ModuleIndexMerger extends GObject.Object {
1143
+ static $gtype: GObject.GType<ModuleIndexMerger>;
1144
+
1145
+ // Constructors of Modulemd.ModuleIndexMerger
1146
+
1147
+ constructor(properties?: Partial<ModuleIndexMerger.ConstructorProps>, ...args: any[]);
1148
+
1149
+ _init(...args: any[]): void;
1150
+
1151
+ static ['new'](): ModuleIndexMerger;
1152
+
1153
+ // Own methods of Modulemd.ModuleIndexMerger
1154
+
1155
+ /**
1156
+ * Enqueues a #ModulemdModuleIndex representing the parsed metadata from a
1157
+ * repository into this #ModulemdModuleIndexMerger for merging and
1158
+ * deduplication of other repositories.
1159
+ *
1160
+ * Once all repositories have been added, call
1161
+ * modulemd_module_index_merger_resolve() to perform the merge.
1162
+ * @param index A #ModulemdModuleIndex, usually constructed by reading the module metadata from a repository with modulemd_module_index_update_from_file(), modulemd_module_index_update_from_string(), or `modulemd_module_index_update_from_stream()`. This function take a reference on @index, so the caller must not modify it while the #ModulemdModuleIndexMerger is in use.
1163
+ * @param priority The priority of the repository that the entries in @index came from. This is used to determine when @index should override rather then merge. In most cases, this will be zero. See the Description section for the #ModulemdModuleIndexMerger class for details on the merge logic. Acceptable values are in the range of 0-1000.
1164
+ */
1165
+ associate_index(index: ModuleIndex, priority: number): void;
1166
+ /**
1167
+ * Merges all added #ModulemdModuleIndex objects according to their priority.
1168
+ * The logic of this merge is described in the Description of
1169
+ * #ModulemdModuleIndexMerger.
1170
+ *
1171
+ * Once this function has been called, the internal state of the
1172
+ * #ModulemdModuleIndexMerger is undefined. The only valid action on it after
1173
+ * that point is g_object_unref().
1174
+ *
1175
+ * This function is equivalent to calling
1176
+ * modulemd_module_index_merger_resolve_ext() with
1177
+ * `strict_default_streams=FALSE`.
1178
+ * @returns A newly-allocated #ModulemdModuleIndex object containing the merged results. If this function encounters an unresolvable merge conflict, it will return NULL and set @error appropriately.
1179
+ */
1180
+ resolve(): ModuleIndex;
1181
+ /**
1182
+ * Merges all added #ModulemdModuleIndex objects according to their priority.
1183
+ * The logic of this merge is described in the Description of
1184
+ * #ModulemdModuleIndexMerger.
1185
+ *
1186
+ * Once this function has been called, the internal state of the
1187
+ * #ModulemdModuleIndexMerger is undefined. The only valid action on it after
1188
+ * that point is g_object_unref().
1189
+ * @param strict_default_streams If TRUE, merging two #ModulemdDefaults with conflicting default streams will raise an error. If FALSE, the module will have its default stream blocked.
1190
+ * @returns A newly-allocated #ModulemdModuleIndex object containing the merged results. If this function encounters an unresolvable merge conflict, it will return NULL and set @error appropriately.
1191
+ */
1192
+ resolve_ext(strict_default_streams: boolean): ModuleIndex;
1193
+ }
1194
+
1195
+ module ModuleStream {
1196
+ // Constructor properties interface
1197
+
1198
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
1199
+ arch: string;
1200
+ context: string;
1201
+ mdversion: number;
1202
+ module_name: string;
1203
+ moduleName: string;
1204
+ stream_name: string;
1205
+ streamName: string;
1206
+ version: number;
1207
+ }
1208
+ }
1209
+
1210
+ abstract class ModuleStream extends GObject.Object {
1211
+ static $gtype: GObject.GType<ModuleStream>;
1212
+
1213
+ // Own properties of Modulemd.ModuleStream
1214
+
1215
+ get arch(): string;
1216
+ set arch(val: string);
1217
+ get context(): string;
1218
+ set context(val: string);
1219
+ get mdversion(): number;
1220
+ get module_name(): string;
1221
+ get moduleName(): string;
1222
+ get stream_name(): string;
1223
+ get streamName(): string;
1224
+ get version(): number;
1225
+ set version(val: number);
1226
+
1227
+ // Constructors of Modulemd.ModuleStream
1228
+
1229
+ constructor(properties?: Partial<ModuleStream.ConstructorProps>, ...args: any[]);
1230
+
1231
+ _init(...args: any[]): void;
1232
+
1233
+ static ['new'](mdversion: number, module_name?: string | null, module_stream?: string | null): ModuleStream;
1234
+
1235
+ // Own static methods of Modulemd.ModuleStream
1236
+
1237
+ /**
1238
+ * Create a #ModulemdModuleStream object from a YAML file.
1239
+ *
1240
+ * Note: This function also reads modulemd-packager v2 and v3 documents, which
1241
+ * are transparently returned as #ModulemdModuleStream (V2) objects. However,
1242
+ * if a modulemd-packager v3 document (#ModulemdPackagerV3) is encountered and
1243
+ * it uses buildopts (#ModulemdBuildopts) in one or more build configurations,
1244
+ * only the buildopts present in the first listed configuration (if any) will be
1245
+ * applied to the returned #ModulemdModuleStreamV2 object.
1246
+ * @param path The path to a YAML document containing a module stream definition.
1247
+ * @param strict Whether the parser should return failure if it encounters an unknown mapping key or if it should ignore it.
1248
+ * @param module_name An optional module name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
1249
+ * @param module_stream An optional module stream name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
1250
+ */
1251
+ static read_file(
1252
+ path: string,
1253
+ strict: boolean,
1254
+ module_name?: string | null,
1255
+ module_stream?: string | null,
1256
+ ): ModuleStream;
1257
+ /**
1258
+ * Create a #ModulemdModuleStream object from a YAML string.
1259
+ *
1260
+ * Note: This function also reads modulemd-packager v2 and v3 documents, which
1261
+ * are transparently returned as #ModulemdModuleStream (V2) objects. However,
1262
+ * if a modulemd-packager v3 document (#ModulemdPackagerV3) is encountered and
1263
+ * it uses buildopts (#ModulemdBuildopts) in one or more build configurations,
1264
+ * only the buildopts present in the first listed configuration (if any) will be
1265
+ * applied to the returned #ModulemdModuleStreamV2 object.
1266
+ * @param yaml_string A YAML document string containing a module stream definition.
1267
+ * @param strict Whether the parser should return failure if it encounters an unknown mapping key or if it should ignore it.
1268
+ * @param module_name An optional module name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
1269
+ * @param module_stream An optional module stream name to override the document on disk. Mostly useful in cases where the name is being auto-detected from git.
1270
+ */
1271
+ static read_string(
1272
+ yaml_string: string,
1273
+ strict: boolean,
1274
+ module_name?: string | null,
1275
+ module_stream?: string | null,
1276
+ ): ModuleStream;
1277
+
1278
+ // Own virtual methods of Modulemd.ModuleStream
1279
+
1280
+ vfunc_build_depends_on_stream(module_name: string, stream_name: string): boolean;
1281
+ /**
1282
+ * Copies a #ModulemdModuleStream, optionally assigning it a new stream name in
1283
+ * the process.
1284
+ * @param module_name An optional new name for the module of the copied stream.
1285
+ * @param module_stream An optional new name for the copied stream.
1286
+ */
1287
+ vfunc_copy(module_name?: string | null, module_stream?: string | null): ModuleStream;
1288
+ vfunc_depends_on_stream(module_name: string, stream_name: string): boolean;
1289
+ /**
1290
+ * Checks if `self_1` and `self_2` are identical objects.
1291
+ * @param self_2 A #ModulemdModuleStream object.
1292
+ */
1293
+ vfunc_equals(self_2: ModuleStream): boolean;
1294
+ vfunc_get_mdversion(): number;
1295
+ /**
1296
+ * Verifies that all stored values are internally consistent and that the
1297
+ * module is sufficiently-complete for emitting. This function is called
1298
+ * implicitly before attempting to emit the contents.
1299
+ */
1300
+ vfunc_validate(): boolean;
1301
+
1302
+ // Own methods of Modulemd.ModuleStream
1303
+
1304
+ build_depends_on_stream(module_name: string, stream_name: string): boolean;
1305
+ /**
1306
+ * Copies a #ModulemdModuleStream, optionally assigning it a new stream name in
1307
+ * the process.
1308
+ * @param module_name An optional new name for the module of the copied stream.
1309
+ * @param module_stream An optional new name for the copied stream.
1310
+ * @returns A newly-allocated #ModulemdModuleStream object that is a complete copy of @self, optionally with a new stream name.
1311
+ */
1312
+ copy(module_name?: string | null, module_stream?: string | null): ModuleStream;
1313
+ depends_on_stream(module_name: string, stream_name: string): boolean;
1314
+ /**
1315
+ * Checks if `self_1` and `self_2` are identical objects.
1316
+ * @param self_2 A #ModulemdModuleStream object.
1317
+ * @returns TRUE, If both objects are equal. FALSE, otherwise.
1318
+ */
1319
+ equals(self_2: ModuleStream): boolean;
1320
+ get_NSVCA(): string;
1321
+ get_arch(): string;
1322
+ get_context(): string;
1323
+ get_mdversion(): number;
1324
+ get_module_name(): string;
1325
+ /**
1326
+ * Retrieves a representation of the module name, stream name, version and
1327
+ * context of this #ModulemdModuleStream in the form
1328
+ * `module_name:stream_name:version:context`. Note that this excludes the
1329
+ * architecture of the module stream and as such is not guaranteed to be unique
1330
+ * within a repository.
1331
+ * @returns The NSVC (name:stream:version[:context]) of this module stream. NULL if module name or stream stream is unknown.
1332
+ */
1333
+ get_nsvc(): string;
1334
+ get_stream_name(): string;
1335
+ get_version(): number;
1336
+ set_arch(arch?: string | null): void;
1337
+ set_context(context?: string | null): void;
1338
+ set_version(version: number): void;
1339
+ /**
1340
+ * Return an upgraded copy of this object. Does not modify the original.
1341
+ * @param mdversion The metadata version to upgrade to. If zero, upgrades to the highest-supported version.
1342
+ * @returns A newly-allocated #ModulemdModuleStream copy of this object upgraded to the requested version. Returns NULL and sets @error appropriately if the upgrade could not be completed automatically.
1343
+ */
1344
+ upgrade(mdversion: number): ModuleStream;
1345
+ /**
1346
+ * Does not modify the original #ModulemdModuleStream object, `from`.
1347
+ * @param mdversion The metadata version to upgrade to. If zero, upgrades to the highest-supported version.
1348
+ * @returns A newly-allocated #ModulemdModule containing a copy of this object upgraded to the requested version, possibly with multiple streams. Returns NULL and sets @error appropriately if the upgrade could not be completed automatically.
1349
+ */
1350
+ upgrade_ext(mdversion: number): Module;
1351
+ /**
1352
+ * Verifies that all stored values are internally consistent and that the
1353
+ * module is sufficiently-complete for emitting. This function is called
1354
+ * implicitly before attempting to emit the contents.
1355
+ * @returns TRUE if the #ModulemdModuleStream passed validation. FALSE and sets @error appropriately if validation fails.
1356
+ */
1357
+ validate(): boolean;
1358
+ }
1359
+
1360
+ module ModuleStreamV1 {
1361
+ // Constructor properties interface
1362
+
1363
+ interface ConstructorProps extends ModuleStream.ConstructorProps {
1364
+ arch: string;
1365
+ buildopts: Buildopts;
1366
+ community: string;
1367
+ documentation: string;
1368
+ tracker: string;
1369
+ }
1370
+ }
1371
+
1372
+ class ModuleStreamV1 extends ModuleStream {
1373
+ static $gtype: GObject.GType<ModuleStreamV1>;
1374
+
1375
+ // Own properties of Modulemd.ModuleStreamV1
1376
+
1377
+ get arch(): string;
1378
+ set arch(val: string);
1379
+ get buildopts(): Buildopts;
1380
+ set buildopts(val: Buildopts);
1381
+ get community(): string;
1382
+ set community(val: string);
1383
+ get documentation(): string;
1384
+ set documentation(val: string);
1385
+ get tracker(): string;
1386
+ set tracker(val: string);
1387
+
1388
+ // Constructors of Modulemd.ModuleStreamV1
1389
+
1390
+ constructor(properties?: Partial<ModuleStreamV1.ConstructorProps>, ...args: any[]);
1391
+
1392
+ _init(...args: any[]): void;
1393
+
1394
+ static ['new'](module_name?: string | null, module_stream?: string | null): ModuleStreamV1;
1395
+ // Conflicted with Modulemd.ModuleStream.new
1396
+
1397
+ static ['new'](...args: never[]): any;
1398
+
1399
+ // Own methods of Modulemd.ModuleStreamV1
1400
+
1401
+ /**
1402
+ * Add a build-time dependency for this module.
1403
+ * @param module_name The name of the module to depend on.
1404
+ * @param module_stream The name of the module stream to depend on.
1405
+ */
1406
+ add_buildtime_requirement(module_name: string, module_stream: string): void;
1407
+ /**
1408
+ * Add a component definition to the module.
1409
+ * @param component A #ModulemdComponent to be added to this module stream.
1410
+ */
1411
+ add_component(component: Component): void;
1412
+ add_content_license(license: string): void;
1413
+ add_module_license(license: string): void;
1414
+ /**
1415
+ * Adds a profile definition to this module stream.
1416
+ * @param profile A #ModulemdProfile for this module stream.
1417
+ */
1418
+ add_profile(profile: Profile): void;
1419
+ add_rpm_api(rpm: string): void;
1420
+ add_rpm_artifact(nevr: string): void;
1421
+ add_rpm_filter(rpm: string): void;
1422
+ /**
1423
+ * Add a runtime dependency for this module.
1424
+ * @param module_name The name of the module to depend on.
1425
+ * @param module_stream The name of the module stream to depend on.
1426
+ */
1427
+ add_runtime_requirement(module_name: string, module_stream: string): void;
1428
+ /**
1429
+ * Adds a servicelevel definition to this module stream.
1430
+ * @param servicelevel A #ModulemdServiceLevel for this module stream.
1431
+ */
1432
+ add_servicelevel(servicelevel: ServiceLevel): void;
1433
+ /**
1434
+ * Remove all buildtime dependencies for this module.
1435
+ */
1436
+ clear_buildtime_requirements(): void;
1437
+ /**
1438
+ * Remove all content licenses.
1439
+ */
1440
+ clear_content_licenses(): void;
1441
+ /**
1442
+ * Remove all module components from this module stream.
1443
+ */
1444
+ clear_module_components(): void;
1445
+ /**
1446
+ * Remove all module licenses.
1447
+ */
1448
+ clear_module_licenses(): void;
1449
+ /**
1450
+ * Remove all profiles from this module stream.
1451
+ */
1452
+ clear_profiles(): void;
1453
+ /**
1454
+ * Remove all RPMs from the list of stable public API.
1455
+ */
1456
+ clear_rpm_api(): void;
1457
+ /**
1458
+ * Remove all RPM NEVRs from the list of artifacts.
1459
+ */
1460
+ clear_rpm_artifacts(): void;
1461
+ /**
1462
+ * Remove all RPM components from this module stream.
1463
+ */
1464
+ clear_rpm_components(): void;
1465
+ /**
1466
+ * Remove all RPMs from the filter list.
1467
+ */
1468
+ clear_rpm_filters(): void;
1469
+ /**
1470
+ * Remove all runtime dependencies for this module.
1471
+ */
1472
+ clear_runtime_requirements(): void;
1473
+ /**
1474
+ * Remove all servicelevels from this module stream.
1475
+ */
1476
+ clear_servicelevels(): void;
1477
+ get_arch(): string;
1478
+ get_buildopts(): Buildopts;
1479
+ get_buildtime_modules(): string[];
1480
+ get_buildtime_requirement_stream(module_name: string): string;
1481
+ get_community(): string;
1482
+ get_content_licenses(): string[];
1483
+ get_description(locale?: string | null): string;
1484
+ get_documentation(): string;
1485
+ /**
1486
+ * Compatibility function with early iterations of modulemd v1. This function
1487
+ * is a wrapper for `modulemd_module_stream_v1_get_servicelevel("rawhide")`.
1488
+ * @returns The end-of-life date for the "rawhide" service level.
1489
+ */
1490
+ get_eol(): GLib.Date;
1491
+ get_module_component(component_name: string): ComponentModule;
1492
+ get_module_component_names(): string[];
1493
+ get_module_licenses(): string[];
1494
+ get_profile(profile_name: string): Profile;
1495
+ get_profile_names(): string[];
1496
+ get_rpm_api(): string[];
1497
+ get_rpm_artifacts(): string[];
1498
+ get_rpm_component(component_name: string): ComponentRpm;
1499
+ get_rpm_component_names(): string[];
1500
+ get_rpm_filters(): string[];
1501
+ get_runtime_modules(): string[];
1502
+ get_runtime_requirement_stream(module_name: string): string;
1503
+ get_servicelevel(servicelevel_name: string): ServiceLevel;
1504
+ get_servicelevel_names(): string[];
1505
+ get_summary(locale?: string | null): string;
1506
+ get_tracker(): string;
1507
+ get_xmd(): GLib.Variant;
1508
+ /**
1509
+ * Remove a build-time dependency for this module.
1510
+ * @param module_name The name of the module to be removed.
1511
+ */
1512
+ remove_buildtime_requirement(module_name: string): void;
1513
+ remove_content_license(license: string): void;
1514
+ /**
1515
+ * Remove a component from this module stream.
1516
+ * @param component_name The name of the component to remove from the module stream.
1517
+ */
1518
+ remove_module_component(component_name: string): void;
1519
+ remove_module_license(license: string): void;
1520
+ remove_rpm_api(rpm: string): void;
1521
+ remove_rpm_artifact(nevr: string): void;
1522
+ /**
1523
+ * Remove a component from this module stream.
1524
+ * @param component_name The name of the component to remove from the module stream.
1525
+ */
1526
+ remove_rpm_component(component_name: string): void;
1527
+ remove_rpm_filter(rpm: string): void;
1528
+ /**
1529
+ * Remove a runtime dependency for this module.
1530
+ * @param module_name The name of the module to be removed.
1531
+ */
1532
+ remove_runtime_requirement(module_name: string): void;
1533
+ /**
1534
+ * Set the module artifact architecture.
1535
+ * @param arch The module artifact architecture.
1536
+ */
1537
+ set_arch(arch: string): void;
1538
+ // Conflicted with Modulemd.ModuleStream.set_arch
1539
+ set_arch(...args: never[]): any;
1540
+ /**
1541
+ * Set build options for this module's components.
1542
+ * @param buildopts A #ModulemdBuildopts object describing build options that apply globally to components in this module.
1543
+ */
1544
+ set_buildopts(buildopts: Buildopts): void;
1545
+ /**
1546
+ * Set the module community website address.
1547
+ * @param community The upstream community website for this module.
1548
+ */
1549
+ set_community(community: string): void;
1550
+ /**
1551
+ * Set the module description.
1552
+ * @param description The untranslated description of this module.
1553
+ */
1554
+ set_description(description?: string | null): void;
1555
+ /**
1556
+ * Set the module documentation website address.
1557
+ * @param documentation The upstream documentation website for this module.
1558
+ */
1559
+ set_documentation(documentation: string): void;
1560
+ /**
1561
+ * Comptibility function with early iterations of modulemd v1. This function is
1562
+ * a wrapper for `modulemd_module_stream_v1_add_servicelevel("rawhide", eol)`.
1563
+ * @param eol The end-of-life date for the "rawhide" service level.
1564
+ */
1565
+ set_eol(eol: GLib.Date): void;
1566
+ /**
1567
+ * Set the module summary.
1568
+ * @param summary The untranslated summary of this module.
1569
+ */
1570
+ set_summary(summary?: string | null): void;
1571
+ /**
1572
+ * Set the module bug tracker website address.
1573
+ * @param tracker The upstream bug tracker website for this module.
1574
+ */
1575
+ set_tracker(tracker: string): void;
1576
+ /**
1577
+ * Sets the eXtensible MetaData (XMD) for this module. XMD is arbitrary YAML
1578
+ * data that will be set and returned as-is (with the exception that the
1579
+ * ordering of mapping keys is not defined). Useful for carrying private data.
1580
+ *
1581
+ * This function assumes ownership of the XMD #GVariant and thus should not be
1582
+ * freed by the caller.
1583
+ * @param xmd A #GVariant representing arbitrary YAML.
1584
+ */
1585
+ set_xmd(xmd: GLib.Variant): void;
1586
+ }
1587
+
1588
+ module ModuleStreamV2 {
1589
+ // Constructor properties interface
1590
+
1591
+ interface ConstructorProps extends ModuleStream.ConstructorProps {
1592
+ arch: string;
1593
+ buildopts: Buildopts;
1594
+ community: string;
1595
+ documentation: string;
1596
+ static_context: boolean;
1597
+ staticContext: boolean;
1598
+ tracker: string;
1599
+ }
1600
+ }
1601
+
1602
+ class ModuleStreamV2 extends ModuleStream {
1603
+ static $gtype: GObject.GType<ModuleStreamV2>;
1604
+
1605
+ // Own properties of Modulemd.ModuleStreamV2
1606
+
1607
+ get arch(): string;
1608
+ set arch(val: string);
1609
+ get buildopts(): Buildopts;
1610
+ set buildopts(val: Buildopts);
1611
+ get community(): string;
1612
+ set community(val: string);
1613
+ get documentation(): string;
1614
+ set documentation(val: string);
1615
+ get static_context(): boolean;
1616
+ set static_context(val: boolean);
1617
+ get staticContext(): boolean;
1618
+ set staticContext(val: boolean);
1619
+ get tracker(): string;
1620
+ set tracker(val: string);
1621
+
1622
+ // Constructors of Modulemd.ModuleStreamV2
1623
+
1624
+ constructor(properties?: Partial<ModuleStreamV2.ConstructorProps>, ...args: any[]);
1625
+
1626
+ _init(...args: any[]): void;
1627
+
1628
+ static ['new'](module_name?: string | null, module_stream?: string | null): ModuleStreamV2;
1629
+ // Conflicted with Modulemd.ModuleStream.new
1630
+
1631
+ static ['new'](...args: never[]): any;
1632
+
1633
+ // Own methods of Modulemd.ModuleStreamV2
1634
+
1635
+ /**
1636
+ * Add a component definition to the module.
1637
+ * @param component A #ModulemdComponent to be added to this module stream.
1638
+ */
1639
+ add_component(component: Component): void;
1640
+ add_content_license(license: string): void;
1641
+ /**
1642
+ * Add a binary package name to a list of demodularized packages.
1643
+ * @param rpm A name of a binary RPM package to become non-modular.
1644
+ */
1645
+ add_demodularized_rpm(rpm: string): void;
1646
+ /**
1647
+ * Add a #ModulemdDependencies object to the list of dependencies for this
1648
+ * module stream.
1649
+ * @param deps A #ModulemdDependencies object to add to the list for this module stream.
1650
+ */
1651
+ add_dependencies(deps: Dependencies): void;
1652
+ add_module_license(license: string): void;
1653
+ /**
1654
+ * Adds a profile definition to this module stream.
1655
+ * @param profile A #ModulemdProfile for this module stream.
1656
+ */
1657
+ add_profile(profile: Profile): void;
1658
+ add_rpm_api(rpm: string): void;
1659
+ add_rpm_artifact(nevr: string): void;
1660
+ add_rpm_filter(rpm: string): void;
1661
+ /**
1662
+ * Adds a servicelevel definition to this module stream.
1663
+ * @param servicelevel A #ModulemdServiceLevel for this module stream.
1664
+ */
1665
+ add_servicelevel(servicelevel: ServiceLevel): void;
1666
+ /**
1667
+ * Remove all content licenses.
1668
+ */
1669
+ clear_content_licenses(): void;
1670
+ /**
1671
+ * Remove all RPM packages from a demodularized list of the object.
1672
+ */
1673
+ clear_demodularized_rpms(): void;
1674
+ /**
1675
+ * Empties the list of dependencies for this #ModulemdModuleStream.
1676
+ */
1677
+ clear_dependencies(): void;
1678
+ /**
1679
+ * Remove all module components from this module stream.
1680
+ */
1681
+ clear_module_components(): void;
1682
+ /**
1683
+ * Remove all module licenses.
1684
+ */
1685
+ clear_module_licenses(): void;
1686
+ /**
1687
+ * Remove all profiles from this module stream.
1688
+ */
1689
+ clear_profiles(): void;
1690
+ /**
1691
+ * Remove all RPMs from the list of stable public API.
1692
+ */
1693
+ clear_rpm_api(): void;
1694
+ /**
1695
+ * Remove all NPM NEVRs from the list of artifacts.
1696
+ */
1697
+ clear_rpm_artifacts(): void;
1698
+ /**
1699
+ * Remove all RPM components from this module stream.
1700
+ */
1701
+ clear_rpm_components(): void;
1702
+ /**
1703
+ * Remove all RPMs from the filter list.
1704
+ */
1705
+ clear_rpm_filters(): void;
1706
+ /**
1707
+ * Remove all servicelevels from this module stream.
1708
+ */
1709
+ clear_servicelevels(): void;
1710
+ /**
1711
+ * Removes all XMD data from this #ModulemdModuleStreamV2
1712
+ */
1713
+ clear_xmd(): void;
1714
+ get_arch(): string;
1715
+ get_buildopts(): Buildopts;
1716
+ get_community(): string;
1717
+ get_content_licenses(): string[];
1718
+ get_demodularized_rpms(): string[];
1719
+ /**
1720
+ * Return the list of #ModulemdDependencies objects as a #GPtrArray.
1721
+ * @returns A list of all #ModulemdDependencies objects associated with this module stream.
1722
+ */
1723
+ get_dependencies(): Dependencies[];
1724
+ get_description(locale?: string | null): string;
1725
+ get_documentation(): string;
1726
+ get_module_component(component_name: string): ComponentModule;
1727
+ get_module_component_names(): string[];
1728
+ get_module_licenses(): string[];
1729
+ get_obsoletes_resolved(): Obsoletes;
1730
+ get_profile(profile_name: string): Profile;
1731
+ get_profile_names(): string[];
1732
+ get_rpm_api(): string[];
1733
+ get_rpm_artifact_map_entry(digest: string, checksum: string): RpmMapEntry;
1734
+ get_rpm_artifacts(): string[];
1735
+ get_rpm_component(component_name: string): ComponentRpm;
1736
+ get_rpm_component_names(): string[];
1737
+ get_rpm_filters(): string[];
1738
+ get_servicelevel(servicelevel_name: string): ServiceLevel;
1739
+ get_servicelevel_names(): string[];
1740
+ get_summary(locale?: string | null): string;
1741
+ get_tracker(): string;
1742
+ get_xmd(): GLib.Variant;
1743
+ is_static_context(): boolean;
1744
+ remove_content_license(license: string): void;
1745
+ /**
1746
+ * Remove a binary package name from a list of demodularized packages.
1747
+ * @param rpm A binary RPM name to remove from a demodularized list.
1748
+ */
1749
+ remove_demodularized_rpm(rpm: string): void;
1750
+ /**
1751
+ * Removes all entries matching `deps` from the array of #ModulemdDependencies
1752
+ * objects.
1753
+ * @param deps A #ModulemdDependencies object to remove from the list for this module stream.
1754
+ */
1755
+ remove_dependencies(deps: Dependencies): void;
1756
+ /**
1757
+ * Remove a component from this module stream.
1758
+ * @param component_name The name of the component to remove from the module stream.
1759
+ */
1760
+ remove_module_component(component_name: string): void;
1761
+ remove_module_license(license: string): void;
1762
+ remove_rpm_api(rpm: string): void;
1763
+ remove_rpm_artifact(nevr: string): void;
1764
+ /**
1765
+ * Remove a component from this module stream.
1766
+ * @param component_name The name of the component to remove from the module stream.
1767
+ */
1768
+ remove_rpm_component(component_name: string): void;
1769
+ remove_rpm_filter(rpm: string): void;
1770
+ search_profiles(profile_pattern?: string | null): Profile[];
1771
+ /**
1772
+ * Set the module artifact architecture.
1773
+ * @param arch The module artifact architecture.
1774
+ */
1775
+ set_arch(arch: string): void;
1776
+ // Conflicted with Modulemd.ModuleStream.set_arch
1777
+ set_arch(...args: never[]): any;
1778
+ /**
1779
+ * Set build options for this module's components.
1780
+ * @param buildopts A #ModulemdBuildopts object describing build options that apply globally to components in this module.
1781
+ */
1782
+ set_buildopts(buildopts: Buildopts): void;
1783
+ /**
1784
+ * Set the module community website address.
1785
+ * @param community The upstream community website for this module.
1786
+ */
1787
+ set_community(community: string): void;
1788
+ /**
1789
+ * Set the module description.
1790
+ * @param description The untranslated description of this module.
1791
+ */
1792
+ set_description(description?: string | null): void;
1793
+ /**
1794
+ * Set the module documentation website address.
1795
+ * @param documentation The upstream documentation website for this module.
1796
+ */
1797
+ set_documentation(documentation: string): void;
1798
+ set_rpm_artifact_map_entry(entry: RpmMapEntry, digest: string, checksum: string): void;
1799
+ /**
1800
+ * Marks this #ModulemdModuleStreamV2 to indicate to dependency solvers that
1801
+ * they must treat the `context` attribute as informative.
1802
+ */
1803
+ set_static_context(): void;
1804
+ /**
1805
+ * Set the module summary.
1806
+ * @param summary The untranslated summary of this module.
1807
+ */
1808
+ set_summary(summary?: string | null): void;
1809
+ /**
1810
+ * Set the module bug tracker website address.
1811
+ * @param tracker The upstream bug tracker website for this module.
1812
+ */
1813
+ set_tracker(tracker: string): void;
1814
+ /**
1815
+ * Sets the eXtensible MetaData (XMD) for this module. XMD is arbitrary YAML
1816
+ * data that will be set and returned as-is (with the exception that the
1817
+ * ordering of mapping keys is not defined). Useful for carrying private data.
1818
+ *
1819
+ * This function assumes ownership of the XMD #GVariant and thus should not be
1820
+ * freed by the caller.
1821
+ * @param xmd A #GVariant representing arbitrary YAML.
1822
+ */
1823
+ set_xmd(xmd: GLib.Variant): void;
1824
+ /**
1825
+ * Marks this #ModulemdModuleStreamV2 to indicate to dependency solvers that
1826
+ * they must ignore the `context` attribute as a uniqueness element.
1827
+ */
1828
+ unset_static_context(): void;
1829
+ }
1830
+
1831
+ module Obsoletes {
1832
+ // Constructor properties interface
1833
+
1834
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
1835
+ eol_date: number;
1836
+ eolDate: number;
1837
+ mdversion: number;
1838
+ message: string;
1839
+ modified: number;
1840
+ module_context: string;
1841
+ moduleContext: string;
1842
+ module_name: string;
1843
+ moduleName: string;
1844
+ module_stream: string;
1845
+ moduleStream: string;
1846
+ obsoleted_by_module_name: string;
1847
+ obsoletedByModuleName: string;
1848
+ obsoleted_by_module_stream: string;
1849
+ obsoletedByModuleStream: string;
1850
+ override_previous: boolean;
1851
+ overridePrevious: boolean;
1852
+ }
1853
+ }
1854
+
1855
+ class Obsoletes extends GObject.Object {
1856
+ static $gtype: GObject.GType<Obsoletes>;
1857
+
1858
+ // Own properties of Modulemd.Obsoletes
1859
+
1860
+ get eol_date(): number;
1861
+ set eol_date(val: number);
1862
+ get eolDate(): number;
1863
+ set eolDate(val: number);
1864
+ get mdversion(): number;
1865
+ get message(): string;
1866
+ get modified(): number;
1867
+ set modified(val: number);
1868
+ get module_context(): string;
1869
+ set module_context(val: string);
1870
+ get moduleContext(): string;
1871
+ set moduleContext(val: string);
1872
+ get module_name(): string;
1873
+ get moduleName(): string;
1874
+ get module_stream(): string;
1875
+ get moduleStream(): string;
1876
+ get obsoleted_by_module_name(): string;
1877
+ set obsoleted_by_module_name(val: string);
1878
+ get obsoletedByModuleName(): string;
1879
+ set obsoletedByModuleName(val: string);
1880
+ get obsoleted_by_module_stream(): string;
1881
+ set obsoleted_by_module_stream(val: string);
1882
+ get obsoletedByModuleStream(): string;
1883
+ set obsoletedByModuleStream(val: string);
1884
+ get override_previous(): boolean;
1885
+ set override_previous(val: boolean);
1886
+ get overridePrevious(): boolean;
1887
+ set overridePrevious(val: boolean);
1888
+
1889
+ // Constructors of Modulemd.Obsoletes
1890
+
1891
+ constructor(properties?: Partial<Obsoletes.ConstructorProps>, ...args: any[]);
1892
+
1893
+ _init(...args: any[]): void;
1894
+
1895
+ static ['new'](
1896
+ mdversion: number,
1897
+ modified: number,
1898
+ module_name: string,
1899
+ module_stream: string,
1900
+ message: string,
1901
+ ): Obsoletes;
1902
+
1903
+ // Own methods of Modulemd.Obsoletes
1904
+
1905
+ /**
1906
+ * Create a copy of this #ModulemdObsoletes object.
1907
+ * @returns The copied #ModulemdObsoletes object.
1908
+ */
1909
+ copy(): Obsoletes;
1910
+ get_eol_date(): number;
1911
+ get_message(): string;
1912
+ get_modified(): number;
1913
+ get_module_context(): string;
1914
+ get_obsoleted_by_module_name(): string;
1915
+ get_obsoleted_by_module_stream(): string;
1916
+ get_reset(): boolean;
1917
+ is_active(): boolean;
1918
+ set_eol_date(eol_date: number): void;
1919
+ set_modified(modified: number): void;
1920
+ set_module_context(module_context?: string | null): void;
1921
+ /**
1922
+ * Sets both obsoleted by module name and stream because having one without
1923
+ * the other is invalid.
1924
+ * @param obsoleted_by_module_name The module name of obsoleting stream.
1925
+ * @param obsoleted_by_module_stream The module stream of obsoleting stream.
1926
+ */
1927
+ set_obsoleted_by(obsoleted_by_module_name: string, obsoleted_by_module_stream: string): void;
1928
+ /**
1929
+ * Sets the reset attribute on #ModulemdObsoletes object. With this boolean attribute set the
1930
+ * obsoletes resets (cancels out) all previously specified obsoletes.
1931
+ * @param reset Whether to reset/cancel all previously specified obsoletes.
1932
+ */
1933
+ set_reset(reset: boolean): void;
1934
+ /**
1935
+ * This method ensures that the obsoletes is internally consistent for usage
1936
+ * or dumping to YAML. It will be run implicitly prior to emitting YAML. This
1937
+ * is not a complete linter, merely a sanity check that the values are not
1938
+ * impossible.
1939
+ */
1940
+ validate(): boolean;
1941
+ }
1942
+
1943
+ module PackagerV3 {
1944
+ // Constructor properties interface
1945
+
1946
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
1947
+ }
1948
+
1949
+ class PackagerV3 extends GObject.Object {
1950
+ static $gtype: GObject.GType<PackagerV3>;
1951
+
1952
+ // Constructors of Modulemd.PackagerV3
1953
+
1954
+ constructor(properties?: Partial<PackagerV3.ConstructorProps>, ...args: any[]);
1955
+
1956
+ _init(...args: any[]): void;
1957
+
1958
+ static ['new'](): PackagerV3;
1959
+
1960
+ // Own methods of Modulemd.PackagerV3
1961
+
1962
+ add_build_config(buildconfig: BuildConfig): void;
1963
+ /**
1964
+ * Add a component definition to the module.
1965
+ * @param component A #ModulemdComponent to be added to this module stream.
1966
+ */
1967
+ add_component(component: Component): void;
1968
+ /**
1969
+ * Add a binary package name to a list of demodularized packages.
1970
+ * @param rpm A name of a binary RPM package to become non-modular.
1971
+ */
1972
+ add_demodularized_rpm(rpm: string): void;
1973
+ add_module_license(license: string): void;
1974
+ /**
1975
+ * Adds a #ModulemdProfile to this #ModulemdPackagerV3 object.
1976
+ * @param profile The new #ModulemdProfile to add.
1977
+ */
1978
+ add_profile(profile: Profile): void;
1979
+ add_rpm_api(rpm: string): void;
1980
+ add_rpm_filter(rpm: string): void;
1981
+ /**
1982
+ * Remove all added #ModulemdBuildConfig objects from `self`
1983
+ */
1984
+ clear_build_configs(): void;
1985
+ /**
1986
+ * Remove all RPM packages from a demodularized list of the object.
1987
+ */
1988
+ clear_demodularized_rpms(): void;
1989
+ /**
1990
+ * Remove all module components from this module stream.
1991
+ */
1992
+ clear_module_components(): void;
1993
+ /**
1994
+ * Remove all module licenses from `self`
1995
+ */
1996
+ clear_module_licenses(): void;
1997
+ /**
1998
+ * Removes all #ModulemdProfile objects from this #ModulemdPackagerV3 object.
1999
+ */
2000
+ clear_profiles(): void;
2001
+ /**
2002
+ * Remove all RPMs from the list of stable public API.
2003
+ */
2004
+ clear_rpm_api(): void;
2005
+ /**
2006
+ * Remove all RPM components from this module stream.
2007
+ */
2008
+ clear_rpm_components(): void;
2009
+ /**
2010
+ * Remove all RPMs from the filter list.
2011
+ */
2012
+ clear_rpm_filters(): void;
2013
+ convert_to_index(): ModuleIndex;
2014
+ copy(): PackagerV3;
2015
+ get_build_config(context: string): BuildConfig;
2016
+ get_build_config_contexts_as_strv(): string[];
2017
+ get_community(): string;
2018
+ get_demodularized_rpms(): string[];
2019
+ get_description(): string;
2020
+ get_documentation(): string;
2021
+ get_mdversion(): number;
2022
+ get_module_component(component_name: string): ComponentModule;
2023
+ get_module_component_names(): string[];
2024
+ get_module_licenses_as_strv(): string[];
2025
+ get_module_name(): string;
2026
+ get_profile(profile_name: string): Profile;
2027
+ get_profile_names_as_strv(): string[];
2028
+ get_rpm_api_as_strv(): string[];
2029
+ get_rpm_component(component_name: string): ComponentRpm;
2030
+ get_rpm_component_names(): string[];
2031
+ get_rpm_filters_as_strv(): string[];
2032
+ get_stream_name(): string;
2033
+ get_summary(): string;
2034
+ get_tracker(): string;
2035
+ get_xmd(): GLib.Variant;
2036
+ /**
2037
+ * Remove a binary package name from a list of demodularized packages.
2038
+ * @param rpm A binary RPM package name to remove from a demodularized list.
2039
+ */
2040
+ remove_demodularized_rpm(rpm: string): void;
2041
+ /**
2042
+ * Remove a component from this module stream.
2043
+ * @param component_name The name of the component to remove from the module stream.
2044
+ */
2045
+ remove_module_component(component_name: string): void;
2046
+ remove_module_license(license: string): void;
2047
+ remove_rpm_api(rpm: string): void;
2048
+ /**
2049
+ * Remove a component from this module stream.
2050
+ * @param component_name The name of the component to remove from the module stream.
2051
+ */
2052
+ remove_rpm_component(component_name: string): void;
2053
+ remove_rpm_filter(rpm: string): void;
2054
+ /**
2055
+ * Any existing demodularized binary RPM package names associated with module
2056
+ * stream `self` are removed and replaced by `set`.
2057
+ * @param set A #GHashTable set of names of binary RPM packages to demodularize.
2058
+ */
2059
+ replace_demodularized_rpms(set: { [key: string]: any } | GLib.HashTable<any, any>): void;
2060
+ /**
2061
+ * Any existing API RPMs associated with module stream `self` are removed and
2062
+ * replaced by `set`.
2063
+ * @param set A #GHashTable set of binary RPMs present in this module stream that is considered stable public API.
2064
+ */
2065
+ replace_rpm_api(set: { [key: string]: any } | GLib.HashTable<any, any>): void;
2066
+ /**
2067
+ * Any existing filtered binary RPM names associated with module stream `self`
2068
+ * are removed and replaced by `set`.
2069
+ * @param set A #GHashTable set of names of binary RPMs to filter out of this module stream.
2070
+ */
2071
+ replace_rpm_filters(set: { [key: string]: any } | GLib.HashTable<any, any>): void;
2072
+ /**
2073
+ * Set the module community website address.
2074
+ * @param community The upstream community website for this module.
2075
+ */
2076
+ set_community(community: string): void;
2077
+ /**
2078
+ * Sets the module's long description.
2079
+ * @param description A complete description of the module.
2080
+ */
2081
+ set_description(description?: string | null): void;
2082
+ /**
2083
+ * Set the module documentation website address.
2084
+ * @param documentation The upstream documentation website for this module.
2085
+ */
2086
+ set_documentation(documentation: string): void;
2087
+ /**
2088
+ * Sets the module name that this #ModulemdPackagerV3 object references.
2089
+ * @param module_name The name of the module.
2090
+ */
2091
+ set_module_name(module_name: string): void;
2092
+ /**
2093
+ * Sets the stream name that this #ModulemdPackagerV3 object references.
2094
+ * @param stream_name The name of the module.
2095
+ */
2096
+ set_stream_name(stream_name: string): void;
2097
+ /**
2098
+ * Sets the module's short description.
2099
+ * @param summary A short description of the module.
2100
+ */
2101
+ set_summary(summary?: string | null): void;
2102
+ /**
2103
+ * Set the module bug tracker website address.
2104
+ * @param tracker The upstream bug tracker website for this module.
2105
+ */
2106
+ set_tracker(tracker: string): void;
2107
+ /**
2108
+ * Sets the eXtensible MetaData (XMD) for this module. XMD is arbitrary YAML
2109
+ * data that will be set and returned as-is (with the exception that the
2110
+ * ordering of mapping keys is not defined). Useful for carrying private data.
2111
+ *
2112
+ * This function assumes ownership of the XMD #GVariant and thus should not be
2113
+ * freed by the caller.
2114
+ * @param xmd A #GVariant representing arbitrary YAML.
2115
+ */
2116
+ set_xmd(xmd: GLib.Variant): void;
2117
+ }
2118
+
2119
+ module Profile {
2120
+ // Constructor properties interface
2121
+
2122
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
2123
+ name: string;
2124
+ }
2125
+ }
2126
+
2127
+ class Profile extends GObject.Object {
2128
+ static $gtype: GObject.GType<Profile>;
2129
+
2130
+ // Own properties of Modulemd.Profile
2131
+
2132
+ get name(): string;
2133
+
2134
+ // Constructors of Modulemd.Profile
2135
+
2136
+ constructor(properties?: Partial<Profile.ConstructorProps>, ...args: any[]);
2137
+
2138
+ _init(...args: any[]): void;
2139
+
2140
+ static ['new'](name: string): Profile;
2141
+
2142
+ // Own methods of Modulemd.Profile
2143
+
2144
+ add_rpm(rpm: string): void;
2145
+ /**
2146
+ * Remove all RPMs from this profile.
2147
+ */
2148
+ clear_rpms(): void;
2149
+ /**
2150
+ * Create a copy of this #ModulemdProfile object.
2151
+ * @returns The copied #ModulemdProfile object.
2152
+ */
2153
+ copy(): Profile;
2154
+ equals(self_2: Profile): boolean;
2155
+ get_description(locale?: string | null): string;
2156
+ get_name(): string;
2157
+ get_rpms(): string[];
2158
+ is_default(): boolean;
2159
+ remove_rpm(rpm: string): void;
2160
+ /**
2161
+ * Calling this function indicates that this profile should be considered one
2162
+ * of the default profiles for the associated stream.
2163
+ */
2164
+ set_default(): void;
2165
+ set_description(description?: string | null): void;
2166
+ /**
2167
+ * Calling this function indicates that this profile should not be considered
2168
+ * one of the default profiles for this stream. This is the normal state of
2169
+ * a #ModulemdProfile and thus this function is usually unnecessary. It has no
2170
+ * effect if `self` is already non-default.
2171
+ */
2172
+ unset_default(): void;
2173
+ }
2174
+
2175
+ module RpmMapEntry {
2176
+ // Constructor properties interface
2177
+
2178
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
2179
+ arch: string;
2180
+ epoch: number;
2181
+ name: string;
2182
+ nevra: string;
2183
+ release: string;
2184
+ version: string;
2185
+ }
2186
+ }
2187
+
2188
+ class RpmMapEntry extends GObject.Object {
2189
+ static $gtype: GObject.GType<RpmMapEntry>;
2190
+
2191
+ // Own properties of Modulemd.RpmMapEntry
2192
+
2193
+ get arch(): string;
2194
+ set arch(val: string);
2195
+ get epoch(): number;
2196
+ set epoch(val: number);
2197
+ get name(): string;
2198
+ set name(val: string);
2199
+ get nevra(): string;
2200
+ get release(): string;
2201
+ set release(val: string);
2202
+ get version(): string;
2203
+ set version(val: string);
2204
+
2205
+ // Constructors of Modulemd.RpmMapEntry
2206
+
2207
+ constructor(properties?: Partial<RpmMapEntry.ConstructorProps>, ...args: any[]);
2208
+
2209
+ _init(...args: any[]): void;
2210
+
2211
+ static ['new'](name: string, epoch: number, version: string, release: string, arch: string): RpmMapEntry;
2212
+
2213
+ // Own methods of Modulemd.RpmMapEntry
2214
+
2215
+ copy(): RpmMapEntry;
2216
+ equals(other: RpmMapEntry): boolean;
2217
+ get_arch(): string;
2218
+ get_epoch(): number;
2219
+ get_name(): string;
2220
+ get_nevra(): string;
2221
+ get_release(): string;
2222
+ get_version(): string;
2223
+ set_arch(arch: string): void;
2224
+ set_epoch(epoch: number): void;
2225
+ set_name(name: string): void;
2226
+ set_release(release: string): void;
2227
+ set_version(version: string): void;
2228
+ validate(): boolean;
2229
+ }
2230
+
2231
+ module ServiceLevel {
2232
+ // Constructor properties interface
2233
+
2234
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
2235
+ name: string;
2236
+ }
2237
+ }
2238
+
2239
+ class ServiceLevel extends GObject.Object {
2240
+ static $gtype: GObject.GType<ServiceLevel>;
2241
+
2242
+ // Own properties of Modulemd.ServiceLevel
2243
+
2244
+ get name(): string;
2245
+
2246
+ // Constructors of Modulemd.ServiceLevel
2247
+
2248
+ constructor(properties?: Partial<ServiceLevel.ConstructorProps>, ...args: any[]);
2249
+
2250
+ _init(...args: any[]): void;
2251
+
2252
+ static ['new'](name: string): ServiceLevel;
2253
+
2254
+ // Own methods of Modulemd.ServiceLevel
2255
+
2256
+ /**
2257
+ * Create a copy of this #ModulemdServiceLevel object.
2258
+ * @returns The copied #ModulemdServiceLevel object.
2259
+ */
2260
+ copy(): ServiceLevel;
2261
+ equals(self_2: ServiceLevel): boolean;
2262
+ get_eol(): GLib.Date;
2263
+ get_eol_as_string(): string | null;
2264
+ /**
2265
+ * Get the name of this service level.
2266
+ * @returns The name of this service level. This is a pointer to the internal memory location and must not be freed.
2267
+ */
2268
+ get_name(): string;
2269
+ /**
2270
+ * Remove the EOL from this Service Level.
2271
+ */
2272
+ remove_eol(): void;
2273
+ /**
2274
+ * Sets the end date of the service level. If the #GDate passed in is invalid
2275
+ * or NULL, the EOL will be unset.
2276
+ * @param date The date this service level ends.
2277
+ */
2278
+ set_eol(date?: GLib.Date | null): void;
2279
+ set_eol_ymd(year: GLib.DateYear, month: GLib.DateMonth, day: GLib.DateDay): void;
2280
+ }
2281
+
2282
+ module SubdocumentInfo {
2283
+ // Constructor properties interface
2284
+
2285
+ interface ConstructorProps extends GObject.Object.ConstructorProps {}
2286
+ }
2287
+
2288
+ class SubdocumentInfo extends GObject.Object {
2289
+ static $gtype: GObject.GType<SubdocumentInfo>;
2290
+
2291
+ // Constructors of Modulemd.SubdocumentInfo
2292
+
2293
+ constructor(properties?: Partial<SubdocumentInfo.ConstructorProps>, ...args: any[]);
2294
+
2295
+ _init(...args: any[]): void;
2296
+
2297
+ // Own methods of Modulemd.SubdocumentInfo
2298
+
2299
+ get_gerror(): GLib.Error;
2300
+ get_yaml(): string;
2301
+ }
2302
+
2303
+ module Translation {
2304
+ // Constructor properties interface
2305
+
2306
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
2307
+ modified: number;
2308
+ module_name: string;
2309
+ moduleName: string;
2310
+ module_stream: string;
2311
+ moduleStream: string;
2312
+ version: number;
2313
+ }
2314
+ }
2315
+
2316
+ class Translation extends GObject.Object {
2317
+ static $gtype: GObject.GType<Translation>;
2318
+
2319
+ // Own properties of Modulemd.Translation
2320
+
2321
+ get modified(): number;
2322
+ set modified(val: number);
2323
+ get module_name(): string;
2324
+ get moduleName(): string;
2325
+ get module_stream(): string;
2326
+ get moduleStream(): string;
2327
+ get version(): number;
2328
+
2329
+ // Constructors of Modulemd.Translation
2330
+
2331
+ constructor(properties?: Partial<Translation.ConstructorProps>, ...args: any[]);
2332
+
2333
+ _init(...args: any[]): void;
2334
+
2335
+ static ['new'](version: number, module_name: string, module_stream: string, modified: number): Translation;
2336
+
2337
+ // Own methods of Modulemd.Translation
2338
+
2339
+ /**
2340
+ * Create a copy of this #ModulemdTranslation object.
2341
+ * @returns The copied #ModulemdTranslation object.
2342
+ */
2343
+ copy(): Translation;
2344
+ get_locales(): string[];
2345
+ get_translation_entry(locale: string): TranslationEntry;
2346
+ set_modified(modified: number): void;
2347
+ set_translation_entry(translation_entry: TranslationEntry): void;
2348
+ /**
2349
+ * This method ensures that the translation is internally consistent for usage
2350
+ * or dumping to YAML. It will be run implicitly prior to emitting YAML. This
2351
+ * is not a complete linter, merely a sanity check that the values are not
2352
+ * impossible.
2353
+ */
2354
+ validate(): boolean;
2355
+ }
2356
+
2357
+ module TranslationEntry {
2358
+ // Constructor properties interface
2359
+
2360
+ interface ConstructorProps extends GObject.Object.ConstructorProps {
2361
+ description: string;
2362
+ locale: string;
2363
+ summary: string;
2364
+ }
2365
+ }
2366
+
2367
+ class TranslationEntry extends GObject.Object {
2368
+ static $gtype: GObject.GType<TranslationEntry>;
2369
+
2370
+ // Own properties of Modulemd.TranslationEntry
2371
+
2372
+ get description(): string;
2373
+ set description(val: string);
2374
+ get locale(): string;
2375
+ get summary(): string;
2376
+ set summary(val: string);
2377
+
2378
+ // Constructors of Modulemd.TranslationEntry
2379
+
2380
+ constructor(properties?: Partial<TranslationEntry.ConstructorProps>, ...args: any[]);
2381
+
2382
+ _init(...args: any[]): void;
2383
+
2384
+ static ['new'](locale: string): TranslationEntry;
2385
+
2386
+ // Own methods of Modulemd.TranslationEntry
2387
+
2388
+ /**
2389
+ * Create a copy of this #ModulemdTranslationEntry object.
2390
+ * @returns The copied #ModulemdTranslationEntry object.
2391
+ */
2392
+ copy(): TranslationEntry;
2393
+ /**
2394
+ * Get the description of this translation entry.
2395
+ * @returns The description of this module stream translated into the language specified by locale.
2396
+ */
2397
+ get_description(): string;
2398
+ /**
2399
+ * Get the locale of this translation entry.
2400
+ * @returns The locale of this translation entry. This is a pointer to the internal memory location and must not be freed.
2401
+ */
2402
+ get_locale(): string;
2403
+ get_profile_description(profile_name: string): string;
2404
+ /**
2405
+ * Get a list of profiles that have descriptions.
2406
+ * @returns An ordered #GStrv list of profiles for which descriptions have been translated for this locale.
2407
+ */
2408
+ get_profiles(): string[];
2409
+ /**
2410
+ * Get the summary of this translation entry.
2411
+ * @returns The summary of this module stream translated into the language specified by locale.
2412
+ */
2413
+ get_summary(): string;
2414
+ set_description(description?: string | null): void;
2415
+ /**
2416
+ * Adds a profile name translation.
2417
+ * @param profile_name The name of the profile.
2418
+ * @param profile_description The translated description of the profile.
2419
+ */
2420
+ set_profile_description(profile_name: string, profile_description?: string | null): void;
2421
+ set_summary(summary?: string | null): void;
2422
+ }
2423
+
2424
+ type BuildConfigClass = typeof BuildConfig;
2425
+ type BuildoptsClass = typeof Buildopts;
2426
+ type ComponentClass = typeof Component;
2427
+ type ComponentModuleClass = typeof ComponentModule;
2428
+ type ComponentRpmClass = typeof ComponentRpm;
2429
+ type DefaultsClass = typeof Defaults;
2430
+ type DefaultsV1Class = typeof DefaultsV1;
2431
+ type DependenciesClass = typeof Dependencies;
2432
+ type ModuleClass = typeof Module;
2433
+ type ModuleIndexClass = typeof ModuleIndex;
2434
+ type ModuleIndexMergerClass = typeof ModuleIndexMerger;
2435
+ type ModuleStreamClass = typeof ModuleStream;
2436
+ type ModuleStreamV1Class = typeof ModuleStreamV1;
2437
+ type ModuleStreamV2Class = typeof ModuleStreamV2;
2438
+ type ObsoletesClass = typeof Obsoletes;
2439
+ type PackagerV3Class = typeof PackagerV3;
2440
+ type ProfileClass = typeof Profile;
2441
+ type RpmMapEntryClass = typeof RpmMapEntry;
2442
+ type ServiceLevelClass = typeof ServiceLevel;
2443
+ type SubdocumentInfoClass = typeof SubdocumentInfo;
2444
+ type TranslationClass = typeof Translation;
2445
+ type TranslationEntryClass = typeof TranslationEntry;
2446
+ /**
2447
+ * Name of the imported GIR library
2448
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
2449
+ */
2450
+ const __name__: string;
2451
+ /**
2452
+ * Version of the imported GIR library
2453
+ * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
2454
+ */
2455
+ const __version__: string;
2456
+ }
2457
+
2458
+ export default Modulemd;
2459
+ // END