/** * Type Definitions for Gjs (https://gjs.guide/) * * These type definitions are automatically generated, do not edit them by hand. * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir * * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ... */ import '@girs/gjs'; // Module dependencies import type Gio from '@girs/gio-2.0'; import type GObject from '@girs/gobject-2.0'; import type GLib from '@girs/glib-2.0'; import type GModule from '@girs/gmodule-2.0'; export namespace Gee { /** * Gee-0.8 */ /** * @gir-type Struct */ class FutureError extends GLib.Error { static $gtype: GObject.GType; // Static fields static ABANDON_PROMISE: number; static EXCEPTION: number; // Constructors constructor(options: { message: string; code: number }); } /** * @gir-type Enum */ export namespace ConcurrentSetRangeType { export const $gtype: GObject.GType; } /** * @gir-type Enum */ enum ConcurrentSetRangeType { HEAD, TAIL, BOUNDED, EMPTY, } /** * @gir-type Enum */ export namespace HazardPointerPolicy { export const $gtype: GObject.GType; } /** * @gir-type Enum */ enum HazardPointerPolicy { DEFAULT, THREAD_EXIT, TRY_FREE, FREE, TRY_RELEASE, RELEASE, } /** * @gir-type Enum */ export namespace HazardPointerReleasePolicy { export const $gtype: GObject.GType; } /** * @gir-type Enum */ enum HazardPointerReleasePolicy { HELPER_THREAD, MAIN_LOOP, } /** * @gir-type Enum */ export namespace TraversableStream { export const $gtype: GObject.GType; } /** * @gir-type Enum */ enum TraversableStream { YIELD, CONTINUE, END, WAIT, } /** * @param t */ function functions_get_equal_func_for(t: GObject.GType): [EqualDataFunc, null]; /** * @param t */ function functions_get_hash_func_for(t: GObject.GType): [HashDataFunc, null]; /** * @param t */ function functions_get_compare_func_for(t: GObject.GType): [GLib.CompareDataFunc, null]; function hazard_pointer_policy_is_concrete(): boolean; function hazard_pointer_policy_is_blocking(): boolean; function hazard_pointer_policy_is_safe(): boolean; function hazard_pointer_policy_to_concrete(): HazardPointerPolicy; /** * @param g_type * @param g_dup_func * @param task */ function task(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, task: Task): Future; function async_task(): globalThis.Promise; /** * @param _callback_ */ function async_task(_callback_: Gio.AsyncReadyCallback | null): void; /** * @param _callback_ */ function async_task(_callback_: Gio.AsyncReadyCallback | null): globalThis.Promise | void; /** * @param _res_ */ function async_task_finish(_res_: Gio.AsyncResult): void; /** * @gir-type Callback */ interface HashDataFunc { (t_type: GObject.GType, t_dup_func: GObject.BoxedCopyFunc, v: null): number; } /** * @gir-type Callback */ interface EqualDataFunc { (t_type: GObject.GType, t_dup_func: GObject.BoxedCopyFunc, a: null, b: null): boolean; } /** * @gir-type Callback */ interface LazyFunc { (g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): never; } /** * @gir-type Callback */ interface FoldMapFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc, k: null, v: null, a: null): never; } /** * @gir-type Callback */ interface ForallMapFunc { (k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc, k: null, v: null): boolean; } /** * @gir-type Callback */ interface Task { (g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): never; } /** * @gir-type Callback */ interface FoldFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, g: null, a: null): never; } /** * @gir-type Callback */ interface ForallFunc { (g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, g: null): boolean; } /** * @gir-type Callback */ interface UnfoldFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc): Lazy | null; } /** * @gir-type Callback */ interface StreamFunc { (g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, state: TraversableStream, g: Lazy | null): TraversableStream; } /** * @gir-type Callback */ interface MapFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, g: null): never; } /** * @gir-type Callback */ interface Predicate { (g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, g: null): boolean; } /** * @gir-type Callback */ interface FlatMapFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, g: null): Iterator; } namespace AbstractBidirList { // Signal signatures interface SignalSignatures extends AbstractList.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractList.ConstructorProps, BidirList.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; read_only_view: BidirList; readOnlyView: BidirList; } } /** * @gir-type Class */ abstract class AbstractBidirList extends AbstractList implements BidirList { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get read_only_view(): BidirList; /** * @read-only */ get readOnlyView(): BidirList; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractBidirList.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_bidir_list_iterator(): BidirListIterator; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_read_only_view(): BidirList; // Methods bidir_list_iterator(): BidirListIterator; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_read_only_view(): BidirList; list_iterator(): ListIterator; /** * @param index */ get(index: number): null; /** * @param index * @param item */ set(index: number, item: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param item */ index_of(item: never): number; /** * @param index * @param item */ insert(index: number, item: never): void; /** * @param index */ remove_at(index: number): null; /** * @param start * @param stop */ slice(start: number, stop: number): List | null; first(): null; last(): null; /** * @param index * @param collection */ insert_all(index: number, collection: Collection): void; /** * @param compare_func */ sort(compare_func: GLib.CompareDataFunc | null): void; /** * @virtual */ vfunc_list_iterator(): ListIterator; /** * @param index * @virtual */ vfunc_get(index: number): never; /** * @param index * @param item * @virtual */ vfunc_set(index: number, item: null): void; /** * @param item * @virtual */ vfunc_index_of(item: null): number; /** * @param index * @param item * @virtual */ vfunc_insert(index: number, item: null): void; /** * @param index * @virtual */ vfunc_remove_at(index: number): never; /** * @param start * @param stop * @virtual */ vfunc_slice(start: number, stop: number): List | null; /** * @virtual */ vfunc_first(): never; /** * @virtual */ vfunc_last(): never; /** * @param index * @param collection * @virtual */ vfunc_insert_all(index: number, collection: Collection): void; /** * @param compare_func * @virtual */ vfunc_sort(compare_func: GLib.CompareDataFunc | null): void; } namespace AbstractBidirSortedSet { // Signal signatures interface SignalSignatures extends AbstractSortedSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractSortedSet.ConstructorProps, BidirSortedSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; read_only_view: BidirSortedSet; readOnlyView: BidirSortedSet; } } /** * @gir-type Class */ abstract class AbstractBidirSortedSet extends AbstractSortedSet implements BidirSortedSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get read_only_view(): BidirSortedSet; /** * @read-only */ get readOnlyView(): BidirSortedSet; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractBidirSortedSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_bidir_iterator(): BidirIterator; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_read_only_view(): BidirSortedSet; // Methods bidir_iterator(): BidirIterator; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_read_only_view(): BidirSortedSet; first(): null; last(): null; /** * @param element */ iterator_at(element: never): Iterator | null; /** * @param element */ lower(element: never): null; /** * @param element */ higher(element: never): null; /** * @param element */ floor(element: never): null; /** * @param element */ ceil(element: never): null; /** * @param before */ head_set(before: never): SortedSet; /** * @param after */ tail_set(after: never): SortedSet; /** * @param from * @param to */ sub_set(from: never, to: never): SortedSet; /** * @virtual */ vfunc_first(): never; /** * @virtual */ vfunc_last(): never; /** * @param element * @virtual */ vfunc_iterator_at(element: null): Iterator | null; /** * @param element * @virtual */ vfunc_lower(element: null): null; /** * @param element * @virtual */ vfunc_higher(element: null): null; /** * @param element * @virtual */ vfunc_floor(element: null): null; /** * @param element * @virtual */ vfunc_ceil(element: null): null; /** * @param before * @virtual */ vfunc_head_set(before: null): SortedSet; /** * @param after * @virtual */ vfunc_tail_set(after: null): SortedSet; /** * @param from * @param to * @virtual */ vfunc_sub_set(from: null, to: null): SortedSet; } namespace AbstractBidirSortedMap { // Signal signatures interface SignalSignatures extends AbstractSortedMap.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::ascending-keys": (pspec: GObject.ParamSpec) => void; "notify::ascending-entries": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::keys": (pspec: GObject.ParamSpec) => void; "notify::values": (pspec: GObject.ParamSpec) => void; "notify::entries": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractSortedMap.ConstructorProps, BidirSortedMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; read_only_view: BidirSortedMap | any; readOnlyView: BidirSortedMap | any; } } /** * @gir-type Class */ abstract class AbstractBidirSortedMap extends AbstractSortedMap implements BidirSortedMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ // This accessor conflicts with another accessor's type in a parent class or interface. get read_only_view(): BidirSortedMap | any; /** * @read-only */ // This accessor conflicts with another accessor's type in a parent class or interface. get readOnlyView(): BidirSortedMap | any; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractBidirSortedMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_bidir_map_iterator(): BidirMapIterator; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_read_only_view(): BidirSortedMap; // Methods bidir_map_iterator(): BidirMapIterator; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_read_only_view(): BidirSortedMap; /** * @read-only * @category Inherited from Gee.SortedMap */ get ascending_keys(): SortedSet; /** * @read-only * @category Inherited from Gee.SortedMap */ get ascendingKeys(): SortedSet; /** * @read-only * @category Inherited from Gee.SortedMap */ get ascending_entries(): SortedSet; /** * @read-only * @category Inherited from Gee.SortedMap */ get ascendingEntries(): SortedSet; /** * @param before */ head_map(before: never): SortedMap; /** * @param after */ tail_map(after: never): SortedMap; /** * @param before * @param after */ sub_map(before: never, after: never): SortedMap; get_ascending_keys(): SortedSet; get_ascending_entries(): SortedSet; /** * @param before * @virtual */ vfunc_head_map(before: null): SortedMap; /** * @param after * @virtual */ vfunc_tail_map(after: null): SortedMap; /** * @param before * @param after * @virtual */ vfunc_sub_map(before: null, after: null): SortedMap; /** * @virtual */ vfunc_get_ascending_keys(): SortedSet; /** * @virtual */ vfunc_get_ascending_entries(): SortedSet; } namespace AbstractCollection { // Signal signatures interface SignalSignatures extends GObject.Object.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps, Traversable.ConstructorProps, Iterable.ConstructorProps, Collection.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; size: number; read_only: boolean; readOnly: boolean; read_only_view: Collection; readOnlyView: Collection; } } /** * @gir-type Class */ abstract class AbstractCollection extends GObject.Object implements Traversable, Iterable, Collection { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get size(): number; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; /** * @read-only */ get read_only_view(): Collection; /** * @read-only */ get readOnlyView(): Collection; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractCollection.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @param item * @virtual */ vfunc_contains(item: null): boolean; /** * @param item * @virtual */ vfunc_add(item: null): boolean; /** * @param item * @virtual */ vfunc_remove(item: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @virtual */ vfunc_iterator(): Iterator; /** * @param f * @virtual */ vfunc_foreach(f: ForallFunc): boolean; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_read_only_view(): Collection; // Methods /** * @param item */ contains(item: never): boolean; /** * @param item */ add(item: never): boolean; /** * @param item */ remove(item: never): boolean; clear(): void; iterator(): Iterator; /** * @param f */ foreach(f: ForallFunc): boolean; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_size(): number; get_read_only(): boolean; get_read_only_view(): Collection; /** * @param a_type * @param a_dup_func * @param f */ stream(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: StreamFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed */ fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: never): null; /** * @param a_type * @param a_dup_func * @param f */ map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: MapFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed */ scan(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: never): Iterator; /** * @param pred */ filter(pred: Predicate): Iterator; /** * @param offset * @param length */ chop(offset: number, length: number): Iterator; /** * @param a_type * @param a_dup_func * @param f */ flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FlatMapFunc): Iterator; /** * @param forks */ tee(forks: number): Iterator[]; /** * @param pred */ first_match(pred: Predicate): null; /** * @param pred */ any_match(pred: Predicate): boolean; /** * @param pred */ all_match(pred: Predicate): boolean; /** * @param compare */ max(compare: GLib.CompareDataFunc): null; /** * @param compare */ min(compare: GLib.CompareDataFunc): null; /** * @param compare */ order_by(compare: GLib.CompareDataFunc | null): Iterator; get_element_type(): GObject.GType; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_stream(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: StreamFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: null): never; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: MapFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_scan(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: null): Iterator; /** * @param pred * @virtual */ vfunc_filter(pred: Predicate): Iterator; /** * @param offset * @param length * @virtual */ vfunc_chop(offset: number, length: number): Iterator; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FlatMapFunc): Iterator; /** * @param forks * @virtual */ vfunc_tee(forks: number): Iterator[]; /** * @param pred * @virtual */ vfunc_first_match(pred: Predicate): null; /** * @param pred * @virtual */ vfunc_any_match(pred: Predicate): boolean; /** * @param pred * @virtual */ vfunc_all_match(pred: Predicate): boolean; /** * @param compare * @virtual */ vfunc_max(compare: GLib.CompareDataFunc): never; /** * @param compare * @virtual */ vfunc_min(compare: GLib.CompareDataFunc): never; /** * @param compare * @virtual */ vfunc_order_by(compare: GLib.CompareDataFunc | null): Iterator; /** * @virtual */ vfunc_get_element_type(): GObject.GType; /** * @param collection */ add_all(collection: Collection): boolean; /** * @param collection */ contains_all(collection: Collection): boolean; /** * @param collection */ remove_all(collection: Collection): boolean; /** * @param collection */ retain_all(collection: Collection): boolean; to_array(): null[]; /** * @param array */ add_all_array(array: never[]): boolean; /** * @param array */ contains_all_array(array: never[]): boolean; /** * @param array */ remove_all_array(array: never[]): boolean; /** * @param iter */ add_all_iterator(iter: Iterator): boolean; /** * @param iter */ contains_all_iterator(iter: Iterator): boolean; /** * @param iter */ remove_all_iterator(iter: Iterator): boolean; get_is_empty(): boolean; /** * @param collection * @virtual */ vfunc_add_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_contains_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_remove_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_retain_all(collection: Collection): boolean; /** * @virtual */ vfunc_to_array(): never[]; /** * @param array * @virtual */ vfunc_add_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_contains_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_remove_all_array(array: null[]): boolean; /** * @param iter * @virtual */ vfunc_add_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_contains_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_remove_all_iterator(iter: Iterator): boolean; /** * @virtual */ vfunc_get_is_empty(): boolean; } namespace AbstractList { // Signal signatures interface SignalSignatures extends AbstractCollection.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractCollection.ConstructorProps, List.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; read_only_view: List; readOnlyView: List; } } /** * @gir-type Class */ abstract class AbstractList extends AbstractCollection implements List { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get read_only_view(): List; /** * @read-only */ get readOnlyView(): List; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractList.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_list_iterator(): ListIterator; /** * @param index * @virtual */ vfunc_get(index: number): never; /** * @param index * @param item * @virtual */ vfunc_set(index: number, item: null): void; /** * @param item * @virtual */ vfunc_index_of(item: null): number; /** * @param index * @param item * @virtual */ vfunc_insert(index: number, item: null): void; /** * @param index * @virtual */ vfunc_remove_at(index: number): never; /** * @param start * @param stop * @virtual */ vfunc_slice(start: number, stop: number): List | null; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_read_only_view(): List; // Methods list_iterator(): ListIterator; /** * @param index */ get(index: number): null; /** * @param index * @param item */ set(index: number, item: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param item */ index_of(item: never): number; /** * @param index * @param item */ insert(index: number, item: never): void; /** * @param index */ remove_at(index: number): null; /** * @param start * @param stop */ slice(start: number, stop: number): List | null; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_read_only_view(): List; /** * @read-only * @category Inherited from Gee.Collection */ get size(): number; /** * @read-only * @category Inherited from Gee.Collection */ get read_only(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get readOnly(): boolean; first(): null; last(): null; /** * @param index * @param collection */ insert_all(index: number, collection: Collection): void; /** * @param compare_func */ sort(compare_func: GLib.CompareDataFunc | null): void; /** * @virtual */ vfunc_first(): never; /** * @virtual */ vfunc_last(): never; /** * @param index * @param collection * @virtual */ vfunc_insert_all(index: number, collection: Collection): void; /** * @param compare_func * @virtual */ vfunc_sort(compare_func: GLib.CompareDataFunc | null): void; /** * @param item */ contains(item: never): boolean; /** * @param item */ add(item: never): boolean; /** * @param item */ remove(item: never): boolean; clear(): void; /** * @param collection */ add_all(collection: Collection): boolean; /** * @param collection */ contains_all(collection: Collection): boolean; /** * @param collection */ remove_all(collection: Collection): boolean; /** * @param collection */ retain_all(collection: Collection): boolean; to_array(): null[]; /** * @param array */ add_all_array(array: never[]): boolean; /** * @param array */ contains_all_array(array: never[]): boolean; /** * @param array */ remove_all_array(array: never[]): boolean; /** * @param iter */ add_all_iterator(iter: Iterator): boolean; /** * @param iter */ contains_all_iterator(iter: Iterator): boolean; /** * @param iter */ remove_all_iterator(iter: Iterator): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; /** * @param item * @virtual */ vfunc_contains(item: null): boolean; /** * @param item * @virtual */ vfunc_add(item: null): boolean; /** * @param item * @virtual */ vfunc_remove(item: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @param collection * @virtual */ vfunc_add_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_contains_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_remove_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_retain_all(collection: Collection): boolean; /** * @virtual */ vfunc_to_array(): never[]; /** * @param array * @virtual */ vfunc_add_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_contains_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_remove_all_array(array: null[]): boolean; /** * @param iter * @virtual */ vfunc_add_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_contains_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_remove_all_iterator(iter: Iterator): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; iterator(): Iterator; /** * @virtual */ vfunc_iterator(): Iterator; } namespace AbstractMap { // Signal signatures interface SignalSignatures extends GObject.Object.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::keys": (pspec: GObject.ParamSpec) => void; "notify::values": (pspec: GObject.ParamSpec) => void; "notify::entries": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps, Traversable.ConstructorProps, Iterable.ConstructorProps, Map.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; size: number; read_only: boolean; readOnly: boolean; keys: Set; values: Collection; entries: Set; read_only_view: Map; readOnlyView: Map; } } /** * @gir-type Class */ abstract class AbstractMap extends GObject.Object implements Traversable, Iterable, Map { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get size(): number; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; /** * @read-only */ get keys(): Set; /** * @read-only */ get values(): Collection; /** * @read-only */ get entries(): Set; /** * @read-only */ get read_only_view(): Map; /** * @read-only */ get readOnlyView(): Map; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @param key * @virtual */ vfunc_has_key(key: null): boolean; /** * @param key * @param value * @virtual */ vfunc_has(key: null, value: null): boolean; /** * @param key * @virtual */ vfunc_get(key: null): null; /** * @param key * @param value * @virtual */ vfunc_set(key: null, value: null): void; /** * @param key * @virtual */ vfunc_unset(key: null): [boolean, never]; /** * @virtual */ vfunc_map_iterator(): MapIterator; /** * @virtual */ vfunc_clear(): void; /** * @param f * @virtual */ vfunc_foreach(f: ForallFunc): boolean; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_stream(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: StreamFunc): Iterator; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_keys(): Set; /** * @virtual */ vfunc_get_values(): Collection; /** * @virtual */ vfunc_get_entries(): Set; /** * @virtual */ vfunc_get_read_only_view(): Map; // Methods /** * @param key */ has_key(key: never): boolean; /** * @param key * @param value */ has(key: never, value: never): boolean; /** * @param key */ get(key: never): null; /** * @param key * @param value */ set(key: never, value: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param key */ unset(key: never): [boolean, null]; map_iterator(): MapIterator; clear(): void; /** * @param f */ foreach(f: ForallFunc): boolean; /** * @param a_type * @param a_dup_func * @param f */ stream(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: StreamFunc): Iterator; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_size(): number; get_read_only(): boolean; get_keys(): Set; get_values(): Collection; get_entries(): Set; get_read_only_view(): Map; /** * @param a_type * @param a_dup_func * @param f * @param seed */ fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: never): null; /** * @param a_type * @param a_dup_func * @param f */ map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: MapFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed */ scan(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: never): Iterator; /** * @param pred */ filter(pred: Predicate): Iterator; /** * @param offset * @param length */ chop(offset: number, length: number): Iterator; /** * @param a_type * @param a_dup_func * @param f */ flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FlatMapFunc): Iterator; /** * @param forks */ tee(forks: number): Iterator[]; /** * @param pred */ first_match(pred: Predicate): null; /** * @param pred */ any_match(pred: Predicate): boolean; /** * @param pred */ all_match(pred: Predicate): boolean; /** * @param compare */ max(compare: GLib.CompareDataFunc): null; /** * @param compare */ min(compare: GLib.CompareDataFunc): null; /** * @param compare */ order_by(compare: GLib.CompareDataFunc | null): Iterator; get_element_type(): GObject.GType; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: null): never; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: MapFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_scan(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: null): Iterator; /** * @param pred * @virtual */ vfunc_filter(pred: Predicate): Iterator; /** * @param offset * @param length * @virtual */ vfunc_chop(offset: number, length: number): Iterator; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FlatMapFunc): Iterator; /** * @param forks * @virtual */ vfunc_tee(forks: number): Iterator[]; /** * @param pred * @virtual */ vfunc_first_match(pred: Predicate): null; /** * @param pred * @virtual */ vfunc_any_match(pred: Predicate): boolean; /** * @param pred * @virtual */ vfunc_all_match(pred: Predicate): boolean; /** * @param compare * @virtual */ vfunc_max(compare: GLib.CompareDataFunc): never; /** * @param compare * @virtual */ vfunc_min(compare: GLib.CompareDataFunc): never; /** * @param compare * @virtual */ vfunc_order_by(compare: GLib.CompareDataFunc | null): Iterator; /** * @virtual */ vfunc_get_element_type(): GObject.GType; iterator(): Iterator; /** * @virtual */ vfunc_iterator(): Iterator; /** * @param key */ contains(key: never): boolean; /** * @param key */ remove(key: never): [boolean, null]; /** * @param map */ set_all(map: Map): void; /** * @param map */ unset_all(map: Map): boolean; /** * @param map */ remove_all(map: Map): boolean; /** * @param map */ has_all(map: Map): boolean; /** * @param map */ contains_all(map: Map): boolean; get_is_empty(): boolean; get_key_type(): GObject.GType; get_value_type(): GObject.GType; /** * @param map * @virtual */ vfunc_set_all(map: Map): void; /** * @param map * @virtual */ vfunc_unset_all(map: Map): boolean; /** * @param map * @virtual */ vfunc_has_all(map: Map): boolean; /** * @virtual */ vfunc_get_is_empty(): boolean; } namespace AbstractMultiMap { // Signal signatures interface SignalSignatures extends GObject.Object.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps, MultiMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ abstract class AbstractMultiMap extends GObject.Object implements MultiMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractMultiMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_create_value_storage(): Collection; /** * @virtual */ vfunc_create_multi_key_set(): MultiSet; /** * @virtual */ vfunc_get_value_equal_func(): [EqualDataFunc, never]; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_get_read_only_view(): MultiMap; // Methods create_value_storage(): Collection; create_multi_key_set(): MultiSet; get_value_equal_func(): [EqualDataFunc, null]; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; get_read_only_view(): MultiMap; /** * @read-only * @category Inherited from Gee.MultiMap */ get size(): number; /** * @read-only * @category Inherited from Gee.MultiMap */ get read_only(): boolean; /** * @read-only * @category Inherited from Gee.MultiMap */ get readOnly(): boolean; get_keys(): Set; get_all_keys(): MultiSet; get_values(): Collection; /** * @param key */ contains(key: never): boolean; /** * @param key */ get(key: never): Collection; /** * @param key * @param value */ set(key: never, value: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param key * @param value */ remove(key: never, value: never): boolean; /** * @param key */ remove_all(key: never): boolean; clear(): void; map_iterator(): MapIterator; get_size(): number; get_read_only(): boolean; get_key_type(): GObject.GType; get_value_type(): GObject.GType; /** * @virtual */ vfunc_get_keys(): Set; /** * @virtual */ vfunc_get_all_keys(): MultiSet; /** * @virtual */ vfunc_get_values(): Collection; /** * @param key * @virtual */ vfunc_contains(key: null): boolean; /** * @param key * @virtual */ vfunc_get(key: null): Collection; /** * @param key * @param value * @virtual */ vfunc_set(key: null, value: null): void; /** * @param key * @param value * @virtual */ vfunc_remove(key: null, value: null): boolean; /** * @param key * @virtual */ vfunc_remove_all(key: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @virtual */ vfunc_map_iterator(): MapIterator; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_read_only(): boolean; } namespace AbstractMultiSet { // Signal signatures interface SignalSignatures extends AbstractCollection.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractCollection.ConstructorProps, MultiSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ abstract class AbstractMultiSet extends AbstractCollection implements MultiSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractMultiSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_get_read_only_view(): MultiSet; // Methods reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; get_read_only_view(): MultiSet; /** * @read-only * @category Inherited from Gee.Collection */ get size(): number; /** * @read-only * @category Inherited from Gee.Collection */ get read_only(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get readOnly(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get read_only_view(): Collection; /** * @read-only * @category Inherited from Gee.Collection */ get readOnlyView(): Collection; /** * @param item */ count(item: never): number; /** * @param item * @virtual */ vfunc_count(item: null): number; /** * @param item */ contains(item: never): boolean; /** * @param item */ add(item: never): boolean; /** * @param item */ remove(item: never): boolean; clear(): void; /** * @param collection */ add_all(collection: Collection): boolean; /** * @param collection */ contains_all(collection: Collection): boolean; /** * @param collection */ remove_all(collection: Collection): boolean; /** * @param collection */ retain_all(collection: Collection): boolean; to_array(): null[]; /** * @param array */ add_all_array(array: never[]): boolean; /** * @param array */ contains_all_array(array: never[]): boolean; /** * @param array */ remove_all_array(array: never[]): boolean; /** * @param iter */ add_all_iterator(iter: Iterator): boolean; /** * @param iter */ contains_all_iterator(iter: Iterator): boolean; /** * @param iter */ remove_all_iterator(iter: Iterator): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; /** * @param item * @virtual */ vfunc_contains(item: null): boolean; /** * @param item * @virtual */ vfunc_add(item: null): boolean; /** * @param item * @virtual */ vfunc_remove(item: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @param collection * @virtual */ vfunc_add_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_contains_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_remove_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_retain_all(collection: Collection): boolean; /** * @virtual */ vfunc_to_array(): never[]; /** * @param array * @virtual */ vfunc_add_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_contains_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_remove_all_array(array: null[]): boolean; /** * @param iter * @virtual */ vfunc_add_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_contains_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_remove_all_iterator(iter: Iterator): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; iterator(): Iterator; /** * @virtual */ vfunc_iterator(): Iterator; } namespace AbstractQueue { // Signal signatures interface SignalSignatures extends AbstractCollection.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::capacity": (pspec: GObject.ParamSpec) => void; "notify::remaining-capacity": (pspec: GObject.ParamSpec) => void; "notify::is-full": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractCollection.ConstructorProps, Queue.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; capacity: number; remaining_capacity: number; remainingCapacity: number; is_full: boolean; isFull: boolean; } } /** * @gir-type Class */ abstract class AbstractQueue extends AbstractCollection implements Queue { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get capacity(): number; /** * @read-only */ get remaining_capacity(): number; /** * @read-only */ get remainingCapacity(): number; /** * @read-only */ get is_full(): boolean; /** * @read-only */ get isFull(): boolean; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractQueue.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_peek(): null; /** * @virtual */ vfunc_poll(): null; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_capacity(): number; /** * @virtual */ vfunc_get_remaining_capacity(): number; /** * @virtual */ vfunc_get_is_full(): boolean; // Methods peek(): null; poll(): null; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_capacity(): number; get_remaining_capacity(): number; get_is_full(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get size(): number; /** * @read-only * @category Inherited from Gee.Collection */ get read_only(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get readOnly(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get read_only_view(): Collection; /** * @read-only * @category Inherited from Gee.Collection */ get readOnlyView(): Collection; /** * @param element */ offer(element: never): boolean; /** * @param recipient * @param amount */ drain(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer(element: null): boolean; /** * @param recipient * @param amount * @virtual */ vfunc_drain(recipient: Collection, amount: number): number; /** * @param item */ contains(item: never): boolean; /** * @param item */ add(item: never): boolean; /** * @param item */ remove(item: never): boolean; clear(): void; /** * @param collection */ add_all(collection: Collection): boolean; /** * @param collection */ contains_all(collection: Collection): boolean; /** * @param collection */ remove_all(collection: Collection): boolean; /** * @param collection */ retain_all(collection: Collection): boolean; to_array(): null[]; /** * @param array */ add_all_array(array: never[]): boolean; /** * @param array */ contains_all_array(array: never[]): boolean; /** * @param array */ remove_all_array(array: never[]): boolean; /** * @param iter */ add_all_iterator(iter: Iterator): boolean; /** * @param iter */ contains_all_iterator(iter: Iterator): boolean; /** * @param iter */ remove_all_iterator(iter: Iterator): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; get_read_only_view(): Collection; /** * @param item * @virtual */ vfunc_contains(item: null): boolean; /** * @param item * @virtual */ vfunc_add(item: null): boolean; /** * @param item * @virtual */ vfunc_remove(item: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @param collection * @virtual */ vfunc_add_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_contains_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_remove_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_retain_all(collection: Collection): boolean; /** * @virtual */ vfunc_to_array(): never[]; /** * @param array * @virtual */ vfunc_add_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_contains_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_remove_all_array(array: null[]): boolean; /** * @param iter * @virtual */ vfunc_add_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_contains_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_remove_all_iterator(iter: Iterator): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_read_only_view(): Collection; iterator(): Iterator; /** * @virtual */ vfunc_iterator(): Iterator; } namespace AbstractSet { // Signal signatures interface SignalSignatures extends AbstractCollection.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractCollection.ConstructorProps, Set.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; read_only_view: Set; readOnlyView: Set; } } /** * @gir-type Class */ abstract class AbstractSet extends AbstractCollection implements Set { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get read_only_view(): Set; /** * @read-only */ get readOnlyView(): Set; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_read_only_view(): Set; // Methods reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_read_only_view(): Set; /** * @read-only * @category Inherited from Gee.Collection */ get size(): number; /** * @read-only * @category Inherited from Gee.Collection */ get read_only(): boolean; /** * @read-only * @category Inherited from Gee.Collection */ get readOnly(): boolean; /** * @param item */ contains(item: never): boolean; /** * @param item */ add(item: never): boolean; /** * @param item */ remove(item: never): boolean; clear(): void; /** * @param collection */ add_all(collection: Collection): boolean; /** * @param collection */ contains_all(collection: Collection): boolean; /** * @param collection */ remove_all(collection: Collection): boolean; /** * @param collection */ retain_all(collection: Collection): boolean; to_array(): null[]; /** * @param array */ add_all_array(array: never[]): boolean; /** * @param array */ contains_all_array(array: never[]): boolean; /** * @param array */ remove_all_array(array: never[]): boolean; /** * @param iter */ add_all_iterator(iter: Iterator): boolean; /** * @param iter */ contains_all_iterator(iter: Iterator): boolean; /** * @param iter */ remove_all_iterator(iter: Iterator): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; /** * @param item * @virtual */ vfunc_contains(item: null): boolean; /** * @param item * @virtual */ vfunc_add(item: null): boolean; /** * @param item * @virtual */ vfunc_remove(item: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @param collection * @virtual */ vfunc_add_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_contains_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_remove_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_retain_all(collection: Collection): boolean; /** * @virtual */ vfunc_to_array(): never[]; /** * @param array * @virtual */ vfunc_add_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_contains_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_remove_all_array(array: null[]): boolean; /** * @param iter * @virtual */ vfunc_add_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_contains_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_remove_all_iterator(iter: Iterator): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; iterator(): Iterator; /** * @virtual */ vfunc_iterator(): Iterator; } namespace AbstractSortedMap { // Signal signatures interface SignalSignatures extends AbstractMap.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::ascending-keys": (pspec: GObject.ParamSpec) => void; "notify::ascending-entries": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::keys": (pspec: GObject.ParamSpec) => void; "notify::values": (pspec: GObject.ParamSpec) => void; "notify::entries": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractMap.ConstructorProps, SortedMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; ascending_keys: SortedSet; ascendingKeys: SortedSet; ascending_entries: SortedSet; ascendingEntries: SortedSet; readOnlyView: AbstractSortedMap; read_only_view: AbstractSortedMap; } } /** * @gir-type Class */ abstract class AbstractSortedMap extends AbstractMap implements SortedMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get ascending_keys(): SortedSet; /** * @read-only */ get ascendingKeys(): SortedSet; /** * @read-only */ get ascending_entries(): SortedSet; /** * @read-only */ get ascendingEntries(): SortedSet; /** * @read-only */ get readOnlyView(): AbstractSortedMap; /** * @read-only */ get read_only_view(): AbstractSortedMap; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractSortedMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @param before * @virtual */ vfunc_head_map(before: null): SortedMap; /** * @param after * @virtual */ vfunc_tail_map(after: null): SortedMap; /** * @param before * @param after * @virtual */ vfunc_sub_map(before: null, after: null): SortedMap; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_ascending_keys(): SortedSet; /** * @virtual */ vfunc_get_ascending_entries(): SortedSet; // Methods /** * @param before */ head_map(before: never): SortedMap; /** * @param after */ tail_map(after: never): SortedMap; /** * @param before * @param after */ sub_map(before: never, after: never): SortedMap; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_ascending_keys(): SortedSet; get_ascending_entries(): SortedSet; /** * @read-only * @category Inherited from Gee.Map */ get size(): number; /** * @read-only * @category Inherited from Gee.Map */ get read_only(): boolean; /** * @read-only * @category Inherited from Gee.Map */ get readOnly(): boolean; /** * @read-only * @category Inherited from Gee.Map */ get keys(): Set; /** * @read-only * @category Inherited from Gee.Map */ get values(): Collection; /** * @read-only * @category Inherited from Gee.Map */ get entries(): Set; get_read_only_view(): SortedMap; /** * @virtual */ vfunc_get_read_only_view(): SortedMap; /** * @param key */ has_key(key: never): boolean; /** * @param key */ contains(key: never): boolean; /** * @param key * @param value */ has(key: never, value: never): boolean; /** * @param key */ get(key: never): null; /** * @param key * @param value */ set(key: never, value: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param key */ unset(key: never): [boolean, null]; /** * @param key */ remove(key: never): [boolean, null]; clear(): void; map_iterator(): MapIterator; /** * @param map */ set_all(map: Map): void; /** * @param map */ unset_all(map: Map): boolean; /** * @param map */ remove_all(map: Map): boolean; /** * @param map */ has_all(map: Map): boolean; /** * @param map */ contains_all(map: Map): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; get_keys(): Set; get_values(): Collection; get_entries(): Set; get_key_type(): GObject.GType; get_value_type(): GObject.GType; /** * @param key * @virtual */ vfunc_has_key(key: null): boolean; /** * @param key * @param value * @virtual */ vfunc_has(key: null, value: null): boolean; /** * @param key * @virtual */ vfunc_get(key: null): null; /** * @param key * @param value * @virtual */ vfunc_set(key: null, value: null): void; /** * @param key * @virtual */ vfunc_unset(key: null): [boolean, never]; /** * @virtual */ vfunc_clear(): void; /** * @virtual */ vfunc_map_iterator(): MapIterator; /** * @param map * @virtual */ vfunc_set_all(map: Map): void; /** * @param map * @virtual */ vfunc_unset_all(map: Map): boolean; /** * @param map * @virtual */ vfunc_has_all(map: Map): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_keys(): Set; /** * @virtual */ vfunc_get_values(): Collection; /** * @virtual */ vfunc_get_entries(): Set; } namespace AbstractSortedSet { // Signal signatures interface SignalSignatures extends AbstractSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractSet.ConstructorProps, SortedSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; read_only_view: SortedSet; readOnlyView: SortedSet; } } /** * @gir-type Class */ abstract class AbstractSortedSet extends AbstractSet implements SortedSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get read_only_view(): SortedSet; /** * @read-only */ get readOnlyView(): SortedSet; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: AbstractSortedSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_first(): never; /** * @virtual */ vfunc_last(): never; /** * @param element * @virtual */ vfunc_iterator_at(element: null): Iterator | null; /** * @param element * @virtual */ vfunc_lower(element: null): null; /** * @param element * @virtual */ vfunc_higher(element: null): null; /** * @param element * @virtual */ vfunc_floor(element: null): null; /** * @param element * @virtual */ vfunc_ceil(element: null): null; /** * @param before * @virtual */ vfunc_head_set(before: null): SortedSet; /** * @param after * @virtual */ vfunc_tail_set(after: null): SortedSet; /** * @param from * @param to * @virtual */ vfunc_sub_set(from: null, to: null): SortedSet; /** * @virtual */ vfunc_reserved0(): void; /** * @virtual */ vfunc_reserved1(): void; /** * @virtual */ vfunc_reserved2(): void; /** * @virtual */ vfunc_reserved3(): void; /** * @virtual */ vfunc_reserved4(): void; /** * @virtual */ vfunc_reserved5(): void; /** * @virtual */ vfunc_reserved6(): void; /** * @virtual */ vfunc_reserved7(): void; /** * @virtual */ vfunc_reserved8(): void; /** * @virtual */ vfunc_reserved9(): void; /** * @virtual */ vfunc_get_read_only_view(): SortedSet; // Methods first(): null; last(): null; /** * @param element */ iterator_at(element: never): Iterator | null; /** * @param element */ lower(element: never): null; /** * @param element */ higher(element: never): null; /** * @param element */ floor(element: never): null; /** * @param element */ ceil(element: never): null; /** * @param before */ head_set(before: never): SortedSet; /** * @param after */ tail_set(after: never): SortedSet; /** * @param from * @param to */ sub_set(from: never, to: never): SortedSet; reserved0(): void; reserved1(): void; reserved2(): void; reserved3(): void; reserved4(): void; reserved5(): void; reserved6(): void; reserved7(): void; reserved8(): void; reserved9(): void; get_read_only_view(): SortedSet; } namespace ArrayList { // Signal signatures interface SignalSignatures extends AbstractBidirList.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractBidirList.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class ArrayList extends AbstractBidirList { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: ArrayList.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, equal_func: EqualDataFunc | null): ArrayList; static wrap(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, items: never[], equal_func: EqualDataFunc | null): ArrayList; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods /** * @param collection */ add_all(collection: Collection): boolean; get_equal_func(): [EqualDataFunc, null]; } namespace ArrayQueue { // Signal signatures interface SignalSignatures extends AbstractQueue.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::is-empty": (pspec: GObject.ParamSpec) => void; "notify::capacity": (pspec: GObject.ParamSpec) => void; "notify::remaining-capacity": (pspec: GObject.ParamSpec) => void; "notify::is-full": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractQueue.ConstructorProps, Deque.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; is_empty: boolean; isEmpty: boolean; } } /** * @gir-type Class */ class ArrayQueue extends AbstractQueue implements Deque { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get is_empty(): boolean; /** * @read-only */ get isEmpty(): boolean; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: ArrayQueue.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, equal_func: EqualDataFunc | null): ArrayQueue; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_equal_func(): [EqualDataFunc, null]; get_is_empty(): boolean; /** * @read-only * @category Inherited from Gee.Queue */ get capacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get remaining_capacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get remainingCapacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get is_full(): boolean; /** * @read-only * @category Inherited from Gee.Queue */ get isFull(): boolean; /** * @param element */ offer_head(element: never): boolean; peek_head(): null; poll_head(): null; /** * @param recipient * @param amount */ drain_head(recipient: Collection, amount: number): number; /** * @param element */ offer_tail(element: never): boolean; peek_tail(): null; poll_tail(): null; /** * @param recipient * @param amount */ drain_tail(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_head(element: null): boolean; /** * @virtual */ vfunc_peek_head(): null; /** * @virtual */ vfunc_poll_head(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_head(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_tail(element: null): boolean; /** * @virtual */ vfunc_peek_tail(): null; /** * @virtual */ vfunc_poll_tail(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_tail(recipient: Collection, amount: number): number; /** * @param element */ offer(element: never): boolean; peek(): null; poll(): null; /** * @param recipient * @param amount */ drain(recipient: Collection, amount: number): number; get_capacity(): number; get_remaining_capacity(): number; get_is_full(): boolean; /** * @param element * @virtual */ vfunc_offer(element: null): boolean; /** * @virtual */ vfunc_peek(): null; /** * @virtual */ vfunc_poll(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain(recipient: Collection, amount: number): number; /** * @virtual */ vfunc_get_capacity(): number; /** * @virtual */ vfunc_get_remaining_capacity(): number; /** * @virtual */ vfunc_get_is_full(): boolean; } namespace ConcurrentList { // Signal signatures interface SignalSignatures extends AbstractList.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::is-empty": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractList.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; is_empty: boolean; isEmpty: boolean; } } /** * @gir-type Class */ class ConcurrentList extends AbstractList { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get is_empty(): boolean; /** * @read-only */ get isEmpty(): boolean; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: ConcurrentList.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, equal_func: EqualDataFunc | null): ConcurrentList; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_equal_func(): [EqualDataFunc, null]; get_is_empty(): boolean; } namespace ConcurrentSet { // Signal signatures interface SignalSignatures extends AbstractSortedSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractSortedSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class ConcurrentSet extends AbstractSortedSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: ConcurrentSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, compare_func: GLib.CompareDataFunc | null): ConcurrentSet; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; } namespace HashMap { // Signal signatures interface SignalSignatures extends AbstractMap.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::keys": (pspec: GObject.ParamSpec) => void; "notify::values": (pspec: GObject.ParamSpec) => void; "notify::entries": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class HashMap extends AbstractMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: HashMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc, key_hash_func: HashDataFunc | null, key_equal_func: EqualDataFunc | null, value_equal_func: EqualDataFunc | null): HashMap; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_key_hash_func(): [HashDataFunc, null]; get_key_equal_func(): [EqualDataFunc, null]; get_value_equal_func(): [EqualDataFunc, null]; } namespace HashMultiMap { // Signal signatures interface SignalSignatures extends AbstractMultiMap.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractMultiMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class HashMultiMap extends AbstractMultiMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: HashMultiMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc, key_hash_func: HashDataFunc | null, key_equal_func: EqualDataFunc | null, value_hash_func: HashDataFunc | null, value_equal_func: EqualDataFunc | null): HashMultiMap; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_key_hash_func(): [HashDataFunc, null]; get_key_equal_func(): [EqualDataFunc, null]; get_value_hash_func(): [HashDataFunc, null]; get_value_equal_func(): [EqualDataFunc, null]; } namespace HashMultiSet { // Signal signatures interface SignalSignatures extends AbstractMultiSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractMultiSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class HashMultiSet extends AbstractMultiSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: HashMultiSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, hash_func: HashDataFunc | null, equal_func: EqualDataFunc | null): HashMultiSet; static broken(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, hash_func: HashDataFunc | null, equal_func: EqualDataFunc | null): HashMultiSet; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_hash_func(): [HashDataFunc, null]; get_equal_func(): [EqualDataFunc, null]; } namespace HashSet { // Signal signatures interface SignalSignatures extends AbstractSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class HashSet extends AbstractSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: HashSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, hash_func: HashDataFunc | null, equal_func: EqualDataFunc | null): HashSet; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_hash_func(): [HashDataFunc, null]; get_equal_func(): [EqualDataFunc, null]; } namespace Lazy { // Signal signatures interface SignalSignatures extends GObject.Object.SignalSignatures {} } /** * @gir-type Class */ class Lazy { static $gtype: GObject.GType; // Fields ref_count: number; // Constructors _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, func: LazyFunc): Lazy; static from_value(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, item: never): Lazy; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods ["eval"](): void; get(): null; get_value(): null; get_future(): Future | null; } namespace LinkedList { // Signal signatures interface SignalSignatures extends AbstractBidirList.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::capacity": (pspec: GObject.ParamSpec) => void; "notify::remaining-capacity": (pspec: GObject.ParamSpec) => void; "notify::is-full": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractBidirList.ConstructorProps, Queue.ConstructorProps, Deque.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; readOnlyView: LinkedList; read_only_view: LinkedList; } } /** * @gir-type Class */ class LinkedList extends AbstractBidirList implements Queue, Deque { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get readOnlyView(): LinkedList; /** * @read-only */ get read_only_view(): LinkedList; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: LinkedList.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, equal_func: EqualDataFunc | null): LinkedList; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods first(): null; last(): null; get_equal_func(): [EqualDataFunc, null]; /** * @read-only * @category Inherited from Gee.Queue */ get capacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get remaining_capacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get remainingCapacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get is_full(): boolean; /** * @read-only * @category Inherited from Gee.Queue */ get isFull(): boolean; /** * @param element */ offer(element: never): boolean; peek(): null; poll(): null; /** * @param recipient * @param amount */ drain(recipient: Collection, amount: number): number; get_capacity(): number; get_remaining_capacity(): number; get_is_full(): boolean; /** * @param element * @virtual */ vfunc_offer(element: null): boolean; /** * @virtual */ vfunc_peek(): null; /** * @virtual */ vfunc_poll(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain(recipient: Collection, amount: number): number; /** * @virtual */ vfunc_get_capacity(): number; /** * @virtual */ vfunc_get_remaining_capacity(): number; /** * @virtual */ vfunc_get_is_full(): boolean; /** * @param element */ offer_head(element: never): boolean; peek_head(): null; poll_head(): null; /** * @param recipient * @param amount */ drain_head(recipient: Collection, amount: number): number; /** * @param element */ offer_tail(element: never): boolean; peek_tail(): null; poll_tail(): null; /** * @param recipient * @param amount */ drain_tail(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_head(element: null): boolean; /** * @virtual */ vfunc_peek_head(): null; /** * @virtual */ vfunc_poll_head(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_head(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_tail(element: null): boolean; /** * @virtual */ vfunc_peek_tail(): null; /** * @virtual */ vfunc_poll_tail(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_tail(recipient: Collection, amount: number): number; } namespace PriorityQueue { // Signal signatures interface SignalSignatures extends AbstractQueue.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::capacity": (pspec: GObject.ParamSpec) => void; "notify::remaining-capacity": (pspec: GObject.ParamSpec) => void; "notify::is-full": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractQueue.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class PriorityQueue extends AbstractQueue { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: PriorityQueue.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, compare_func: GLib.CompareDataFunc | null): PriorityQueue; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods /** * @param element */ offer(element: never): boolean; /** * @param recipient * @param amount */ drain(recipient: Collection, amount: number): number; get_compare_func(): [GLib.CompareDataFunc, null]; } namespace Promise { // Signal signatures interface SignalSignatures extends GObject.Object.SignalSignatures {} } /** * @gir-type Class */ class Promise { static $gtype: GObject.GType; // Fields ref_count: number; // Constructors _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): Promise; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods /** * @param value */ set_value(value: never): void; /** * @param exception */ set_exception(exception: GLib.Error): void; get_future(): Future; } namespace TreeMap { // Signal signatures interface SignalSignatures extends AbstractBidirSortedMap.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::ascending-keys": (pspec: GObject.ParamSpec) => void; "notify::ascending-entries": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::keys": (pspec: GObject.ParamSpec) => void; "notify::values": (pspec: GObject.ParamSpec) => void; "notify::entries": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractBidirSortedMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class TreeMap extends AbstractBidirSortedMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: TreeMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc, key_compare_func: GLib.CompareDataFunc | null, value_equal_func: EqualDataFunc | null): TreeMap; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_key_compare_func(): [GLib.CompareDataFunc, null]; get_value_equal_func(): [EqualDataFunc, null]; } namespace TreeMultiMap { // Signal signatures interface SignalSignatures extends AbstractMultiMap.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractMultiMap.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class TreeMultiMap extends AbstractMultiMap { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: TreeMultiMap.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc, key_compare_func: GLib.CompareDataFunc | null, value_compare_func: GLib.CompareDataFunc | null): TreeMultiMap; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_key_compare_func(): [GLib.CompareDataFunc, null]; get_value_compare_func(): [GLib.CompareDataFunc, null]; } namespace TreeMultiSet { // Signal signatures interface SignalSignatures extends AbstractMultiSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractMultiSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class TreeMultiSet extends AbstractMultiSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: TreeMultiSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, compare_func: GLib.CompareDataFunc | null): TreeMultiSet; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_compare_func(): [GLib.CompareDataFunc, null]; } namespace TreeSet { // Signal signatures interface SignalSignatures extends AbstractBidirSortedSet.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractBidirSortedSet.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; } } /** * @gir-type Class */ class TreeSet extends AbstractBidirSortedSet { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: TreeSet.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, compare_func: GLib.CompareDataFunc | null): TreeSet; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_compare_func(): [GLib.CompareDataFunc, null]; } namespace UnrolledLinkedList { // Signal signatures interface SignalSignatures extends AbstractBidirList.SignalSignatures { "notify::g-type": (pspec: GObject.ParamSpec) => void; "notify::g-dup-func": (pspec: GObject.ParamSpec) => void; "notify::g-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::read-only-view": (pspec: GObject.ParamSpec) => void; "notify::size": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; "notify::capacity": (pspec: GObject.ParamSpec) => void; "notify::remaining-capacity": (pspec: GObject.ParamSpec) => void; "notify::is-full": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends AbstractBidirList.ConstructorProps, Queue.ConstructorProps, Deque.ConstructorProps { g_type: GObject.GTypeInput; gType: GObject.GTypeInput; g_dup_func: GObject.BoxedCopyFunc; gDupFunc: GObject.BoxedCopyFunc; g_destroy_func: GLib.DestroyNotify; gDestroyFunc: GLib.DestroyNotify; readOnlyView: UnrolledLinkedList; read_only_view: UnrolledLinkedList; } } /** * @gir-type Class */ class UnrolledLinkedList extends AbstractBidirList implements Queue, Deque { static $gtype: GObject.GType; // Properties /** * @construct-only */ get g_type(): GObject.GType; /** * @construct-only */ get gType(): GObject.GType; /** * @construct-only */ get g_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get gDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get g_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get gDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get readOnlyView(): UnrolledLinkedList; /** * @read-only */ get read_only_view(): UnrolledLinkedList; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: UnrolledLinkedList.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, equal_func: EqualDataFunc | null): UnrolledLinkedList; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Methods get_equal_func(): [EqualDataFunc, null]; /** * @read-only * @category Inherited from Gee.Queue */ get capacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get remaining_capacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get remainingCapacity(): number; /** * @read-only * @category Inherited from Gee.Queue */ get is_full(): boolean; /** * @read-only * @category Inherited from Gee.Queue */ get isFull(): boolean; /** * @param element */ offer(element: never): boolean; peek(): null; poll(): null; /** * @param recipient * @param amount */ drain(recipient: Collection, amount: number): number; get_capacity(): number; get_remaining_capacity(): number; get_is_full(): boolean; /** * @param element * @virtual */ vfunc_offer(element: null): boolean; /** * @virtual */ vfunc_peek(): null; /** * @virtual */ vfunc_poll(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain(recipient: Collection, amount: number): number; /** * @virtual */ vfunc_get_capacity(): number; /** * @virtual */ vfunc_get_remaining_capacity(): number; /** * @virtual */ vfunc_get_is_full(): boolean; /** * @param element */ offer_head(element: never): boolean; peek_head(): null; poll_head(): null; /** * @param recipient * @param amount */ drain_head(recipient: Collection, amount: number): number; /** * @param element */ offer_tail(element: never): boolean; peek_tail(): null; poll_tail(): null; /** * @param recipient * @param amount */ drain_tail(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_head(element: null): boolean; /** * @virtual */ vfunc_peek_head(): null; /** * @virtual */ vfunc_poll_head(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_head(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_tail(element: null): boolean; /** * @virtual */ vfunc_peek_tail(): null; /** * @virtual */ vfunc_poll_tail(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_tail(recipient: Collection, amount: number): number; } namespace MapEntry { // Signal signatures interface SignalSignatures extends GObject.Object.SignalSignatures { "notify::k-type": (pspec: GObject.ParamSpec) => void; "notify::k-dup-func": (pspec: GObject.ParamSpec) => void; "notify::k-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::v-type": (pspec: GObject.ParamSpec) => void; "notify::v-dup-func": (pspec: GObject.ParamSpec) => void; "notify::v-destroy-func": (pspec: GObject.ParamSpec) => void; "notify::key": (pspec: GObject.ParamSpec) => void; "notify::value": (pspec: GObject.ParamSpec) => void; "notify::read-only": (pspec: GObject.ParamSpec) => void; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps { k_type: GObject.GTypeInput; kType: GObject.GTypeInput; k_dup_func: GObject.BoxedCopyFunc; kDupFunc: GObject.BoxedCopyFunc; k_destroy_func: GLib.DestroyNotify; kDestroyFunc: GLib.DestroyNotify; v_type: GObject.GTypeInput; vType: GObject.GTypeInput; v_dup_func: GObject.BoxedCopyFunc; vDupFunc: GObject.BoxedCopyFunc; v_destroy_func: GLib.DestroyNotify; vDestroyFunc: GLib.DestroyNotify; key: never; value: never; read_only: boolean; readOnly: boolean; } } /** * @gir-type Class */ abstract class MapEntry extends GObject.Object { static $gtype: GObject.GType; // Properties /** * @construct-only */ get k_type(): GObject.GType; /** * @construct-only */ get kType(): GObject.GType; /** * @construct-only */ get k_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get kDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get k_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get kDestroyFunc(): GLib.DestroyNotify; /** * @construct-only */ get v_type(): GObject.GType; /** * @construct-only */ get vType(): GObject.GType; /** * @construct-only */ get v_dup_func(): GObject.BoxedCopyFunc; /** * @construct-only */ get vDupFunc(): GObject.BoxedCopyFunc; /** * @construct-only */ get v_destroy_func(): GLib.DestroyNotify; /** * @construct-only */ get vDestroyFunc(): GLib.DestroyNotify; /** * @read-only */ get key(): null; get value(): null; set value(val: never); /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; /** * Compile-time signal type information. * * This instance property is generated only for TypeScript type checking. * It is not defined at runtime and should not be accessed in JS code. * @internal */ $signals: MapEntry.SignalSignatures; // Constructors constructor(properties?: Partial, ...args: any[]); _init(...args: any[]): void; // Signals /** @signal */ connect(signal: K, callback: GObject.SignalCallback): number; connect(signal: string, callback: (...args: any[]) => any): number; /** @signal */ connect_after(signal: K, callback: GObject.SignalCallback): number; connect_after(signal: string, callback: (...args: any[]) => any): number; /** @signal */ emit(signal: K, ...args: GObject.GjsParameters extends [any, ...infer Q] ? Q : never): void; emit(signal: string, ...args: any[]): void; // Virtual methods /** * @virtual */ vfunc_get_key(): never; /** * @virtual */ vfunc_get_value(): never; /** * @param value * @virtual */ vfunc_set_value(value: null): void; /** * @virtual */ vfunc_get_read_only(): boolean; // Methods get_key(): null; get_value(): null; /** * @param value */ set_value(value: never): void; get_read_only(): boolean; } /** * @gir-type Alias */ type AbstractBidirListClass = typeof AbstractBidirList; /** * @gir-type Struct */ abstract class AbstractBidirListPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractBidirSortedSetClass = typeof AbstractBidirSortedSet; /** * @gir-type Struct */ abstract class AbstractBidirSortedSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractBidirSortedMapClass = typeof AbstractBidirSortedMap; /** * @gir-type Struct */ abstract class AbstractBidirSortedMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractCollectionClass = typeof AbstractCollection; /** * @gir-type Struct */ abstract class AbstractCollectionPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractListClass = typeof AbstractList; /** * @gir-type Struct */ abstract class AbstractListPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractMapClass = typeof AbstractMap; /** * @gir-type Struct */ abstract class AbstractMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractMultiMapClass = typeof AbstractMultiMap; /** * @gir-type Struct */ abstract class AbstractMultiMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractMultiSetClass = typeof AbstractMultiSet; /** * @gir-type Struct */ abstract class AbstractMultiSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractQueueClass = typeof AbstractQueue; /** * @gir-type Struct */ abstract class AbstractQueuePrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractSetClass = typeof AbstractSet; /** * @gir-type Struct */ abstract class AbstractSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractSortedMapClass = typeof AbstractSortedMap; /** * @gir-type Struct */ abstract class AbstractSortedMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type AbstractSortedSetClass = typeof AbstractSortedSet; /** * @gir-type Struct */ abstract class AbstractSortedSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type ArrayListClass = typeof ArrayList; /** * @gir-type Struct */ abstract class ArrayListPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type ArrayQueueClass = typeof ArrayQueue; /** * @gir-type Struct */ abstract class ArrayQueuePrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type ConcurrentListClass = typeof ConcurrentList; /** * @gir-type Struct */ abstract class ConcurrentListPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type ConcurrentSetClass = typeof ConcurrentSet; /** * @gir-type Struct */ abstract class ConcurrentSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type HashMapClass = typeof HashMap; /** * @gir-type Struct */ abstract class HashMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type HashMultiMapClass = typeof HashMultiMap; /** * @gir-type Struct */ abstract class HashMultiMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type HashMultiSetClass = typeof HashMultiSet; /** * @gir-type Struct */ abstract class HashMultiSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type HashSetClass = typeof HashSet; /** * @gir-type Struct */ abstract class HashSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Struct */ class HazardPointer { static $gtype: GObject.GType; // Constructors constructor(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, ptr: null); static ["new"](g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, ptr: null): HazardPointer; // Static methods /** * @param g_type * @param g_dup_func * @param aptr * @param mask */ static get_hazard_pointer(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, aptr: null, mask: bigint | number): [HazardPointer | null, number]; /** * @param g_type * @param g_dup_func * @param aptr * @param mask */ static get_pointer(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, aptr: null, mask: bigint | number): [null, number]; /** * @param g_type * @param g_dup_func * @param aptr * @param new_ptr * @param mask * @param new_mask */ static exchange_hazard_pointer(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, aptr: null, new_ptr: null, mask: bigint | number, new_mask: bigint | number): [HazardPointer | null, number]; /** * @param g_type * @param g_dup_func * @param aptr * @param new_ptr * @param mask * @param new_mask */ static set_pointer(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, aptr: null, new_ptr: null, mask: bigint | number, new_mask: bigint | number): void; /** * @param g_type * @param g_dup_func * @param aptr * @param new_ptr * @param mask * @param new_mask */ static exchange_pointer(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, aptr: null, new_ptr: null, mask: bigint | number, new_mask: bigint | number): [null, number]; /** * @param g_type * @param g_dup_func * @param aptr * @param old_ptr * @param _new_ptr * @param mask * @param old_mask * @param new_mask */ static compare_and_exchange_pointer(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, aptr: null, old_ptr: null, _new_ptr: null, mask: bigint | number, old_mask: bigint | number, new_mask: bigint | number): boolean; /** * @param policy */ static set_default_policy(policy: HazardPointerPolicy): void; /** * @param policy */ static set_thread_exit_policy(policy: HazardPointerPolicy): void; /** * @param policy */ static set_release_policy(policy: HazardPointerReleasePolicy): boolean; // Methods /** * @param other_thread */ get(other_thread: boolean): null; release(): void; } /** * @gir-type Struct */ class HazardPointerContext { static $gtype: GObject.GType; // Constructors constructor(policy: HazardPointerPolicy | null); static ["new"](policy: HazardPointerPolicy | null): HazardPointerContext; // Methods try_free(): void; free_all(): void; try_release(): void; release(): void; } /** * @gir-type Alias */ type LazyClass = typeof Lazy; /** * @gir-type Struct */ abstract class LazyPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type LinkedListClass = typeof LinkedList; /** * @gir-type Struct */ abstract class LinkedListPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type PriorityQueueClass = typeof PriorityQueue; /** * @gir-type Struct */ abstract class PriorityQueuePrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type PromiseClass = typeof Promise; /** * @gir-type Struct */ abstract class PromisePrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type TreeMapClass = typeof TreeMap; /** * @gir-type Struct */ abstract class TreeMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type TreeMultiMapClass = typeof TreeMultiMap; /** * @gir-type Struct */ abstract class TreeMultiMapPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type TreeMultiSetClass = typeof TreeMultiSet; /** * @gir-type Struct */ abstract class TreeMultiSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type TreeSetClass = typeof TreeSet; /** * @gir-type Struct */ abstract class TreeSetPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type UnrolledLinkedListClass = typeof UnrolledLinkedList; /** * @gir-type Struct */ abstract class UnrolledLinkedListPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type BidirIteratorIface = typeof BidirIterator; /** * @gir-type Alias */ type BidirListIface = typeof BidirList; /** * @gir-type Alias */ type BidirListIteratorIface = typeof BidirListIterator; /** * @gir-type Alias */ type BidirMapIteratorIface = typeof BidirMapIterator; /** * @gir-type Alias */ type BidirSortedSetIface = typeof BidirSortedSet; /** * @gir-type Alias */ type BidirSortedMapIface = typeof BidirSortedMap; /** * @gir-type Alias */ type CollectionIface = typeof Collection; /** * @gir-type Alias */ type ComparableIface = typeof Comparable; /** * @gir-type Alias */ type DequeIface = typeof Deque; /** * @gir-type Alias */ type FutureIface = typeof Future; /** * @gir-type Alias */ type HashableIface = typeof Hashable; /** * @gir-type Alias */ type IterableIface = typeof Iterable; /** * @gir-type Alias */ type IteratorIface = typeof Iterator; /** * @gir-type Alias */ type ListIface = typeof List; /** * @gir-type Alias */ type ListIteratorIface = typeof ListIterator; /** * @gir-type Alias */ type MapIface = typeof Map; /** * @gir-type Alias */ type MapEntryClass = typeof MapEntry; /** * @gir-type Struct */ abstract class MapEntryPrivate { static $gtype: GObject.GType; } /** * @gir-type Alias */ type MapIteratorIface = typeof MapIterator; /** * @gir-type Alias */ type MultiMapIface = typeof MultiMap; /** * @gir-type Alias */ type MultiSetIface = typeof MultiSet; /** * @gir-type Alias */ type QueueIface = typeof Queue; /** * @gir-type Alias */ type SetIface = typeof Set; /** * @gir-type Alias */ type SortedMapIface = typeof SortedMap; /** * @gir-type Alias */ type SortedSetIface = typeof SortedSet; /** * @gir-type Alias */ type TraversableIface = typeof Traversable; namespace BidirIterator { /** * Interface for implementing BidirIterator. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Iterator.Interface { // Virtual methods /** * @virtual */ vfunc_previous(): boolean; /** * @virtual */ vfunc_has_previous(): boolean; /** * @virtual */ vfunc_first(): boolean; /** * @virtual */ vfunc_last(): boolean; } // Constructor properties interface interface ConstructorProps extends Iterator.ConstructorProps {} } export interface BidirIteratorNamespace { $gtype: GObject.GType; prototype: BidirIterator; } /** * @gir-type Interface */ interface BidirIterator extends Iterator, BidirIterator.Interface { // Methods previous(): boolean; has_previous(): boolean; first(): boolean; last(): boolean; } export const BidirIterator: BidirIteratorNamespace & { new (): BidirIterator; // This allows `obj instanceof BidirIterator` }; namespace BidirList { /** * Interface for implementing BidirList. * Contains only the virtual methods that need to be implemented. */ interface Interface extends List.Interface { // Virtual methods /** * @virtual */ vfunc_bidir_list_iterator(): BidirListIterator; /** * @virtual */ vfunc_get_read_only_view(): BidirList; } // Constructor properties interface interface ConstructorProps extends List.ConstructorProps { read_only_view: BidirList; readOnlyView: BidirList; } } export interface BidirListNamespace { $gtype: GObject.GType; prototype: BidirList; } /** * @gir-type Interface */ interface BidirList extends List { // Properties /** * @read-only */ get read_only_view(): BidirList; /** * @read-only */ get readOnlyView(): BidirList; // Methods bidir_list_iterator(): BidirListIterator; get_read_only_view(): BidirList; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @virtual */ vfunc_bidir_list_iterator(): BidirListIterator; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): BidirList; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): List; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Collection; } export const BidirList: BidirListNamespace & { new (): BidirList; // This allows `obj instanceof BidirList` }; namespace BidirListIterator { /** * Interface for implementing BidirListIterator. * Contains only the virtual methods that need to be implemented. */ interface Interface extends BidirIterator.Interface { // Virtual methods /** * @param item * @virtual */ vfunc_insert(item: null): void; } // Constructor properties interface interface ConstructorProps extends BidirIterator.ConstructorProps {} } export interface BidirListIteratorNamespace { $gtype: GObject.GType; prototype: BidirListIterator; } /** * @gir-type Interface */ interface BidirListIterator extends BidirIterator, BidirListIterator.Interface { // Methods /** * @param item */ insert(item: never): void; } export const BidirListIterator: BidirListIteratorNamespace & { new (): BidirListIterator; // This allows `obj instanceof BidirListIterator` }; namespace BidirMapIterator { /** * Interface for implementing BidirMapIterator. * Contains only the virtual methods that need to be implemented. */ interface Interface extends MapIterator.Interface { // Virtual methods /** * @virtual */ vfunc_previous(): boolean; /** * @virtual */ vfunc_has_previous(): boolean; /** * @virtual */ vfunc_first(): boolean; /** * @virtual */ vfunc_last(): boolean; } // Constructor properties interface interface ConstructorProps extends MapIterator.ConstructorProps {} } export interface BidirMapIteratorNamespace { $gtype: GObject.GType; prototype: BidirMapIterator; } /** * @gir-type Interface */ interface BidirMapIterator extends MapIterator, BidirMapIterator.Interface { // Methods previous(): boolean; has_previous(): boolean; first(): boolean; last(): boolean; } export const BidirMapIterator: BidirMapIteratorNamespace & { new (): BidirMapIterator; // This allows `obj instanceof BidirMapIterator` }; namespace BidirSortedSet { /** * Interface for implementing BidirSortedSet. * Contains only the virtual methods that need to be implemented. */ interface Interface extends SortedSet.Interface { // Virtual methods /** * @virtual */ vfunc_bidir_iterator(): BidirIterator; /** * @virtual */ vfunc_get_read_only_view(): BidirSortedSet; } // Constructor properties interface interface ConstructorProps extends SortedSet.ConstructorProps { read_only_view: BidirSortedSet; readOnlyView: BidirSortedSet; } } export interface BidirSortedSetNamespace { $gtype: GObject.GType; prototype: BidirSortedSet; /** * @param g_type * @param g_dup_func */ empty(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): BidirSortedSet; } /** * @gir-type Interface */ interface BidirSortedSet extends SortedSet { // Properties /** * @read-only */ get read_only_view(): BidirSortedSet; /** * @read-only */ get readOnlyView(): BidirSortedSet; // Methods bidir_iterator(): BidirIterator; get_read_only_view(): BidirSortedSet; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @virtual */ vfunc_bidir_iterator(): BidirIterator; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): BidirSortedSet; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): SortedSet; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Set; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Collection; } export const BidirSortedSet: BidirSortedSetNamespace & { new (): BidirSortedSet; // This allows `obj instanceof BidirSortedSet` }; namespace BidirSortedMap { /** * Interface for implementing BidirSortedMap. * Contains only the virtual methods that need to be implemented. */ interface Interface extends SortedMap.Interface { // Virtual methods /** * @virtual */ vfunc_bidir_map_iterator(): BidirMapIterator; /** * @virtual */ vfunc_get_read_only_view(): BidirSortedMap; } // Constructor properties interface interface ConstructorProps extends SortedMap.ConstructorProps { read_only_view: BidirSortedMap; readOnlyView: BidirSortedMap; } } export interface BidirSortedMapNamespace { $gtype: GObject.GType; prototype: BidirSortedMap; /** * @param k_type * @param k_dup_func * @param v_type * @param v_dup_func */ empty(k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc): BidirSortedMap; } /** * @gir-type Interface */ interface BidirSortedMap extends SortedMap { // Properties /** * @read-only */ get read_only_view(): BidirSortedMap; /** * @read-only */ get readOnlyView(): BidirSortedMap; // Methods bidir_map_iterator(): BidirMapIterator; get_read_only_view(): BidirSortedMap; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @virtual */ vfunc_bidir_map_iterator(): BidirMapIterator; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): BidirSortedMap; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): SortedMap; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Map; } export const BidirSortedMap: BidirSortedMapNamespace & { new (): BidirSortedMap; // This allows `obj instanceof BidirSortedMap` }; namespace Collection { /** * Interface for implementing Collection. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Iterable.Interface { // Virtual methods /** * @param item * @virtual */ vfunc_contains(item: null): boolean; /** * @param item * @virtual */ vfunc_add(item: null): boolean; /** * @param item * @virtual */ vfunc_remove(item: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @param collection * @virtual */ vfunc_add_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_contains_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_remove_all(collection: Collection): boolean; /** * @param collection * @virtual */ vfunc_retain_all(collection: Collection): boolean; /** * @virtual */ vfunc_to_array(): never[]; /** * @param array * @virtual */ vfunc_add_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_contains_all_array(array: null[]): boolean; /** * @param array * @virtual */ vfunc_remove_all_array(array: null[]): boolean; /** * @param iter * @virtual */ vfunc_add_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_contains_all_iterator(iter: Iterator): boolean; /** * @param iter * @virtual */ vfunc_remove_all_iterator(iter: Iterator): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_read_only_view(): Collection; } // Constructor properties interface interface ConstructorProps extends Iterable.ConstructorProps { size: number; read_only: boolean; readOnly: boolean; read_only_view: Collection; readOnlyView: Collection; } } export interface CollectionNamespace { $gtype: GObject.GType; prototype: Collection; /** * @param g_type * @param g_dup_func */ empty(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): Collection; } /** * @gir-type Interface */ interface Collection extends Iterable, Collection.Interface { // Properties /** * @read-only */ get size(): number; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; /** * @read-only */ get read_only_view(): Collection; /** * @read-only */ get readOnlyView(): Collection; // Methods /** * @param item */ contains(item: never): boolean; /** * @param item */ add(item: never): boolean; /** * @param item */ remove(item: never): boolean; clear(): void; /** * @param collection */ add_all(collection: Collection): boolean; /** * @param collection */ contains_all(collection: Collection): boolean; /** * @param collection */ remove_all(collection: Collection): boolean; /** * @param collection */ retain_all(collection: Collection): boolean; to_array(): null[]; /** * @param array */ add_all_array(array: never[]): boolean; /** * @param array */ contains_all_array(array: never[]): boolean; /** * @param array */ remove_all_array(array: never[]): boolean; /** * @param iter */ add_all_iterator(iter: Iterator): boolean; /** * @param iter */ contains_all_iterator(iter: Iterator): boolean; /** * @param iter */ remove_all_iterator(iter: Iterator): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; get_read_only_view(): Collection; } export const Collection: CollectionNamespace & { new (): Collection; // This allows `obj instanceof Collection` }; namespace Comparable { /** * Interface for implementing Comparable. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @param object * @virtual */ vfunc_compare_to(object: null): number; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps {} } export interface ComparableNamespace { $gtype: GObject.GType; prototype: Comparable; } /** * @gir-type Interface */ interface Comparable extends GObject.Object, Comparable.Interface { // Methods /** * @param object */ compare_to(object: never): number; } export const Comparable: ComparableNamespace & { new (): Comparable; // This allows `obj instanceof Comparable` }; namespace Deque { /** * Interface for implementing Deque. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Queue.Interface { // Virtual methods /** * @param element * @virtual */ vfunc_offer_head(element: null): boolean; /** * @virtual */ vfunc_peek_head(): null; /** * @virtual */ vfunc_poll_head(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_head(recipient: Collection, amount: number): number; /** * @param element * @virtual */ vfunc_offer_tail(element: null): boolean; /** * @virtual */ vfunc_peek_tail(): null; /** * @virtual */ vfunc_poll_tail(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain_tail(recipient: Collection, amount: number): number; } // Constructor properties interface interface ConstructorProps extends Queue.ConstructorProps {} } export interface DequeNamespace { $gtype: GObject.GType; prototype: Deque; } /** * @gir-type Interface */ interface Deque extends Queue, Deque.Interface { // Methods /** * @param element */ offer_head(element: never): boolean; peek_head(): null; poll_head(): null; /** * @param recipient * @param amount */ drain_head(recipient: Collection, amount: number): number; /** * @param element */ offer_tail(element: never): boolean; peek_tail(): null; poll_tail(): null; /** * @param recipient * @param amount */ drain_tail(recipient: Collection, amount: number): number; } export const Deque: DequeNamespace & { new (): Deque; // This allows `obj instanceof Deque` }; namespace Future { /** * Interface for implementing Future. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @virtual */ vfunc_wait(): never; /** * @param end_time * @virtual */ vfunc_wait_until(end_time: number): [boolean, never]; /** * @param _callback_ * @virtual */ vfunc_wait_async(_callback_: Gio.AsyncReadyCallback | null): void; /** * @param _res_ * @virtual */ vfunc_wait_finish(_res_: Gio.AsyncResult): never; /** * @param a_type * @param a_dup_func * @param func * @virtual */ vfunc_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.MapFunc): Future; /** * @param a_type * @param a_dup_func * @param func * @virtual */ vfunc_light_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.LightMapFunc): Future; /** * @param a_type * @param a_dup_func * @param func * @virtual */ vfunc_light_map_broken(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.LightMapFunc): Future; /** * @param a_type * @param a_dup_func * @param b_type * @param b_dup_func * @param zip_func * @param second * @virtual */ vfunc_zip(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, b_type: GObject.GType, b_dup_func: GObject.BoxedCopyFunc, zip_func: Future.ZipFunc, second: Future): Future; /** * @param a_type * @param a_dup_func * @param func * @virtual */ vfunc_flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.FlatMapFunc): Future; /** * @virtual */ vfunc_get_value(): null; /** * @virtual */ vfunc_get_ready(): boolean; /** * @virtual */ vfunc_get_exception(): GLib.Error | null; } interface MapFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, value: null): never; } interface LightMapFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, value: null): never; } interface ZipFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, b_type: GObject.GType, b_dup_func: GObject.BoxedCopyFunc, c_type: GObject.GType, c_dup_func: GObject.BoxedCopyFunc, a: null, b: null): never; } interface FlatMapFunc { (a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, value: null): Future; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps { ready: boolean; exception: GLib.Error | null; } } export interface FutureNamespace { $gtype: GObject.GType; prototype: Future; } /** * @gir-type Interface */ interface Future extends GObject.Object, Future.Interface { // Properties /** * @read-only */ get ready(): boolean; /** * @read-only */ get exception(): GLib.Error | null; // Methods wait(): null; /** * @param end_time */ wait_until(end_time: bigint | number): [boolean, null]; wait_async(): globalThis.Promise; /** * @param _callback_ */ wait_async(_callback_: Gio.AsyncReadyCallback | null): void; /** * @param _callback_ */ wait_async(_callback_?: Gio.AsyncReadyCallback | null): globalThis.Promise | void; /** * @param _res_ */ wait_finish(_res_: Gio.AsyncResult): null; /** * @param a_type * @param a_dup_func * @param func */ map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.MapFunc): Future; /** * @param a_type * @param a_dup_func * @param func */ light_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.LightMapFunc): Future; /** * @param a_type * @param a_dup_func * @param func */ light_map_broken(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.LightMapFunc): Future; /** * @param a_type * @param a_dup_func * @param b_type * @param b_dup_func * @param zip_func * @param second */ zip(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, b_type: GObject.GType, b_dup_func: GObject.BoxedCopyFunc, zip_func: Future.ZipFunc, second: Future): Future; /** * @param a_type * @param a_dup_func * @param func */ flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, func: Future.FlatMapFunc): Future; get_value(): null; get_ready(): boolean; get_exception(): GLib.Error | null; } export const Future: FutureNamespace & { new (): Future; // This allows `obj instanceof Future` }; namespace Hashable { /** * Interface for implementing Hashable. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @virtual */ vfunc_hash(): number; /** * @param object * @virtual */ vfunc_equal_to(object: null): boolean; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps {} } export interface HashableNamespace { $gtype: GObject.GType; prototype: Hashable; } /** * @gir-type Interface */ interface Hashable extends GObject.Object, Hashable.Interface { // Methods hash(): number; /** * @param object */ equal_to(object: never): boolean; } export const Hashable: HashableNamespace & { new (): Hashable; // This allows `obj instanceof Hashable` }; namespace Iterable { /** * Interface for implementing Iterable. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @virtual */ vfunc_iterator(): Iterator; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps {} } export interface IterableNamespace { $gtype: GObject.GType; prototype: Iterable; } /** * @gir-type Interface */ interface Iterable extends GObject.Object, Iterable.Interface { // Methods iterator(): Iterator; } export const Iterable: IterableNamespace & { new (): Iterable; // This allows `obj instanceof Iterable` }; namespace Iterator { /** * Interface for implementing Iterator. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @virtual */ vfunc_next(): boolean; /** * @virtual */ vfunc_has_next(): boolean; /** * @virtual */ vfunc_get(): never; /** * @virtual */ vfunc_remove(): void; /** * @virtual */ vfunc_get_valid(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps { valid: boolean; read_only: boolean; readOnly: boolean; } } export interface IteratorNamespace { $gtype: GObject.GType; prototype: Iterator; /** * @param a_type * @param a_dup_func * @param f * @param current */ unfold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: UnfoldFunc, current: Lazy | null): Iterator; /** * @param g_type * @param g_dup_func * @param iters */ concat(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc, iters: Iterator): Iterator; } /** * @gir-type Interface */ interface Iterator extends GObject.Object, Iterator.Interface { // Properties /** * @read-only */ get valid(): boolean; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; // Methods next(): boolean; has_next(): boolean; get(): null; remove(): void; get_valid(): boolean; get_read_only(): boolean; } export const Iterator: IteratorNamespace & { new (): Iterator; // This allows `obj instanceof Iterator` }; namespace List { /** * Interface for implementing List. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Collection.Interface { // Virtual methods /** * @virtual */ vfunc_list_iterator(): ListIterator; /** * @param index * @virtual */ vfunc_get(index: number): never; /** * @param index * @param item * @virtual */ vfunc_set(index: number, item: null): void; /** * @param item * @virtual */ vfunc_index_of(item: null): number; /** * @param index * @param item * @virtual */ vfunc_insert(index: number, item: null): void; /** * @param index * @virtual */ vfunc_remove_at(index: number): never; /** * @param start * @param stop * @virtual */ vfunc_slice(start: number, stop: number): List | null; /** * @virtual */ vfunc_first(): never; /** * @virtual */ vfunc_last(): never; /** * @param index * @param collection * @virtual */ vfunc_insert_all(index: number, collection: Collection): void; /** * @param compare_func * @virtual */ vfunc_sort(compare_func: GLib.CompareDataFunc | null): void; /** * @virtual */ vfunc_get_read_only_view(): List; } // Constructor properties interface interface ConstructorProps extends Collection.ConstructorProps { read_only_view: List; readOnlyView: List; } } export interface ListNamespace { $gtype: GObject.GType; prototype: List; /** * @param g_type * @param g_dup_func */ empty(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): List; } /** * @gir-type Interface */ interface List extends Collection { // Properties /** * @read-only */ get read_only_view(): List; /** * @read-only */ get readOnlyView(): List; // Methods list_iterator(): ListIterator; /** * @param index */ get(index: number): null; /** * @param index * @param item */ set(index: number, item: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param item */ index_of(item: never): number; /** * @param index * @param item */ insert(index: number, item: never): void; /** * @param index */ remove_at(index: number): null; /** * @param start * @param stop */ slice(start: number, stop: number): List | null; first(): null; last(): null; /** * @param index * @param collection */ insert_all(index: number, collection: Collection): void; /** * @param compare_func */ sort(compare_func: GLib.CompareDataFunc | null): void; get_read_only_view(): List; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @virtual */ vfunc_list_iterator(): ListIterator; /** @ignore */ /** * @param index * @virtual */ vfunc_get(index: number): never; /** @ignore */ /** * @param index * @param item * @virtual */ vfunc_set(index: number, item: null): void; /** @ignore */ /** * @param item * @virtual */ vfunc_index_of(item: null): number; /** @ignore */ /** * @param index * @param item * @virtual */ vfunc_insert(index: number, item: null): void; /** @ignore */ /** * @param index * @virtual */ vfunc_remove_at(index: number): never; /** @ignore */ /** * @param start * @param stop * @virtual */ vfunc_slice(start: number, stop: number): List | null; /** @ignore */ /** * @virtual */ vfunc_first(): never; /** @ignore */ /** * @virtual */ vfunc_last(): never; /** @ignore */ /** * @param index * @param collection * @virtual */ vfunc_insert_all(index: number, collection: Collection): void; /** @ignore */ /** * @param compare_func * @virtual */ vfunc_sort(compare_func: GLib.CompareDataFunc | null): void; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): List; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Collection; } export const List: ListNamespace & { new (): List; // This allows `obj instanceof List` }; namespace ListIterator { /** * Interface for implementing ListIterator. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Iterator.Interface { // Virtual methods /** * @param item * @virtual */ vfunc_set(item: null): void; /** * @param item * @virtual */ vfunc_add(item: null): void; /** * @virtual */ vfunc_index(): number; } // Constructor properties interface interface ConstructorProps extends Iterator.ConstructorProps {} } export interface ListIteratorNamespace { $gtype: GObject.GType; prototype: ListIterator; } /** * @gir-type Interface */ interface ListIterator extends Iterator, ListIterator.Interface { // Methods /** * @param item */ set(item: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param item */ add(item: never): void; index(): number; } export const ListIterator: ListIteratorNamespace & { new (): ListIterator; // This allows `obj instanceof ListIterator` }; namespace Map { /** * Interface for implementing Map. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @param key * @virtual */ vfunc_has_key(key: null): boolean; /** * @param key * @param value * @virtual */ vfunc_has(key: null, value: null): boolean; /** * @param key * @virtual */ vfunc_get(key: null): null; /** * @param key * @param value * @virtual */ vfunc_set(key: null, value: null): void; /** * @param key * @virtual */ vfunc_unset(key: null): [boolean, never]; /** * @virtual */ vfunc_clear(): void; /** * @virtual */ vfunc_map_iterator(): MapIterator; /** * @param map * @virtual */ vfunc_set_all(map: Map): void; /** * @param map * @virtual */ vfunc_unset_all(map: Map): boolean; /** * @param map * @virtual */ vfunc_has_all(map: Map): boolean; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_is_empty(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_keys(): Set; /** * @virtual */ vfunc_get_values(): Collection; /** * @virtual */ vfunc_get_entries(): Set; /** * @virtual */ vfunc_get_read_only_view(): Map; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps { size: number; read_only: boolean; readOnly: boolean; keys: Set; values: Collection; entries: Set; read_only_view: Map; readOnlyView: Map; } } export interface MapNamespace { $gtype: GObject.GType; prototype: Map; /** * @param k_type * @param k_dup_func * @param v_type * @param v_dup_func */ empty(k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc): Map; } /** * @gir-type Interface */ interface Map extends GObject.Object, Map.Interface { // Properties /** * @read-only */ get size(): number; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; /** * @read-only */ get keys(): Set; /** * @read-only */ get values(): Collection; /** * @read-only */ get entries(): Set; /** * @read-only */ get read_only_view(): Map; /** * @read-only */ get readOnlyView(): Map; // Methods /** * @param key */ has_key(key: never): boolean; /** * @param key */ contains(key: never): boolean; /** * @param key * @param value */ has(key: never, value: never): boolean; /** * @param key */ get(key: never): null; /** * @param key * @param value */ set(key: never, value: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param key */ unset(key: never): [boolean, null]; /** * @param key */ remove(key: never): [boolean, null]; clear(): void; map_iterator(): MapIterator; /** * @param map */ set_all(map: Map): void; /** * @param map */ unset_all(map: Map): boolean; /** * @param map */ remove_all(map: Map): boolean; /** * @param map */ has_all(map: Map): boolean; /** * @param map */ contains_all(map: Map): boolean; get_size(): number; get_is_empty(): boolean; get_read_only(): boolean; get_keys(): Set; get_values(): Collection; get_entries(): Set; get_read_only_view(): Map; get_key_type(): GObject.GType; get_value_type(): GObject.GType; } export const Map: MapNamespace & { new (): Map; // This allows `obj instanceof Map` }; namespace MapIterator { /** * Interface for implementing MapIterator. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @virtual */ vfunc_next(): boolean; /** * @virtual */ vfunc_has_next(): boolean; /** * @virtual */ vfunc_get_key(): never; /** * @virtual */ vfunc_get_value(): never; /** * @param value * @virtual */ vfunc_set_value(value: null): void; /** * @virtual */ vfunc_unset(): void; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldMapFunc, seed: null): never; /** * @param f * @virtual */ vfunc_foreach(f: ForallMapFunc): boolean; /** * @virtual */ vfunc_get_valid(): boolean; /** * @virtual */ vfunc_get_mutable(): boolean; /** * @virtual */ vfunc_get_read_only(): boolean; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps { valid: boolean; mutable: boolean; read_only: boolean; readOnly: boolean; } } export interface MapIteratorNamespace { $gtype: GObject.GType; prototype: MapIterator; } /** * @gir-type Interface */ interface MapIterator extends GObject.Object, MapIterator.Interface { // Properties /** * @read-only */ get valid(): boolean; /** * @read-only */ get mutable(): boolean; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; // Methods next(): boolean; has_next(): boolean; get_key(): null; get_value(): null; /** * @param value */ set_value(value: never): void; unset(): void; /** * @param a_type * @param a_dup_func * @param f * @param seed */ fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldMapFunc, seed: never): null; /** * @param f */ foreach(f: ForallMapFunc): boolean; get_valid(): boolean; get_mutable(): boolean; get_read_only(): boolean; } export const MapIterator: MapIteratorNamespace & { new (): MapIterator; // This allows `obj instanceof MapIterator` }; namespace MultiMap { /** * Interface for implementing MultiMap. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @virtual */ vfunc_get_keys(): Set; /** * @virtual */ vfunc_get_all_keys(): MultiSet; /** * @virtual */ vfunc_get_values(): Collection; /** * @param key * @virtual */ vfunc_contains(key: null): boolean; /** * @param key * @virtual */ vfunc_get(key: null): Collection; /** * @param key * @param value * @virtual */ vfunc_set(key: null, value: null): void; /** * @param key * @param value * @virtual */ vfunc_remove(key: null, value: null): boolean; /** * @param key * @virtual */ vfunc_remove_all(key: null): boolean; /** * @virtual */ vfunc_clear(): void; /** * @virtual */ vfunc_map_iterator(): MapIterator; /** * @virtual */ vfunc_get_size(): number; /** * @virtual */ vfunc_get_read_only(): boolean; /** * @virtual */ vfunc_get_read_only_view(): MultiMap; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps { size: number; read_only: boolean; readOnly: boolean; } } export interface MultiMapNamespace { $gtype: GObject.GType; prototype: MultiMap; } /** * @gir-type Interface */ interface MultiMap extends GObject.Object, MultiMap.Interface { // Properties /** * @read-only */ get size(): number; /** * @read-only */ get read_only(): boolean; /** * @read-only */ get readOnly(): boolean; // Methods get_keys(): Set; get_all_keys(): MultiSet; get_values(): Collection; /** * @param key */ contains(key: never): boolean; /** * @param key */ get(key: never): Collection; /** * @param key * @param value */ set(key: never, value: never): void; /** * @param args */ // Conflicted with GObject.Object.set set(...args: never[]): any; /** * @param key * @param value */ remove(key: never, value: never): boolean; /** * @param key */ remove_all(key: never): boolean; clear(): void; map_iterator(): MapIterator; get_size(): number; get_read_only(): boolean; get_key_type(): GObject.GType; get_value_type(): GObject.GType; get_read_only_view(): MultiMap; } export const MultiMap: MultiMapNamespace & { new (): MultiMap; // This allows `obj instanceof MultiMap` }; namespace MultiSet { /** * Interface for implementing MultiSet. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Collection.Interface { // Virtual methods /** * @param item * @virtual */ vfunc_count(item: null): number; /** * @virtual */ vfunc_get_read_only_view(): MultiSet; } // Constructor properties interface interface ConstructorProps extends Collection.ConstructorProps {} } export interface MultiSetNamespace { $gtype: GObject.GType; prototype: MultiSet; /** * @param g_type * @param g_dup_func */ empty(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): Set; } /** * @gir-type Interface */ interface MultiSet extends Collection { // Methods /** * @param item */ count(item: never): number; get_read_only_view(): MultiSet; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @param item * @virtual */ vfunc_count(item: null): number; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): MultiSet; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Collection; } export const MultiSet: MultiSetNamespace & { new (): MultiSet; // This allows `obj instanceof MultiSet` }; namespace Queue { /** * Interface for implementing Queue. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Collection.Interface { // Virtual methods /** * @param element * @virtual */ vfunc_offer(element: null): boolean; /** * @virtual */ vfunc_peek(): null; /** * @virtual */ vfunc_poll(): null; /** * @param recipient * @param amount * @virtual */ vfunc_drain(recipient: Collection, amount: number): number; /** * @virtual */ vfunc_get_capacity(): number; /** * @virtual */ vfunc_get_remaining_capacity(): number; /** * @virtual */ vfunc_get_is_full(): boolean; } // Constructor properties interface interface ConstructorProps extends Collection.ConstructorProps { capacity: number; remaining_capacity: number; remainingCapacity: number; is_full: boolean; isFull: boolean; } } export interface QueueNamespace { $gtype: GObject.GType; prototype: Queue; } /** * @gir-type Interface */ interface Queue extends Collection, Queue.Interface { // Properties /** * @read-only */ get capacity(): number; /** * @read-only */ get remaining_capacity(): number; /** * @read-only */ get remainingCapacity(): number; /** * @read-only */ get is_full(): boolean; /** * @read-only */ get isFull(): boolean; // Methods /** * @param element */ offer(element: never): boolean; peek(): null; poll(): null; /** * @param recipient * @param amount */ drain(recipient: Collection, amount: number): number; get_capacity(): number; get_remaining_capacity(): number; get_is_full(): boolean; } export const Queue: QueueNamespace & { new (): Queue; // This allows `obj instanceof Queue` }; namespace Set { /** * Interface for implementing Set. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Collection.Interface { // Virtual methods /** * @virtual */ vfunc_get_read_only_view(): Set; } // Constructor properties interface interface ConstructorProps extends Collection.ConstructorProps { read_only_view: Set; readOnlyView: Set; } } export interface SetNamespace { $gtype: GObject.GType; prototype: Set; /** * @param g_type * @param g_dup_func */ empty(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): Set; } /** * @gir-type Interface */ interface Set extends Collection { // Properties /** * @read-only */ get read_only_view(): Set; /** * @read-only */ get readOnlyView(): Set; // Methods get_read_only_view(): Set; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Set; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Collection; } export const Set: SetNamespace & { new (): Set; // This allows `obj instanceof Set` }; namespace SortedMap { /** * Interface for implementing SortedMap. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Map.Interface { // Virtual methods /** * @param before * @virtual */ vfunc_head_map(before: null): SortedMap; /** * @param after * @virtual */ vfunc_tail_map(after: null): SortedMap; /** * @param before * @param after * @virtual */ vfunc_sub_map(before: null, after: null): SortedMap; /** * @virtual */ vfunc_get_ascending_keys(): SortedSet; /** * @virtual */ vfunc_get_ascending_entries(): SortedSet; /** * @virtual */ vfunc_get_read_only_view(): SortedMap; } // Constructor properties interface interface ConstructorProps extends Map.ConstructorProps { ascending_keys: SortedSet; ascendingKeys: SortedSet; ascending_entries: SortedSet; ascendingEntries: SortedSet; read_only_view: SortedMap; readOnlyView: SortedMap; } } export interface SortedMapNamespace { $gtype: GObject.GType; prototype: SortedMap; /** * @param k_type * @param k_dup_func * @param v_type * @param v_dup_func */ empty(k_type: GObject.GType, k_dup_func: GObject.BoxedCopyFunc, v_type: GObject.GType, v_dup_func: GObject.BoxedCopyFunc): Map; } /** * @gir-type Interface */ interface SortedMap extends Map { // Properties /** * @read-only */ get ascending_keys(): SortedSet; /** * @read-only */ get ascendingKeys(): SortedSet; /** * @read-only */ get ascending_entries(): SortedSet; /** * @read-only */ get ascendingEntries(): SortedSet; /** * @read-only */ get read_only_view(): SortedMap; /** * @read-only */ get readOnlyView(): SortedMap; // Methods /** * @param before */ head_map(before: never): SortedMap; /** * @param after */ tail_map(after: never): SortedMap; /** * @param before * @param after */ sub_map(before: never, after: never): SortedMap; get_ascending_keys(): SortedSet; get_ascending_entries(): SortedSet; get_read_only_view(): SortedMap; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @param before * @virtual */ vfunc_head_map(before: null): SortedMap; /** @ignore */ /** * @param after * @virtual */ vfunc_tail_map(after: null): SortedMap; /** @ignore */ /** * @param before * @param after * @virtual */ vfunc_sub_map(before: null, after: null): SortedMap; /** @ignore */ /** * @virtual */ vfunc_get_ascending_keys(): SortedSet; /** @ignore */ /** * @virtual */ vfunc_get_ascending_entries(): SortedSet; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): SortedMap; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Map; } export const SortedMap: SortedMapNamespace & { new (): SortedMap; // This allows `obj instanceof SortedMap` }; namespace SortedSet { /** * Interface for implementing SortedSet. * Contains only the virtual methods that need to be implemented. */ interface Interface extends Set.Interface { // Virtual methods /** * @virtual */ vfunc_first(): never; /** * @virtual */ vfunc_last(): never; /** * @param element * @virtual */ vfunc_iterator_at(element: null): Iterator | null; /** * @param element * @virtual */ vfunc_lower(element: null): null; /** * @param element * @virtual */ vfunc_higher(element: null): null; /** * @param element * @virtual */ vfunc_floor(element: null): null; /** * @param element * @virtual */ vfunc_ceil(element: null): null; /** * @param before * @virtual */ vfunc_head_set(before: null): SortedSet; /** * @param after * @virtual */ vfunc_tail_set(after: null): SortedSet; /** * @param from * @param to * @virtual */ vfunc_sub_set(from: null, to: null): SortedSet; /** * @virtual */ vfunc_get_read_only_view(): SortedSet; } // Constructor properties interface interface ConstructorProps extends Set.ConstructorProps { read_only_view: SortedSet; readOnlyView: SortedSet; } } export interface SortedSetNamespace { $gtype: GObject.GType; prototype: SortedSet; /** * @param g_type * @param g_dup_func */ empty(g_type: GObject.GType, g_dup_func: GObject.BoxedCopyFunc): SortedSet; } /** * @gir-type Interface */ interface SortedSet extends Set { // Properties /** * @read-only */ get read_only_view(): SortedSet; /** * @read-only */ get readOnlyView(): SortedSet; // Methods first(): null; last(): null; /** * @param element */ iterator_at(element: never): Iterator | null; /** * @param element */ lower(element: never): null; /** * @param element */ higher(element: never): null; /** * @param element */ floor(element: never): null; /** * @param element */ ceil(element: never): null; /** * @param before */ head_set(before: never): SortedSet; /** * @param after */ tail_set(after: never): SortedSet; /** * @param from * @param to */ sub_set(from: never, to: never): SortedSet; get_read_only_view(): SortedSet; // Virtual methods - generated with overloads due to conflicts /** @ignore */ /** * @virtual */ vfunc_first(): never; /** @ignore */ /** * @virtual */ vfunc_last(): never; /** @ignore */ /** * @param element * @virtual */ vfunc_iterator_at(element: null): Iterator | null; /** @ignore */ /** * @param element * @virtual */ vfunc_lower(element: null): null; /** @ignore */ /** * @param element * @virtual */ vfunc_higher(element: null): null; /** @ignore */ /** * @param element * @virtual */ vfunc_floor(element: null): null; /** @ignore */ /** * @param element * @virtual */ vfunc_ceil(element: null): null; /** @ignore */ /** * @param before * @virtual */ vfunc_head_set(before: null): SortedSet; /** @ignore */ /** * @param after * @virtual */ vfunc_tail_set(after: null): SortedSet; /** @ignore */ /** * @param from * @param to * @virtual */ vfunc_sub_set(from: null, to: null): SortedSet; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): SortedSet; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Set; /** @ignore */ /** * @virtual */ vfunc_get_read_only_view(): Collection; } export const SortedSet: SortedSetNamespace & { new (): SortedSet; // This allows `obj instanceof SortedSet` }; namespace Traversable { /** * Interface for implementing Traversable. * Contains only the virtual methods that need to be implemented. */ interface Interface { // Virtual methods /** * @param f * @virtual */ vfunc_foreach(f: ForallFunc): boolean; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_stream(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: StreamFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: null): never; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: MapFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed * @virtual */ vfunc_scan(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: null): Iterator; /** * @param pred * @virtual */ vfunc_filter(pred: Predicate): Iterator; /** * @param offset * @param length * @virtual */ vfunc_chop(offset: number, length: number): Iterator; /** * @param a_type * @param a_dup_func * @param f * @virtual */ vfunc_flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FlatMapFunc): Iterator; /** * @param forks * @virtual */ vfunc_tee(forks: number): Iterator[]; /** * @param pred * @virtual */ vfunc_first_match(pred: Predicate): null; /** * @param pred * @virtual */ vfunc_any_match(pred: Predicate): boolean; /** * @param pred * @virtual */ vfunc_all_match(pred: Predicate): boolean; /** * @param compare * @virtual */ vfunc_max(compare: GLib.CompareDataFunc): never; /** * @param compare * @virtual */ vfunc_min(compare: GLib.CompareDataFunc): never; /** * @param compare * @virtual */ vfunc_order_by(compare: GLib.CompareDataFunc | null): Iterator; /** * @virtual */ vfunc_get_element_type(): GObject.GType; } // Constructor properties interface interface ConstructorProps extends GObject.Object.ConstructorProps {} } export interface TraversableNamespace { $gtype: GObject.GType; prototype: Traversable; } /** * @gir-type Interface */ interface Traversable extends GObject.Object, Traversable.Interface { // Methods /** * @param f */ foreach(f: ForallFunc): boolean; /** * @param a_type * @param a_dup_func * @param f */ stream(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: StreamFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed */ fold(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: never): null; /** * @param a_type * @param a_dup_func * @param f */ map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: MapFunc): Iterator; /** * @param a_type * @param a_dup_func * @param f * @param seed */ scan(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FoldFunc, seed: never): Iterator; /** * @param pred */ filter(pred: Predicate): Iterator; /** * @param offset * @param length */ chop(offset: number, length: number): Iterator; /** * @param a_type * @param a_dup_func * @param f */ flat_map(a_type: GObject.GType, a_dup_func: GObject.BoxedCopyFunc, f: FlatMapFunc): Iterator; /** * @param forks */ tee(forks: number): Iterator[]; /** * @param pred */ first_match(pred: Predicate): null; /** * @param pred */ any_match(pred: Predicate): boolean; /** * @param pred */ all_match(pred: Predicate): boolean; /** * @param compare */ max(compare: GLib.CompareDataFunc): null; /** * @param compare */ min(compare: GLib.CompareDataFunc): null; /** * @param compare */ order_by(compare: GLib.CompareDataFunc | null): Iterator; get_element_type(): GObject.GType; } export const Traversable: TraversableNamespace & { new (): Traversable; // This allows `obj instanceof Traversable` }; /** * Name of the imported GIR library * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188 */ const __name__: string; /** * Version of the imported GIR library * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189 */ const __version__: string; } export default Gee; // END