• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkTS
19 */
20
21/**
22 * PlainArray stores key-value (KV) pairs. Each key must be unique, be of the number type, and have only one value.
23 * PlainArray is based on generics and uses a lightweight structure.
24 *
25 * @syscap SystemCapability.Utils.Lang
26 * @since 8
27 */
28/**
29 * PlainArray stores key-value (KV) pairs. Each key must be unique, be of the number type, and have only one value.
30 * PlainArray is based on generics and uses a lightweight structure.
31 *
32 * @syscap SystemCapability.Utils.Lang
33 * @crossplatform
34 * @since 10
35 */
36/**
37 * PlainArray stores key-value (KV) pairs. Each key must be unique, be of the number type, and have only one value.
38 * PlainArray is based on generics and uses a lightweight structure.
39 *
40 * @syscap SystemCapability.Utils.Lang
41 * @crossplatform
42 * @atomicservice
43 * @since 12
44 */
45declare class PlainArray<T> {
46  /**
47   * A constructor used to create a PlainArray object.
48   *
49   * @throws { BusinessError } 10200012 - The PlainArray's constructor cannot be directly invoked.
50   * @syscap SystemCapability.Utils.Lang
51   * @since 8
52   */
53  /**
54   * A constructor used to create a PlainArray object.
55   *
56   * @throws { BusinessError } 10200012 - The PlainArray's constructor cannot be directly invoked.
57   * @syscap SystemCapability.Utils.Lang
58   * @crossplatform
59   * @since 10
60   */
61  /**
62   * A constructor used to create a PlainArray object.
63   *
64   * @throws { BusinessError } 10200012 - The PlainArray's constructor cannot be directly invoked.
65   * @syscap SystemCapability.Utils.Lang
66   * @crossplatform
67   * @atomicservice
68   * @since 12
69   */
70  constructor();
71  /**
72   * Gets the element number of the PlainArray.
73   *
74   * @type { number }
75   * @syscap SystemCapability.Utils.Lang
76   * @since 8
77   */
78  /**
79   * Gets the element number of the PlainArray.
80   *
81   * @type { number }
82   * @syscap SystemCapability.Utils.Lang
83   * @crossplatform
84   * @since 10
85   */
86  /**
87   * Gets the element number of the PlainArray.
88   *
89   * @type { number }
90   * @syscap SystemCapability.Utils.Lang
91   * @crossplatform
92   * @atomicservice
93   * @since 12
94   */
95  length: number;
96  /**
97   * Appends a key-value pair to PlainArray
98   *
99   * @param { number } key - key key Added the key of key-value
100   * @param { T } value - value value Added the value of key-value
101   * @throws { BusinessError } 10200011 - The add method cannot be bound.
102   * @throws { BusinessError } 401 - Parameter error. Possible causes:
103   * 1.Mandatory parameters are left unspecified;
104   * 2.Incorrect parameter types.
105   * @syscap SystemCapability.Utils.Lang
106   * @since 8
107   */
108  /**
109   * Appends a key-value pair to PlainArray
110   *
111   * @param { number } key - key key Added the key of key-value
112   * @param { T } value - value value Added the value of key-value
113   * @throws { BusinessError } 10200011 - The add method cannot be bound.
114   * @throws { BusinessError } 401 - Parameter error. Possible causes:
115   * 1.Mandatory parameters are left unspecified;
116   * 2.Incorrect parameter types.
117   * @syscap SystemCapability.Utils.Lang
118   * @crossplatform
119   * @since 10
120   */
121  /**
122   * Appends a key-value pair to PlainArray
123   *
124   * @param { number } key - key key Added the key of key-value
125   * @param { T } value - value value Added the value of key-value
126   * @throws { BusinessError } 10200011 - The add method cannot be bound.
127   * @throws { BusinessError } 401 - Parameter error. Possible causes:
128   * 1.Mandatory parameters are left unspecified;
129   * 2.Incorrect parameter types.
130   * @syscap SystemCapability.Utils.Lang
131   * @crossplatform
132   * @atomicservice
133   * @since 12
134   */
135  add(key: number, value: T): void;
136  /**
137   * Clears the current PlainArray object
138   *
139   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
140   * @syscap SystemCapability.Utils.Lang
141   * @since 8
142   */
143  /**
144   * Clears the current PlainArray object
145   *
146   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
147   * @syscap SystemCapability.Utils.Lang
148   * @crossplatform
149   * @since 10
150   */
151  /**
152   * Clears the current PlainArray object
153   *
154   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
155   * @syscap SystemCapability.Utils.Lang
156   * @crossplatform
157   * @atomicservice
158   * @since 12
159   */
160  clear(): void;
161  /**
162   * Obtains a clone of the current PlainArray object
163   *
164   * @returns { PlainArray<T> }
165   * @throws { BusinessError } 10200011 - The clone method cannot be bound.
166   * @syscap SystemCapability.Utils.Lang
167   * @since 8
168   */
169  /**
170   * Obtains a clone of the current PlainArray object
171   *
172   * @returns { PlainArray<T> }
173   * @throws { BusinessError } 10200011 - The clone method cannot be bound.
174   * @syscap SystemCapability.Utils.Lang
175   * @crossplatform
176   * @since 10
177   */
178  /**
179   * Obtains a clone of the current PlainArray object
180   *
181   * @returns { PlainArray<T> }
182   * @throws { BusinessError } 10200011 - The clone method cannot be bound.
183   * @syscap SystemCapability.Utils.Lang
184   * @crossplatform
185   * @atomicservice
186   * @since 12
187   */
188  clone(): PlainArray<T>;
189  /**
190   * Checks whether the current PlainArray object contains the specified key
191   *
192   * @param { number } key - key key need to determine whether to include the key
193   * @returns { boolean } the boolean type
194   * @throws { BusinessError } 10200011 - The has method cannot be bound.
195   * @throws { BusinessError } 401 - Parameter error. Possible causes:
196   * 1.Mandatory parameters are left unspecified;
197   * 2.Incorrect parameter types.
198   * @syscap SystemCapability.Utils.Lang
199   * @since 8
200   */
201  /**
202   * Checks whether the current PlainArray object contains the specified key
203   *
204   * @param { number } key - key key need to determine whether to include the key
205   * @returns { boolean } the boolean type
206   * @throws { BusinessError } 10200011 - The has method cannot be bound.
207   * @throws { BusinessError } 401 - Parameter error. Possible causes:
208   * 1.Mandatory parameters are left unspecified;
209   * 2.Incorrect parameter types.
210   * @syscap SystemCapability.Utils.Lang
211   * @crossplatform
212   * @since 10
213   */
214  /**
215   * Checks whether the current PlainArray object contains the specified key
216   *
217   * @param { number } key - key key need to determine whether to include the key
218   * @returns { boolean } the boolean type
219   * @throws { BusinessError } 10200011 - The has method cannot be bound.
220   * @throws { BusinessError } 401 - Parameter error. Possible causes:
221   * 1.Mandatory parameters are left unspecified;
222   * 2.Incorrect parameter types.
223   * @syscap SystemCapability.Utils.Lang
224   * @crossplatform
225   * @atomicservice
226   * @since 12
227   */
228  has(key: number): boolean;
229  /**
230   * Queries the value associated with the specified key
231   *
232   * @param { number } key - key key Looking for goals
233   * @returns { T } the value of key-value pairs
234   * @throws { BusinessError } 10200011 - The get method cannot be bound.
235   * @throws { BusinessError } 401 - Parameter error. Possible causes:
236   * 1.Mandatory parameters are left unspecified;
237   * 2.Incorrect parameter types.
238   * @syscap SystemCapability.Utils.Lang
239   * @since 8
240   */
241  /**
242   * Queries the value associated with the specified key
243   *
244   * @param { number } key - key key Looking for goals
245   * @returns { T } the value of key-value pairs
246   * @throws { BusinessError } 10200011 - The get method cannot be bound.
247   * @throws { BusinessError } 401 - Parameter error. Possible causes:
248   * 1.Mandatory parameters are left unspecified;
249   * 2.Incorrect parameter types.
250   * @syscap SystemCapability.Utils.Lang
251   * @crossplatform
252   * @since 10
253   */
254  /**
255   * Queries the value associated with the specified key
256   *
257   * @param { number } key - key key Looking for goals
258   * @returns { T } the value of key-value pairs
259   * @throws { BusinessError } 10200011 - The get method cannot be bound.
260   * @throws { BusinessError } 401 - Parameter error. Possible causes:
261   * 1.Mandatory parameters are left unspecified;
262   * 2.Incorrect parameter types.
263   * @syscap SystemCapability.Utils.Lang
264   * @crossplatform
265   * @atomicservice
266   * @since 12
267   */
268  get(key: number): T;
269  /**
270   * Queries the index for a specified key
271   *
272   * @param { number } key - key key Looking for goals
273   * @returns { number } Subscript corresponding to target
274   * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound.
275   * @throws { BusinessError } 401 - Parameter error. Possible causes:
276   * 1.Mandatory parameters are left unspecified;
277   * 2.Incorrect parameter types.
278   * @syscap SystemCapability.Utils.Lang
279   * @since 8
280   */
281  /**
282   * Queries the index for a specified key
283   *
284   * @param { number } key - key key Looking for goals
285   * @returns { number } Subscript corresponding to target
286   * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound.
287   * @throws { BusinessError } 401 - Parameter error. Possible causes:
288   * 1.Mandatory parameters are left unspecified;
289   * 2.Incorrect parameter types.
290   * @syscap SystemCapability.Utils.Lang
291   * @crossplatform
292   * @since 10
293   */
294  /**
295   * Queries the index for a specified key
296   *
297   * @param { number } key - key key Looking for goals
298   * @returns { number } Subscript corresponding to target
299   * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound.
300   * @throws { BusinessError } 401 - Parameter error. Possible causes:
301   * 1.Mandatory parameters are left unspecified;
302   * 2.Incorrect parameter types.
303   * @syscap SystemCapability.Utils.Lang
304   * @crossplatform
305   * @atomicservice
306   * @since 12
307   */
308  getIndexOfKey(key: number): number;
309  /**
310   * Queries the index for a specified value
311   *
312   * @param { T } value - value value Looking for goals
313   * @returns { number } Subscript corresponding to target
314   * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound.
315   * @syscap SystemCapability.Utils.Lang
316   * @since 8
317   */
318  /**
319   * Queries the index for a specified value
320   *
321   * @param { T } value - value value Looking for goals
322   * @returns { number } Subscript corresponding to target
323   * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound.
324   * @syscap SystemCapability.Utils.Lang
325   * @crossplatform
326   * @since 10
327   */
328  /**
329   * Queries the index for a specified value
330   *
331   * @param { T } value - value value Looking for goals
332   * @returns { number } Subscript corresponding to target
333   * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound.
334   * @syscap SystemCapability.Utils.Lang
335   * @crossplatform
336   * @atomicservice
337   * @since 12
338   */
339  getIndexOfValue(value: T): number;
340  /**
341   * Checks whether the current PlainArray object is empty
342   *
343   * @returns { boolean } the boolean type
344   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
345   * @syscap SystemCapability.Utils.Lang
346   * @since 8
347   */
348  /**
349   * Checks whether the current PlainArray object is empty
350   *
351   * @returns { boolean } the boolean type
352   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
353   * @syscap SystemCapability.Utils.Lang
354   * @crossplatform
355   * @since 10
356   */
357  /**
358   * Checks whether the current PlainArray object is empty
359   *
360   * @returns { boolean } the boolean type
361   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
362   * @syscap SystemCapability.Utils.Lang
363   * @crossplatform
364   * @atomicservice
365   * @since 12
366   */
367  isEmpty(): boolean;
368  /**
369   * Queries the key at a specified index
370   *
371   * @param { number } index - index index Target subscript for search
372   * @returns { number } the key of key-value pairs
373   * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound.
374   * @throws { BusinessError } 401 - Parameter error. Possible causes:
375   * 1.Mandatory parameters are left unspecified;
376   * 2.Incorrect parameter types.
377   * @syscap SystemCapability.Utils.Lang
378   * @since 8
379   */
380  /**
381   * Queries the key at a specified index
382   *
383   * @param { number } index - index index Target subscript for search
384   * @returns { number } the key of key-value pairs
385   * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound.
386   * @throws { BusinessError } 401 - Parameter error. Possible causes:
387   * 1.Mandatory parameters are left unspecified;
388   * 2.Incorrect parameter types.
389   * @syscap SystemCapability.Utils.Lang
390   * @crossplatform
391   * @since 10
392   */
393  /**
394   * Queries the key at a specified index
395   *
396   * @param { number } index - index index Target subscript for search
397   * @returns { number } the key of key-value pairs
398   * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound.
399   * @throws { BusinessError } 401 - Parameter error. Possible causes:
400   * 1.Mandatory parameters are left unspecified;
401   * 2.Incorrect parameter types.
402   * @syscap SystemCapability.Utils.Lang
403   * @crossplatform
404   * @atomicservice
405   * @since 12
406   */
407  getKeyAt(index: number): number;
408  /**
409   * Remove the key-value pair based on a specified key if it exists and return the value
410   *
411   * @param { number } key - key key Target to be deleted
412   * @returns { T } Target mapped value
413   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
414   * @throws { BusinessError } 401 - Parameter error. Possible causes:
415   * 1.Mandatory parameters are left unspecified;
416   * 2.Incorrect parameter types.
417   * @syscap SystemCapability.Utils.Lang
418   * @since 8
419   */
420  /**
421   * Remove the key-value pair based on a specified key if it exists and return the value
422   *
423   * @param { number } key - key key Target to be deleted
424   * @returns { T } Target mapped value
425   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
426   * @throws { BusinessError } 401 - Parameter error. Possible causes:
427   * 1.Mandatory parameters are left unspecified;
428   * 2.Incorrect parameter types.
429   * @syscap SystemCapability.Utils.Lang
430   * @crossplatform
431   * @since 10
432   */
433  /**
434   * Remove the key-value pair based on a specified key if it exists and return the value
435   *
436   * @param { number } key - key key Target to be deleted
437   * @returns { T } Target mapped value
438   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
439   * @throws { BusinessError } 401 - Parameter error. Possible causes:
440   * 1.Mandatory parameters are left unspecified;
441   * 2.Incorrect parameter types.
442   * @syscap SystemCapability.Utils.Lang
443   * @crossplatform
444   * @atomicservice
445   * @since 12
446   */
447  remove(key: number): T;
448  /**
449   * Remove the key-value pair at a specified index if it exists and return the value
450   *
451   * @param { number } index - index index Target subscript for search
452   * @returns { T } the T type
453   * @throws { BusinessError } 10200011 - The removeAt method cannot be bound.
454   * @throws { BusinessError } 401 - Parameter error. Possible causes:
455   * 1.Mandatory parameters are left unspecified;
456   * 2.Incorrect parameter types.
457   * @syscap SystemCapability.Utils.Lang
458   * @since 8
459   */
460  /**
461   * Remove the key-value pair at a specified index if it exists and return the value
462   *
463   * @param { number } index - index index Target subscript for search
464   * @returns { T } the T type
465   * @throws { BusinessError } 10200011 - The removeAt method cannot be bound.
466   * @throws { BusinessError } 401 - Parameter error. Possible causes:
467   * 1.Mandatory parameters are left unspecified;
468   * 2.Incorrect parameter types.
469   * @syscap SystemCapability.Utils.Lang
470   * @crossplatform
471   * @since 10
472   */
473  /**
474   * Remove the key-value pair at a specified index if it exists and return the value
475   *
476   * @param { number } index - index index Target subscript for search
477   * @returns { T } the T type
478   * @throws { BusinessError } 10200011 - The removeAt method cannot be bound.
479   * @throws { BusinessError } 401 - Parameter error. Possible causes:
480   * 1.Mandatory parameters are left unspecified;
481   * 2.Incorrect parameter types.
482   * @syscap SystemCapability.Utils.Lang
483   * @crossplatform
484   * @atomicservice
485   * @since 12
486   */
487  removeAt(index: number): T;
488  /**
489   * Remove a group of key-value pairs from a specified index
490   *
491   * @param { number } index - index index remove start index
492   * @param { number } size - size size Expected deletion quantity
493   * @returns { number } Actual deleted quantity
494   * @throws { BusinessError } 10200011 - The removeRangeFrom method cannot be bound.
495   * @throws { BusinessError } 10200001 - The value of index is out of range.
496   * @throws { BusinessError } 401 - Parameter error. Possible causes:
497   * 1.Mandatory parameters are left unspecified;
498   * 2.Incorrect parameter types.
499   * @syscap SystemCapability.Utils.Lang
500   * @since 8
501   */
502  /**
503   * Remove a group of key-value pairs from a specified index
504   *
505   * @param { number } index - index index remove start index
506   * @param { number } size - size size Expected deletion quantity
507   * @returns { number } Actual deleted quantity
508   * @throws { BusinessError } 10200011 - The removeRangeFrom method cannot be bound.
509   * @throws { BusinessError } 10200001 - The value of index is out of range.
510   * @throws { BusinessError } 401 - Parameter error. Possible causes:
511   * 1.Mandatory parameters are left unspecified;
512   * 2.Incorrect parameter types.
513   * @syscap SystemCapability.Utils.Lang
514   * @crossplatform
515   * @since 10
516   */
517  /**
518   * Remove a group of key-value pairs from a specified index
519   *
520   * @param { number } index - index index remove start index
521   * @param { number } size - size size Expected deletion quantity
522   * @returns { number } Actual deleted quantity
523   * @throws { BusinessError } 10200011 - The removeRangeFrom method cannot be bound.
524   * @throws { BusinessError } 10200001 - The value of index is out of range.
525   * @throws { BusinessError } 401 - Parameter error. Possible causes:
526   * 1.Mandatory parameters are left unspecified;
527   * 2.Incorrect parameter types.
528   * @syscap SystemCapability.Utils.Lang
529   * @crossplatform
530   * @atomicservice
531   * @since 12
532   */
533  removeRangeFrom(index: number, size: number): number;
534  /**
535   * Update value on specified index
536   *
537   * @param { number } index - index index Target subscript for search
538   * @param { T } value - value value Updated the target mapped value
539   * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound.
540   * @throws { BusinessError } 10200001 - The value of index is out of range.
541   * @throws { BusinessError } 401 - Parameter error. Possible causes:
542   * 1.Mandatory parameters are left unspecified;
543   * 2.Incorrect parameter types.
544   * @syscap SystemCapability.Utils.Lang
545   * @since 8
546   */
547  /**
548   * Update value on specified index
549   *
550   * @param { number } index - index index Target subscript for search
551   * @param { T } value - value value Updated the target mapped value
552   * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound.
553   * @throws { BusinessError } 10200001 - The value of index is out of range.
554   * @throws { BusinessError } 401 - Parameter error. Possible causes:
555   * 1.Mandatory parameters are left unspecified;
556   * 2.Incorrect parameter types.
557   * @syscap SystemCapability.Utils.Lang
558   * @crossplatform
559   * @since 10
560   */
561  /**
562   * Update value on specified index
563   *
564   * @param { number } index - index index Target subscript for search
565   * @param { T } value - value value Updated the target mapped value
566   * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound.
567   * @throws { BusinessError } 10200001 - The value of index is out of range.
568   * @throws { BusinessError } 401 - Parameter error. Possible causes:
569   * 1.Mandatory parameters are left unspecified;
570   * 2.Incorrect parameter types.
571   * @syscap SystemCapability.Utils.Lang
572   * @crossplatform
573   * @atomicservice
574   * @since 12
575   */
576  setValueAt(index: number, value: T): void;
577  /**
578   * Obtains the string representation of the PlainArray object
579   *
580   * @returns { String }
581   * @throws { BusinessError } 10200011 - The toString method cannot be bound.
582   * @syscap SystemCapability.Utils.Lang
583   * @since 8
584   */
585  /**
586   * Obtains the string representation of the PlainArray object
587   *
588   * @returns { String }
589   * @throws { BusinessError } 10200011 - The toString method cannot be bound.
590   * @syscap SystemCapability.Utils.Lang
591   * @crossplatform
592   * @since 10
593   */
594  /**
595   * Obtains the string representation of the PlainArray object
596   *
597   * @returns { String }
598   * @throws { BusinessError } 10200011 - The toString method cannot be bound.
599   * @syscap SystemCapability.Utils.Lang
600   * @crossplatform
601   * @atomicservice
602   * @since 12
603   */
604  toString(): String;
605  /**
606   * Queries the value at a specified index
607   *
608   * @param { number } index - index index Target subscript for search
609   * @returns { T } the value of key-value pairs
610   * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound.
611   * @throws { BusinessError } 10200001 - The value of index is out of range.
612   * @throws { BusinessError } 401 - Parameter error. Possible causes:
613   * 1.Mandatory parameters are left unspecified;
614   * 2.Incorrect parameter types.
615   * @syscap SystemCapability.Utils.Lang
616   * @since 8
617   */
618  /**
619   * Queries the value at a specified index
620   *
621   * @param { number } index - index index Target subscript for search
622   * @returns { T } the value of key-value pairs
623   * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound.
624   * @throws { BusinessError } 10200001 - The value of index is out of range.
625   * @throws { BusinessError } 401 - Parameter error. Possible causes:
626   * 1.Mandatory parameters are left unspecified;
627   * 2.Incorrect parameter types.
628   * @syscap SystemCapability.Utils.Lang
629   * @crossplatform
630   * @since 10
631   */
632  /**
633   * Queries the value at a specified index
634   *
635   * @param { number } index - index index Target subscript for search
636   * @returns { T } the value of key-value pairs
637   * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound.
638   * @throws { BusinessError } 10200001 - The value of index is out of range.
639   * @throws { BusinessError } 401 - Parameter error. Possible causes:
640   * 1.Mandatory parameters are left unspecified;
641   * 2.Incorrect parameter types.
642   * @syscap SystemCapability.Utils.Lang
643   * @crossplatform
644   * @atomicservice
645   * @since 12
646   */
647  getValueAt(index: number): T;
648  /**
649   * Executes a provided function once for each value in the PlainArray object.
650   *
651   * @param { function } callbackFn - callbackFn
652   * callbackFn (required) A function that accepts up to three arguments.
653   * The function to be called for each element.
654   * @param { Object } [thisArg] - thisArg
655   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
656   * If thisArg is omitted, undefined is used as the this value.
657   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
658   * @throws { BusinessError } 401 - Parameter error. Possible causes:
659   * 1.Mandatory parameters are left unspecified;
660   * 2.Incorrect parameter types.
661   * @syscap SystemCapability.Utils.Lang
662   * @since 8
663   */
664  /**
665   * Executes a provided function once for each value in the PlainArray object.
666   *
667   * @param { function } callbackFn - callbackFn
668   * callbackFn (required) A function that accepts up to three arguments.
669   * The function to be called for each element.
670   * @param { Object } [thisArg] - thisArg
671   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
672   * If thisArg is omitted, undefined is used as the this value.
673   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
674   * @throws { BusinessError } 401 - Parameter error. Possible causes:
675   * 1.Mandatory parameters are left unspecified;
676   * 2.Incorrect parameter types.
677   * @syscap SystemCapability.Utils.Lang
678   * @crossplatform
679   * @since 10
680   */
681  /**
682   * Executes a provided function once for each value in the PlainArray object.
683   *
684   * @param { function } callbackFn - callbackFn
685   * callbackFn (required) A function that accepts up to three arguments.
686   * The function to be called for each element.
687   * @param { Object } [thisArg] - thisArg
688   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
689   * If thisArg is omitted, undefined is used as the this value.
690   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
691   * @throws { BusinessError } 401 - Parameter error. Possible causes:
692   * 1.Mandatory parameters are left unspecified;
693   * 2.Incorrect parameter types.
694   * @syscap SystemCapability.Utils.Lang
695   * @crossplatform
696   * @atomicservice
697   * @since 12
698   */
699  forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, thisArg?: Object): void;
700  /**
701   * returns an iterator.Each item of the iterator is a Javascript Object
702   *
703   * @returns { IterableIterator<[number, T]> }
704   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
705   * @syscap SystemCapability.Utils.Lang
706   * @since 8
707   */
708  /**
709   * returns an iterator.Each item of the iterator is a Javascript Object
710   *
711   * @returns { IterableIterator<[number, T]> }
712   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
713   * @syscap SystemCapability.Utils.Lang
714   * @crossplatform
715   * @since 10
716   */
717  /**
718   * returns an iterator.Each item of the iterator is a Javascript Object
719   *
720   * @returns { IterableIterator<[number, T]> }
721   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
722   * @syscap SystemCapability.Utils.Lang
723   * @crossplatform
724   * @atomicservice
725   * @since 12
726   */
727  [Symbol.iterator](): IterableIterator<[number, T]>;
728}
729
730export default PlainArray;
731