-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStrongMapOfStrongSets.d.mts
149 lines (149 loc) · 5.63 KB
/
StrongMapOfStrongSets.d.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
declare class StrongMapOfStrongSets<__MK0__, __SK0__> {
#private;
constructor(iterable?: [__MK0__, __SK0__][]);
/**
* The number of elements in this collection.
*
* @returns {number} The element count.
* @public
* @constant
*/
get size(): number;
/**
* Get the size of a particular set.
*
* @param {*} mapKey The map key.
* @returns {number} The set size.
* @public
*/
getSizeOfSet(mapKey: __MK0__): number;
/**
* The number of maps in this collection.
*
* @returns {number} The map count.
* @public
* @constant
*/
get mapSize(): number;
/**
* Add a key set to this collection.
*
* @param {*} mapKey The map key.
* @param {*} setKey The set key.
* @returns {StrongMapOfStrongSets} This collection.
* @public
*/
add(mapKey: __MK0__, setKey: __SK0__): this;
/**
* Add several sets to a map in this collection.
*
* @param {*} mapKey The map key.
* @param {Set[]} __sets__ The sets to add.
* @returns {StrongMapOfStrongSets} This collection.
* @public
*/
addSets(mapKey: __MK0__, __sets__: [__SK0__][]): this;
/**
* Clear the collection.
*
* @public
*/
clear(): void;
/**
* Delete an element from the collection by the given key sequence.
*
* @param {*} mapKey The map key.
* @param {*} setKey The set key.
* @returns {boolean} True if we found the value and deleted it.
* @public
*/
delete(mapKey: __MK0__, setKey: __SK0__): boolean;
/**
* Delete all sets from the collection by the given map sequence.
*
* @param {*} mapKey The map key.
* @returns {boolean} True if we found the value and deleted it.
* @public
*/
deleteSets(mapKey: __MK0__): boolean;
/**
* Iterate over the keys.
*
* @param {__StrongMapOfStrongSets_ForEachCallback__} __callback__ A function to invoke for each iteration.
* @param {object} __thisArg__ Value to use as this when executing callback.
* @public
*/
forEach(__callback__: (mapKey: __MK0__, setKey: __SK0__, __collection__: StrongMapOfStrongSets<__MK0__, __SK0__>) => void, __thisArg__?: unknown): void;
/**
* An user-provided callback to .forEach().
*
* @callback __StrongMapOfStrongSets_ForEachCallback__
* @param {*} mapKey The map key.
* @param {*} setKey The set key.
* @param {StrongMapOfStrongSets} __collection__ This collection.
*/
/**
* Iterate over the map keys.
*
* @param {__StrongMapOfStrongSets_ForEachMapCallback__} __callback__ A function to invoke for each iteration.
* @param {object} __thisArg__ Value to use as this when executing callback.
* @public
*/
forEachMap(__callback__: (mapKey: __MK0__, __collection__: StrongMapOfStrongSets<__MK0__, __SK0__>) => void, __thisArg__?: unknown): void;
/**
* An user-provided callback to .forEachMap().
*
* @callback __StrongMapOfStrongSets_ForEachMapCallback__
* @param {*} mapKey The map key.
* @param {StrongMapOfStrongSets} __collection__ This collection.
*/
/**
* Iterate over the keys under a map in this collection.
*
* @param {*} mapKey The map key.
* @param {__StrongMapOfStrongSets_ForEachCallback__} __callback__ A function to invoke for each iteration.
* @param {object} __thisArg__ Value to use as this when executing callback.
* @public
*/
forEachSet(mapKey: __MK0__, __callback__: (mapKey: __MK0__, setKey: __SK0__, __collection__: StrongMapOfStrongSets<__MK0__, __SK0__>) => void, __thisArg__?: unknown): void;
/**
* Report if the collection has a value for a key set.
*
* @param {*} mapKey The map key.
* @param {*} setKey The set key.
* @returns {boolean} True if the key set refers to a value in the collection.
* @public
*/
has(mapKey: __MK0__, setKey: __SK0__): boolean;
/**
* Report if the collection has any sets for a map.
*
* @param {*} mapKey The map key.
* @returns {boolean} True if the key set refers to a value in the collection.
* @public
*/
hasSets(mapKey: __MK0__): boolean;
/**
* Yield the values of the collection.
*
* @yields {*} The value.
* @public
*/
values(): IterableIterator<[__MK0__, __SK0__]>;
/**
* Yield the sets of the collection in a map.
*
* @param {*} mapKey The map key.
* @yields {*} The sets.
* @public
*/
valuesSet(mapKey: __MK0__): IterableIterator<[__MK0__, __SK0__]>;
[Symbol.iterator](): IterableIterator<[__MK0__, __SK0__]>;
[Symbol.toStringTag]: string;
}
export declare type ReadonlyStrongMapOfStrongSets<__MK0__, __SK0__> = Pick<StrongMapOfStrongSets<__MK0__, __SK0__>, "size" | "getSizeOfSet" | "mapSize" | "has" | "hasSets" | "values" | "valuesSet"> & {
forEach(__callback__: (mapKey: __MK0__, setKey: __SK0__, __collection__: ReadonlyStrongMapOfStrongSets<__MK0__, __SK0__>) => void, __thisArg__?: unknown): void;
forEachMap(__callback__: (mapKey: __MK0__, __collection__: ReadonlyStrongMapOfStrongSets<__MK0__, __SK0__>) => void, __thisArg__?: unknown): void;
forEachSet(mapKey: __MK0__, __callback__: (mapKey: __MK0__, setKey: __SK0__, __collection__: ReadonlyStrongMapOfStrongSets<__MK0__, __SK0__>) => void, __thisArg__?: unknown): void;
};
export default StrongMapOfStrongSets;