• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024-2025 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 Defines the collections for ArkTS
18 * @kit ArkTS
19 */
20
21/*** if arkts 1.1 */
22import lang from './@arkts.lang'
23/*** endif */
24
25/**
26 * ArkTS collections.
27 *
28 * @namespace collections
29 * @syscap SystemCapability.Utils.Lang
30 * @atomicservice
31 * @since 12
32 */
33/**
34 * ArkTS collections.
35 *
36 * @namespace collections
37 * @syscap SystemCapability.Utils.Lang
38 * @crossplatform
39 * @atomicservice
40 * @since arkts {'1.1':'18','1.2':'20'}
41 * @arkts 1.1&1.2
42 */
43declare namespace collections {
44  /**
45   * Callback function used in the typed Array's 'from' function.
46   *
47   * @typedef { function } TypedArrayFromMapFn
48   * @param { FromElementType } value - The value in the original array.
49   * @param { number } index - The index in the original array.
50   * @returns { ToElementType } The transformed value.
51   * @syscap SystemCapability.Utils.Lang
52   * @atomicservice
53   * @since 12
54   */
55  /**
56   * Describes the mapping function of the ArkTS typed array.
57   *
58   * @typedef { function } TypedArrayFromMapFn
59   * @param { FromElementType } value - Element that is currently traversed and used to construct an ArkTS typed array.
60   * @param { number } index - Index of the element.
61   * @returns { ToElementType } The transformed value.
62   * @syscap SystemCapability.Utils.Lang
63   * @crossplatform
64   * @atomicservice
65   * @since 18
66   */
67  type TypedArrayFromMapFn<FromElementType, ToElementType> = (value: FromElementType, index: number) => ToElementType;
68  /**
69   * Callback function used in typed Array functions which needs to determine
70   * whether some element satisfies the specified predicate test
71   *
72   * @typedef { function } TypedArrayPredicateFn
73   * @param { ElementType } value - The value of the element.
74   * @param { number } index - The index of the element.
75   * @param { ArrayType } array - The array that the element belongs to.
76   * @returns { boolean } True if the value meets the predicate, otherwise false.
77   * @syscap SystemCapability.Utils.Lang
78   * @atomicservice
79   * @since 12
80   */
81  /**
82   * Describes the assertion function of the ArkTS typed array.
83   *
84   * @typedef { function } TypedArrayPredicateFn
85   * @param { ElementType } value - Element that is being traversed in the ArkTS typed array.
86   * @param { number } index - Index of the element.
87   * @param { ArrayType } array - ArkTS typed array that is being traversed.
88   * @returns { boolean } True if the value meets the predicate, otherwise false.
89   * @syscap SystemCapability.Utils.Lang
90   * @crossplatform
91   * @atomicservice
92   * @since 18
93   */
94  type TypedArrayPredicateFn<ElementType, ArrayType> =
95    (value: ElementType, index: number, array: ArrayType) => boolean;
96  /**
97   * Callback function used in typed Array functions that perform specific action for each element.
98   *
99   * @typedef { function } TypedArrayForEachCallback
100   * @param { ElementType } value - The value of the element.
101   * @param { number } index - The index of the element.
102   * @param { ArrayType } array - The array that the element belongs to.
103   * @syscap SystemCapability.Utils.Lang
104   * @atomicservice
105   * @since 12
106   */
107  /**
108   * Describes the traversal function of the ArkTS typed array.
109   *
110   * @typedef { function } TypedArrayForEachCallback
111   * @param { ElementType } value - Element that is being traversed in the ArkTS typed array.
112   * @param { number } index - Index of the element.
113   * @param { ArrayType } array - ArkTS typed array that is being traversed.
114   * @syscap SystemCapability.Utils.Lang
115   * @crossplatform
116   * @atomicservice
117   * @since 18
118   */
119  type TypedArrayForEachCallback<ElementType, ArrayType> =
120    (value: ElementType, index: number, array: ArrayType) => void;
121  /**
122   * Callback function used in typed Array functions that perform specific action for each element and
123   *    produce corresponding new element.
124   *
125   * @typedef { function } TypedArrayMapCallback
126   * @param { ElementType } value - The value of the element.
127   * @param { number } index - The index of the element.
128   * @param { ArrayType } array - The array that the element belongs to.
129   * @returns { ElementType } The result of the mapping.
130   * @syscap SystemCapability.Utils.Lang
131   * @atomicservice
132   * @since 12
133   */
134  /**
135   * Describes the conversion mapping function of the ArkTS typed array.
136   *
137   * @typedef { function } TypedArrayMapCallback
138   * @param { ElementType } value - Element that is being mapped in the ArkTS typed array.
139   * @param { number } index - Index of the element.
140   * @param { ArrayType } array - ArkTS typed array that is being mapped.
141   * @returns { ElementType } The result of the mapping.
142   * @syscap SystemCapability.Utils.Lang
143   * @crossplatform
144   * @atomicservice
145   * @since 18
146   */
147  type TypedArrayMapCallback<ElementType, ArrayType> =
148    (value: ElementType, index: number, array: ArrayType) => ElementType;
149  /**
150   * Callback function used in typed Array functions that require a reduction.
151   *
152   * @typedef { function } TypedArrayReduceCallback
153   * @param { AccType } previousValue - The accumulator value.
154   * @param { ElementType } currentValue - The current element being processed in the array.
155   * @param { number } currentIndex - The index of the current element being processed in the array.
156   * @param { ArrayType } array - The array that the element belongs to.
157   * @returns { AccType } The result of the reduction.
158   * @syscap SystemCapability.Utils.Lang
159   * @atomicservice
160   * @since 12
161   */
162  /**
163   * Describes the reduce function of the ArkTS typed array.
164   *
165   * @typedef { function } TypedArrayReduceCallback
166   * @param { AccType } previousValue - Accumulated value of the current traversal.
167   * @param { ElementType } currentValue - Element that is being traversed in the ArkTS typed array.
168   * @param { number } currentIndex - Index of the element.
169   * @param { ArrayType } array - ArkTS typed array that is being traversed.
170   * @returns { AccType } The result of the reduction.
171   * @syscap SystemCapability.Utils.Lang
172   * @crossplatform
173   * @atomicservice
174   * @since 18
175   */
176  type TypedArrayReduceCallback<AccType, ElementType, ArrayType> =
177    (previousValue: AccType, currentValue: ElementType, currentIndex: number, array: ArrayType) => AccType;
178  /**
179   * Callback function used in the typed Array's 'sort' function.
180   *
181   * @typedef { function } TypedArrayCompareFn
182   * @param { ElementType } first - The first element of the comparison.
183   * @param { ElementType } second - The second element of the comparison.
184   * @returns { number } The result of the comparison.
185   * @syscap SystemCapability.Utils.Lang
186   * @atomicservice
187   * @since 12
188   */
189  /**
190   * Describes the sort function of the ArkTS typed array.
191   *
192   * @typedef { function } TypedArrayCompareFn
193   * @param { ElementType } first - First element to be compared.
194   * @param { ElementType } second - Second element to be compared.
195   * @returns { number } The result of the comparison.
196   * @syscap SystemCapability.Utils.Lang
197   * @crossplatform
198   * @atomicservice
199   * @since 18
200   */
201  type TypedArrayCompareFn<ElementType> = (first: ElementType, second: ElementType) => number;
202  /**
203   * Defines the ArkTS Array reduction function, which is used by the 'from' API of the Array class.
204   *
205   * @typedef { function } ArrayFromMapFn
206   * @param { FromElementType } value - Element that is being processed.
207   * @param { number } index - Index of the element in the ArkTS array.
208   * @returns { ToElementType } The transformed value.
209   * @syscap SystemCapability.Utils.Lang
210   * @atomicservice
211   * @since 18
212   */
213  type ArrayFromMapFn<FromElementType, ToElementType> = (value: FromElementType, index: number) => ToElementType;
214
215  /**
216   * Defines the ArkTS Array reduction function, which is used by the 'some' and 'every'
217   * APIs of the Array class to determine whether array elements meet certain test conditions.
218   *
219   * @typedef { function } ArrayPredicateFn
220   * @param { ElementType } value - Element that is being processed.
221   * @param { number } index - Index of the element in the ArkTS array.
222   * @param { ArrayType } array - ArkTS array that is being traversed.
223   * @returns { boolean } True if the value meets the predicate, otherwise false.
224   * @syscap SystemCapability.Utils.Lang
225   * @atomicservice
226   * @since 18
227   */
228  type ArrayPredicateFn<ElementType, ArrayType> =
229    (value: ElementType, index: number, array: ArrayType) => boolean;
230
231  /**
232   * Defines the ArkTS Array reduction function, which is used by the 'reduceRight' API of the Array class.
233   *
234   * @typedef { function } ArrayReduceCallback
235   * @param { AccType } previousValue - Accumulated value of the current traversal.
236   * @param { ElementType } currentValue - Element that is being traversed in the ArkTS array.
237   * @param { number } currentIndex - Index of the element in the ArkTS array.
238   * @param { ArrayType } array - ArkTS array that is being traversed.
239   * @returns { AccType } The result of the reduction.
240   * @syscap SystemCapability.Utils.Lang
241   * @atomicservice
242   * @since 18
243   */
244  type ArrayReduceCallback<AccType, ElementType, ArrayType> =
245    (previousValue: AccType, currentValue: ElementType, currentIndex: number, array: ArrayType) => AccType;
246  /**
247   * Redefines ISendable for convenience.
248   *
249   * @typedef { lang.ISendable } ISendable
250   * @syscap SystemCapability.Utils.Lang
251   * @atomicservice
252   * @since 12
253   */
254  /**
255   * 'ISendable' is the parent type of all sendable types except null and undefined.
256   * It does not have any necessary methods or properties.
257   *
258   * @typedef { lang.ISendable } ISendable
259   * @syscap SystemCapability.Utils.Lang
260   * @crossplatform
261   * @atomicservice
262   * @since 18
263   */
264  type ISendable = lang.ISendable;
265  /**
266   * Represents an array-like object that can be concatenated.
267   *
268   * @interface ConcatArray
269   * @extends ISendable
270   * @syscap SystemCapability.Utils.Lang
271   * @atomicservice
272   * @since 12
273   */
274  /**
275   * An array-like object that can be concatenated. This API extends 'ISendable'.
276   *
277   * @interface ConcatArray
278   * @extends ISendable
279   * @syscap SystemCapability.Utils.Lang
280   * @crossplatform
281   * @atomicservice
282   * @since 18
283   */
284  interface ConcatArray<T> extends ISendable {
285    /**
286     * Gets the length of the ArkTS ConcatArray. This is a number one higher than the highest index in the array.
287     *
288     * @type { number }
289     * @readonly
290     * @syscap SystemCapability.Utils.Lang
291     * @atomicservice
292     * @since 12
293     */
294    /**
295     * Gets the length of the ArkTS ConcatArray. This is a number one higher than the highest index in the array.
296     *
297     * @type { number }
298     * @readonly
299     * @syscap SystemCapability.Utils.Lang
300     * @crossplatform
301     * @atomicservice
302     * @since 18
303     */
304    readonly length: number;
305    /**
306     * Returns the item at that index.
307     *
308     * @param { number } index - The zero-based index of the desired code unit.
309     *     Throws error if index < 0 or index >= array.length.
310     * @returns { T } The element in the ConcatArray matching the given index.
311     * @readonly
312     * @throws { BusinessError } 401 - Parameter error. Illegal index.
313     * @throws { BusinessError } 10200001 - The value of index is out of range.
314     * @syscap SystemCapability.Utils.Lang
315     * @since 12
316     */
317    /**
318     * Returns the element at a given index in this ConcatArray.
319     *
320     * @param { number } index - Index of the element. The index starts from zero.
321     *     If the passed-in index is less than 0 or greater than or equal to the value of 'length', an error is thrown.
322     * @returns { T } The element in the ConcatArray matching the given index.
323     * @readonly
324     * @throws { BusinessError } 401 - Parameter error. Illegal index.
325     * @throws { BusinessError } 10200001 - The value of index is out of range.
326     * @syscap SystemCapability.Utils.Lang
327     * @crossplatform
328     * @since 18
329     */
330    readonly [index: number]: T;
331    /**
332     * Adds all the elements of an ArkTS ConcatArray into a string, separated by the specified separator string.
333     *
334     * @param { string } [separator] - A string used to separate one element of the array from
335     *     the next in the resulting string. If omitted, the array elements are separated with a comma.
336     * @returns { string } A string with all array elements joined.
337     *     If ConcatArray.length is 0, the empty string is returned.
338     * @throws { BusinessError } 401 - Parameter error. Invalid separator.
339     * @syscap SystemCapability.Utils.Lang
340     * @atomicservice
341     * @since 12
342     */
343    /**
344     * Concatenates all elements in this array into a string, with a given separator.
345     *
346     * @param { string } [separator] - Separator to be used. If no value is passed in,
347     *     a comma (,) is used as the separator.
348     * @returns { string } A string with all array elements joined.
349     *     If ConcatArray.length is 0, the empty string is returned.
350     * @throws { BusinessError } 401 - Parameter error. Invalid separator.
351     * @syscap SystemCapability.Utils.Lang
352     * @crossplatform
353     * @atomicservice
354     * @since 18
355     */
356    join(separator?: string): string;
357    /**
358     * Returns a copy of a section of an ArkTS ConcatArray.
359     *
360     * @param { number } [start] - The beginning index of the specified portion of the array.
361     *     If start is undefined, then the slice begins at index 0.
362     * @param { number } [end] - The end index of the specified portion of the array.
363     *     This is exclusive of the element at the index 'end'.
364     *     If end is undefined, then the slice extends to the end of the array.
365     * @returns { ConcatArray<T> } A new ConcatArray containing the extracted elements.
366     * @throws { BusinessError } 401 - Parameter error. Invalid `start` or `end` parameters.
367     * @syscap SystemCapability.Utils.Lang
368     * @atomicservice
369     * @since 12
370     */
371    /**
372     * Selects a range of elements in this array to create an array.
373     *
374     * @param { number } [start] - Start index of the range. If a negative number is passed in,
375     *     it refers to the index of 'start + array.length' The default value is '0'.
376     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
377     *     it refers to the index of 'end + array.length'. The default value is the length of the ArkTS array.
378     * @returns { ConcatArray<T> } A new ConcatArray containing the extracted elements.
379     * @throws { BusinessError } 401 - Parameter error. Invalid `start` or `end` parameters.
380     * @syscap SystemCapability.Utils.Lang
381     * @crossplatform
382     * @atomicservice
383     * @since 18
384     */
385    slice(start?: number, end?: number): ConcatArray<T>;
386  }
387  /**
388   * Array is a data structure that stores a collection of elements.
389   * If multiple threads access a Array instance concurrently,
390   * and at least one of the threads modifies the array structurally,
391   * it must be synchronized externally.
392   *
393   * @implements ConcatArray<T>
394   * @syscap SystemCapability.Utils.Lang
395   * @atomicservice
396   * @since 12
397   */
398  /**
399   * A linear data structure that is implemented on arrays and can be passed between ArkTS concurrent instances.
400   * Pass-by-reference is recommended for better transfer performance.
401   * This section uses the following to identify the use of generics:
402   * T: type, which can be any of the sendable data types.
403   *
404   * @implements ConcatArray<T>
405   * @syscap SystemCapability.Utils.Lang
406   * @crossplatform
407   * @atomicservice
408   * @since 18
409   */
410  @Sendable
411  class Array<T> implements ConcatArray<T> {
412    /**
413     * Gets the length of the ArkTS array. This is a number one higher than the highest index in the ArkTS array.
414     *
415     * @type { number }
416     * @readonly
417     * @syscap SystemCapability.Utils.Lang
418     * @atomicservice
419     * @since 12
420     */
421    /**
422     * Gets the length of the ArkTS array. This is a number one higher than the highest index in the ArkTS array.
423     *
424     * @type { number }
425     * @readonly
426     * @syscap SystemCapability.Utils.Lang
427     * @crossplatform
428     * @atomicservice
429     * @since 18
430     */
431    readonly length: number;
432    /**
433     * Creates an ArkTS Array with arrayLength elements initialized to initialValue.
434     *
435     * @param { number } arrayLength - The length of the array.
436     * @param { T } initialValue - Element initial value that will be filled into the Array.
437     * @returns { Array<T> } A new Array instance
438     * @throws { BusinessError } 401 - Parameter error.
439     * @throws { BusinessError } 10200011 - The create method cannot be bound.
440     * @syscap SystemCapability.Utils.Lang
441     * @atomicservice
442     * @since 12
443     */
444    /**
445     * Creates an ArkTS array of a fixed length, with each element set to a given initial value.
446     *
447     * @param { number } arrayLength - Length of the ArkTS array.
448     * @param { T } initialValue - Initial value of each element in the ArkTS array.
449     * @returns { Array<T> } A new Array instance
450     * @throws { BusinessError } 401 - Parameter error.
451     * @syscap SystemCapability.Utils.Lang
452     * @crossplatform
453     * @atomicservice
454     * @since 18
455     */
456    static create<T>(arrayLength: number, initialValue: T): Array<T>;
457    /**
458     * Creates an ArkTS Array from an array-like object.
459     *
460     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an ArkTS Array.
461     * @returns { Array<T> } A new Array instance
462     * @throws { BusinessError } 401 - Parameter error.
463     * @throws { BusinessError } 10200011 - The from method cannot be bound.
464     * @static
465     * @syscap SystemCapability.Utils.Lang
466     * @atomicservice
467     * @since 12
468     */
469    /**
470     * Creates an ArkTS array from an array-like object.
471     *
472     * @param { ArrayLike<T> } arrayLike - Array-like object.
473     * @returns { Array<T> } A new Array instance
474     * @throws { BusinessError } 401 - Parameter error.
475     * @static
476     * @syscap SystemCapability.Utils.Lang
477     * @crossplatform
478     * @atomicservice
479     * @since 18
480     */
481    static from<T>(arrayLike: ArrayLike<T>): Array<T>;
482    /**
483     * Creates an ArkTS Array from an iterable object.
484     *
485     * @param { Iterable<T> } iterable - An iterable object to convert to an ArkTS Array.
486     * @returns { Array<T> } A new Array instance
487     * @throws { BusinessError } 401 - Parameter error.
488     * @throws { BusinessError } 10200011 - The from method cannot be bound.
489     * @static
490     * @syscap SystemCapability.Utils.Lang
491     * @atomicservice
492     * @since 12
493     */
494    /**
495     * Creates an ArkTS array from an iterable object.
496     *
497     * @param { Iterable<T> } iterable - Array-like object.
498     * @returns { Array<T> } A new Array instance
499     * @throws { BusinessError } 401 - Parameter error: Possible causes: 1. Mandatory parameters are left unspecified;
500     *     2. Incorrect parameter types; 3. Parameter verification failed.
501     * @static
502     * @syscap SystemCapability.Utils.Lang
503     * @crossplatform
504     * @atomicservice
505     * @since 18
506     */
507    static from<T>(iterable: Iterable<T>): Array<T>;
508    /**
509     * Creates an ArkTS array from an array-like object, and uses a custom function to process each array element.
510     *
511     * @param { ArrayLike<T> | Iterable<T> } arrayLike - Array-like object.
512     * @param { ArrayFromMapFn<T, T> } mapFn - Functions used to process the array elements.
513     * @returns { Array<T> } A new Array instance
514     * @throws { BusinessError } 401 - Parameter error: Possible causes: 1. Mandatory parameters are left unspecified;
515     *     2. Incorrect parameter types; 3. Parameter verification failed.
516     * @static
517     * @syscap SystemCapability.Utils.Lang
518     * @atomicservice
519     * @since 18
520     */
521    static from<T>(arrayLike: ArrayLike<T> | Iterable<T>, mapFn: ArrayFromMapFn<T, T>): Array<T>;
522    /**
523     * Creates an ArkTS array from an array-like object, and uses a custom function to process each array element.
524     * The type of the elements in the array-like object can be different from that of the array elements.
525     *
526     * @param  { ArrayLike<U> | Iterable<U> } arrayLike - Array-like object.
527     * @param  { ArrayFromMapFn<U, T> } mapFn - Functions used to process the array elements.
528     * @returns { Array<T> } A new Array instance
529     * @throws { BusinessError } 401 - Parameter error: Possible causes: 1. Mandatory parameters are left unspecified;
530     *     2. Incorrect parameter types; 3. Parameter verification failed.
531     * @static
532     * @syscap SystemCapability.Utils.Lang
533     * @atomicservice
534     * @since 18
535     */
536    static from<U, T>(arrayLike: ArrayLike<U> | Iterable<U>, mapFn: ArrayFromMapFn<U, T>): Array<T>;
537    /**
538     * A constructor used to create an ArkTS Array.
539     *
540     * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
541     * @syscap SystemCapability.Utils.Lang
542     * @atomicservice
543     * @since 12
544     */
545    /**
546     * A constructor used to create an empty ArkTS array.
547     *
548     * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
549     * @syscap SystemCapability.Utils.Lang
550     * @crossplatform
551     * @atomicservice
552     * @since 18
553     */
554    constructor();
555    /**
556     * A constructor used to create an ArkTS Array.
557     *
558     * @param { T } first - First element when initializing an ArkTS Array.
559     * @param { T[] } left - Left elements when initializing an ArkTS Array.
560     * @throws { BusinessError } 401 - Parameter error.
561     * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
562     * @syscap SystemCapability.Utils.Lang
563     * @atomicservice
564     * @since 12
565     */
566    /**
567     * A constructor used to create an ArkTS array with the given elements.
568     *
569     * @param { T } first - First element to be included in the ArkTS array.
570     * @param { T[] } left - Remaining elements to be included in the ArkTS array.
571     * @throws { BusinessError } 401 - Parameter error.
572     * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
573     * @syscap SystemCapability.Utils.Lang
574     * @crossplatform
575     * @atomicservice
576     * @since 18
577     */
578    constructor(first: T, ...left: T[]);
579    /**
580     * A constructor used to create an ArkTS Array.
581     *
582     * @param { T[] } items - Elements when initializing an ArkTS Array.
583     * @throws { BusinessError } 401 - Parameter error.
584     * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
585     * @syscap SystemCapability.Utils.Lang
586     * @atomicservice
587     * @since 12
588     */
589    /**
590     * A constructor used to create an ArkTS array with the given elements.
591     *
592     * @param { T[] } items - Elements to be included in the ArkTS array.
593     * @throws { BusinessError } 401 - Parameter error.
594     * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked.
595     * @syscap SystemCapability.Utils.Lang
596     * @crossplatform
597     * @atomicservice
598     * @since 18
599     */
600    constructor(...items: T[]);
601    /**
602     * Removes the last element from an ArkTS array and returns it.
603     * If the array is empty, undefined is returned and the array is not modified.
604     *
605     * @returns { T | undefined } - The removed element from the array; undefined if the array is empty.
606     * @throws { BusinessError } 10200011 - The pop method cannot be bound.
607     * @throws { BusinessError } 10200201 - Concurrent modification error.
608     * @syscap SystemCapability.Utils.Lang
609     * @atomicservice
610     * @since 12
611     */
612    /**
613     * Removes the last element from this ArkTS array and returns that element.
614     * If the array is empty, undefined is returned and the array does not change.
615     *
616     * @returns { T | undefined } - The removed element from the array; undefined if the array is empty.
617     * @throws { BusinessError } 10200011 - The pop method cannot be bound.
618     * @throws { BusinessError } 10200201 - Concurrent modification error.
619     * @syscap SystemCapability.Utils.Lang
620     * @crossplatform
621     * @atomicservice
622     * @since 18
623     */
624    pop(): T | undefined;
625    /**
626     * Appends new elements to the end of an ArkTS Array, and returns the new length of the array.
627     *
628     * @param { T[] } items - New elements to add to the ArkTS array.
629     * @returns { number } - The new length property of the object upon which the method was called.
630     * @throws { BusinessError } 401 - Parameter error.
631     * @throws { BusinessError } 10200011 - The push method cannot be bound.
632     * @throws { BusinessError } 10200201 - Concurrent modification error.
633     * @syscap SystemCapability.Utils.Lang
634     * @atomicservice
635     * @since 12
636     */
637    /**
638     * Adds one or more elements to the end of this ArkTS array and returns the new length of the array.
639     *
640     * @param { T[] } items - Elements to add.
641     * @returns { number } - The new length property of the object upon which the method was called.
642     * @throws { BusinessError } 401 - Parameter error.
643     * @throws { BusinessError } 10200011 - The push method cannot be bound.
644     * @throws { BusinessError } 10200201 - Concurrent modification error.
645     * @syscap SystemCapability.Utils.Lang
646     * @crossplatform
647     * @atomicservice
648     * @since 18
649     */
650    push(...items: T[]): number;
651    /**
652     * Adds all the elements of an ArkTS Array into a string, separated by the specified separator string.
653     *
654     * @param { string } [separator] - A string used to separate one element of the array from
655     *     the next in the resulting string. If omitted, the array elements are separated with a comma.
656     * @returns { string } A string with all array elements joined. If Array.length is 0, the empty string is returned.
657     * @throws { BusinessError } 401 - Parameter error.
658     * @throws { BusinessError } 10200011 - The join method cannot be bound.
659     * @throws { BusinessError } 10200201 - Concurrent modification error.
660     * @syscap SystemCapability.Utils.Lang
661     * @atomicservice
662     * @since 12
663     */
664    /**
665     * Concatenates all elements in this ArkTS array into a string, with a given separator.
666     *
667     * @param { string } [separator] - Separator to be used. If no value is passed in,
668     *     a comma (,) is used as the separator.
669     * @returns { string } A string with all array elements joined. If Array.length is 0, the empty string is returned.
670     * @throws { BusinessError } 401 - Parameter error.
671     * @throws { BusinessError } 10200011 - The join method cannot be bound.
672     * @throws { BusinessError } 10200201 - Concurrent modification error.
673     * @syscap SystemCapability.Utils.Lang
674     * @crossplatform
675     * @atomicservice
676     * @since 18
677     */
678    join(separator?: string): string;
679    /**
680     * Removes the first element from an ArkTS Array and returns it.
681     * If the array is empty, undefined is returned and the array is not modified.
682     *
683     * @returns { T | undefined } The removed element from the array; undefined if the array is empty
684     * @throws { BusinessError } 10200011 - The shift method cannot be bound.
685     * @throws { BusinessError } 10200201 - Concurrent modification error.
686     * @syscap SystemCapability.Utils.Lang
687     * @atomicservice
688     * @since 12
689     */
690    /**
691     * Removes the first element from this ArkTS array and returns that element.
692     * If the array is empty, undefined is returned and the array does not change.
693     *
694     * @returns { T | undefined } The removed element from the array; undefined if the array is empty
695     * @throws { BusinessError } 10200011 - The shift method cannot be bound.
696     * @throws { BusinessError } 10200201 - Concurrent modification error.
697     * @syscap SystemCapability.Utils.Lang
698     * @crossplatform
699     * @atomicservice
700     * @since 18
701     */
702    shift(): T | undefined;
703    /**
704     * Inserts new elements at the start of an array, and returns the new length of the array.
705     *
706     * @param { T[] } items - Elements to insert at the start of the array.
707     * @returns { number } The new length property of the object upon which the method was called.
708     * @throws { BusinessError } 401 - Parameter error.
709     * @throws { BusinessError } 10200011 - The unshift method cannot be bound.
710     * @throws { BusinessError } 10200201 - Concurrent modification error.
711     * @syscap SystemCapability.Utils.Lang
712     * @atomicservice
713     * @since 12
714     */
715    /**
716     * Adds one or more elements to the beginning of this ArkTS array and returns the new length of the array.
717     *
718     * @param { T[] } items - Elements to add.
719     * @returns { number } The new length property of the object upon which the method was called.
720     * @throws { BusinessError } 401 - Parameter error.
721     * @throws { BusinessError } 10200011 - The unshift method cannot be bound.
722     * @throws { BusinessError } 10200201 - Concurrent modification error.
723     * @syscap SystemCapability.Utils.Lang
724     * @crossplatform
725     * @atomicservice
726     * @since 18
727     */
728    unshift(...items: T[]): number;
729    /**
730     * Returns a copy of a section of an ArkTS Array.
731     * For both start and end, a negative index can be used to indicate an offset from the end of the array.
732     * For example, -2 refers to the second to last element of the array.
733     *
734     * @param { number } [start] - The beginning index of the specified portion of the array.
735     *     If start is undefined, then the slice begins at index 0.
736     * @param { number } [end] - The end index of the specified portion of the array.
737     *     This is exclusive of the element at the index 'end'.
738     *     If end is undefined, then the slice extends to the end of the array.
739     * @returns { Array<T> } A new array containing the extracted elements.
740     * @throws { BusinessError } 401 - Parameter error.
741     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
742     * @throws { BusinessError } 10200201 - Concurrent modification error.
743     * @syscap SystemCapability.Utils.Lang
744     * @atomicservice
745     * @since 12
746     */
747    /**
748     * Returns a copy of a section of an ArkTS Array.
749     * For both start and end, a negative index can be used to indicate an offset from the end of the array.
750     * For example, -2 refers to the second to last element of the array.
751     *
752     * @param { number } [start] - Start index of the range. If a negative number is passed in,
753     *     it refers to the index of start + array.length. The default value is 0.
754     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
755     *     it refers to the index of end + array.length. The default value is the length of the ArkTS array.
756     * @returns { Array<T> } A new array containing the extracted elements.
757     * @throws { BusinessError } 401 - Parameter error.
758     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
759     * @throws { BusinessError } 10200201 - Concurrent modification error.
760     * @syscap SystemCapability.Utils.Lang
761     * @crossplatform
762     * @atomicservice
763     * @since 18
764     */
765    slice(start?: number, end?: number): Array<T>;
766    /**
767     * Sorts an array in place. This method mutates the array and returns a reference to the same array.
768     *
769     * @param { function } [compareFn] - Function used to determine the order of the elements. It is expected to return
770     *     a negative value if the first argument is less than the second argument, zero if they're equal,
771     *     and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
772     * @returns { Array<T> } The reference to the original array, now sorted.
773     * @throws { BusinessError } 401 - Parameter error.
774     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
775     * @throws { BusinessError } 10200201 - Concurrent modification error.
776     * @syscap SystemCapability.Utils.Lang
777     * @atomicservice
778     * @since 12
779     */
780    /**
781     * Sorts elements in this ArkTS array and returns a new array.
782     *
783     * @param { function } [compareFn] - Function used to determine the order of the elements. It is expected to return
784     *     a negative value if the first argument is less than the second argument, zero if they're equal,
785     *     and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
786     * @returns { Array<T> } The reference to the original array, now sorted.
787     * @throws { BusinessError } 401 - Parameter error.
788     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
789     * @throws { BusinessError } 10200201 - Concurrent modification error.
790     * @syscap SystemCapability.Utils.Lang
791     * @crossplatform
792     * @atomicservice
793     * @since 18
794     */
795    sort(compareFn?: (a: T, b: T) => number): Array<T>;
796    /**
797     * Returns the index of the first occurrence of a value in an ArkTS Array, or -1 if it is not present.
798     *
799     * @param { T } searchElement - The value to locate in the array.
800     * @param { number } [fromIndex] - The array index at which to begin the search.
801     *     If fromIndex is omitted, the search starts at index 0.
802     * @returns { number } The first index of searchElement in the array; -1 if not found.
803     * @throws { BusinessError } 401 - Parameter error.
804     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
805     * @throws { BusinessError } 10200201 - Concurrent modification error.
806     * @syscap SystemCapability.Utils.Lang
807     * @atomicservice
808     * @since 12
809     */
810    /**
811     * Returns the index of the first occurrence of a value in this ArkTS Array.
812     * If the value is not found, -1 is returned.
813     *
814     * @param { T } searchElement - Value to search for.
815     * @param { number } [fromIndex] - Index from which the search starts. The default value is 0.
816     * @returns { number } The first index of searchElement in the array; -1 if not found.
817     * @throws { BusinessError } 401 - Parameter error.
818     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
819     * @throws { BusinessError } 10200201 - Concurrent modification error.
820     * @syscap SystemCapability.Utils.Lang
821     * @crossplatform
822     * @atomicservice
823     * @since 18
824     */
825    indexOf(searchElement: T, fromIndex?: number): number;
826    /**
827     * Executes a provided function once for each value in the Array object.
828     *
829     * @param { function } callbackFn - A function that accepts up to three arguments.
830     *     The function to be called for each element.
831     * @throws { BusinessError } 401 - Parameter error.
832     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
833     * @throws { BusinessError } 10200201 - Concurrent modification error.
834     * @syscap SystemCapability.Utils.Lang
835     * @atomicservice
836     * @since 12
837     */
838    /**
839     * Calls a callback function for each element in this ArkTS Array.
840     *
841     * @param { function } callbackFn - Callback function to run for each element.
842     * @throws { BusinessError } 401 - Parameter error.
843     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
844     * @throws { BusinessError } 10200201 - Concurrent modification error.
845     * @syscap SystemCapability.Utils.Lang
846     * @crossplatform
847     * @atomicservice
848     * @since 18
849     */
850    forEach(callbackFn: (value: T, index: number, array: Array<T>) => void): void;
851    /**
852     * Calls a defined callback function on each element of an ArkTS Array,
853     * and returns an array that contains the results.
854     *
855     * @param { function } callbackFn - A function that accepts up to three arguments.
856     *     The map method calls the callbackFn function one time for each element in the array.
857     * @returns { Array<U> } A new array with each element being the result of the callback function.
858     * @throws { BusinessError } 401 - Parameter error.
859     * @throws { BusinessError } 10200011 - The map method cannot be bound.
860     * @throws { BusinessError } 10200201 - Concurrent modification error.
861     * @syscap SystemCapability.Utils.Lang
862     * @atomicservice
863     * @since 12
864     */
865    /**
866     * Calls a callback function for each element in this ArkTS Array and returns a new array that
867     * contains the result of the callback function.
868     *
869     * @param { function } callbackFn - Callback function to run for each element.
870     * @returns { Array<U> } A new array with each element being the result of the callback function.
871     * @throws { BusinessError } 401 - Parameter error.
872     * @throws { BusinessError } 10200011 - The map method cannot be bound.
873     * @throws { BusinessError } 10200201 - Concurrent modification error.
874     * @syscap SystemCapability.Utils.Lang
875     * @crossplatform
876     * @atomicservice
877     * @since 18
878     */
879    map<U>(callbackFn: (value: T, index: number, array: Array<T>) => U): Array<U>;
880    /**
881     * Returns the elements of an ArkTS Array that meet the condition specified in a callback function.
882     *
883     * @param { function } predicate - A function that accepts up to three arguments.
884     *     The filter method calls the predicate function one time for each element in the array.
885     * @returns { Array<T> } A shallow copy of the given containing just the elements that pass the test.
886     *     If no elements pass the test, an empty array is returned.
887     * @throws { BusinessError } 401 - Parameter error.
888     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
889     * @throws { BusinessError } 10200201 - Concurrent modification error.
890     * @syscap SystemCapability.Utils.Lang
891     * @atomicservice
892     * @since 12
893     */
894    /**
895     * Returns a new array containing all elements that pass a test provided by a callback function.
896     *
897     * @param { function } predicate - Function that takes three arguments. It is used to filter elements.
898     *     The value true means that the current element passes the test and should be retained in the new array.
899     *     The value false means that the current element fails the test and should be excluded from the new array.
900     * @returns { Array<T> } A shallow copy of the given containing just the elements that pass the test.
901     *     If no elements pass the test, an empty array is returned.
902     * @throws { BusinessError } 401 - Parameter error.
903     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
904     * @throws { BusinessError } 10200201 - Concurrent modification error.
905     * @syscap SystemCapability.Utils.Lang
906     * @crossplatform
907     * @atomicservice
908     * @since 18
909     */
910    filter(predicate: (value: T, index: number, array: Array<T>) => boolean): Array<T>;
911    /**
912     * Calls the specified callback function for all the elements in an ArkTS Array.
913     * The return value of the callback function is the accumulated result,
914     * and is provided as an argument in the next call to the callback function.
915     *
916     * @param { function } callbackFn - A function that accepts up to four arguments.
917     *     The reduce method calls the callbackFn function one time for each element in the array.
918     * @returns { T } The value that results from running the "reducer" callback function to
919     *     completion over the entire array.
920     * @throws { BusinessError } 401 - Parameter error.
921     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
922     * @throws { BusinessError } 10200201 - Concurrent modification error.
923     * @syscap SystemCapability.Utils.Lang
924     * @atomicservice
925     * @since 12
926     */
927    /**
928     * Calls the specified callback function for all the elements in an ArkTS Array.
929     * The return value of the callback function is the accumulated result,
930     * and is provided as an argument in the next call to the callback function.
931     *
932     * @param { function } callbackFn - Function that takes four arguments.
933     *     It performs an operation on each element and passes the result as an accumulated value to the next element.
934     * @returns { T } The value that results from running the "reducer" callback function to
935     *     completion over the entire array.
936     * @throws { BusinessError } 401 - Parameter error.
937     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
938     * @throws { BusinessError } 10200201 - Concurrent modification error.
939     * @syscap SystemCapability.Utils.Lang
940     * @crossplatform
941     * @atomicservice
942     * @since 18
943     */
944    reduce(callbackFn: (previousValue: T, currentValue: T, currentIndex: number, array: Array<T>) => T): T;
945    /**
946     * Calls the specified callback function for all the elements in an array.
947     * The return value of the callback function is the accumulated result,
948     * and is provided as an argument in the next call to the callback function.
949     *
950     * @param { function } callbackFn - A function that accepts up to four arguments.
951     *     The reduce method calls the callbackFn function one time for each element in the array.
952     * @param { U } initialValue - If initialValue is specified,
953     *     it is used as the initial value to start the accumulation.
954     *     The first call to the callbackFn function provides this value as an argument instead of an array value.
955     * @returns { U } The value that results from running the "reducer" callback function to
956     *     completion over the entire array.
957     * @throws { BusinessError } 401 - Parameter error.
958     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
959     * @throws { BusinessError } 10200201 - Concurrent modification error.
960     * @syscap SystemCapability.Utils.Lang
961     * @atomicservice
962     * @since 12
963    */
964    /**
965     * Calls the specified callback function for all the elements in an array.
966     * The return value of the callback function is the accumulated result,
967     * and is provided as an argument in the next call to the callback function.
968     *
969     * @param { function } callbackFn - Function that takes four arguments.
970     *     It performs an operation on each element and passes the result as an accumulated value to the next element.
971     * @param { U } initialValue - Initial value of the accumulator.
972     * @returns { U } The value that results from running the "reducer" callback function to
973     *     completion over the entire array.
974     * @throws { BusinessError } 401 - Parameter error.
975     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
976     * @throws { BusinessError } 10200201 - Concurrent modification error.
977     * @syscap SystemCapability.Utils.Lang
978     * @crossplatform
979     * @atomicservice
980     * @since 18
981    */
982    reduce<U>(
983      callbackFn: (previousValue: U, currentValue: T, currentIndex: number, array: Array<T>) => U,
984      initialValue: U
985    ): U;
986    /**
987     * Returns the item located at the specified index.
988     *
989     * @param { number } index - The zero-based index of the desired code unit.
990     *     A negative index will count back from the last item.
991     * @returns { T | undefined } The element in the array matching the given index.
992     *     Always returns undefined if index < -array.length or index >= array.length without
993     *     attempting to access the corresponding property.
994     * @throws { BusinessError } 401 - Parameter error.
995     * @throws { BusinessError } 10200011 - The at method cannot be bound.
996     * @throws { BusinessError } 10200201 - Concurrent modification error.
997     * @syscap SystemCapability.Utils.Lang
998     * @atomicservice
999     * @since 12
1000     */
1001    /**
1002     * Returns the element at a given index in this ArkTS array.
1003     *
1004     * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer.
1005     *     If a negative number is passed in, it refers to the index of index + array.length.
1006     * @returns { T | undefined } The element in the array matching the given index.
1007     *     Always returns undefined if index < -array.length or index >= array.length without
1008     *     attempting to access the corresponding property.
1009     * @throws { BusinessError } 401 - Parameter error.
1010     * @throws { BusinessError } 10200011 - The at method cannot be bound.
1011     * @throws { BusinessError } 10200201 - Concurrent modification error.
1012     * @syscap SystemCapability.Utils.Lang
1013     * @crossplatform
1014     * @atomicservice
1015     * @since 18
1016     */
1017    at(index: number): T | undefined;
1018    /**
1019     * Returns an iterator that can be used to iterate over elements of type T.
1020     *
1021     * @returns { IterableIterator<T> } Iterator object.
1022     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
1023     * @syscap SystemCapability.Utils.Lang
1024     * @atomicservice
1025     * @since 12
1026     */
1027    /**
1028     * Obtains an iterator, each item of which is a JavaScript object.
1029     *
1030     * @returns { IterableIterator<T> } Iterator object.
1031     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
1032     * @syscap SystemCapability.Utils.Lang
1033     * @crossplatform
1034     * @atomicservice
1035     * @since 18
1036     */
1037    [Symbol.iterator](): IterableIterator<T>;
1038    /**
1039     * Returns an iterable of key, value pairs for every entry in the array
1040     *
1041     * @returns { IterableIterator<[number, T]> } A new iterable iterator object.
1042     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
1043     * @throws { BusinessError } 10200201 - Concurrent modification error.
1044     * @syscap SystemCapability.Utils.Lang
1045     * @atomicservice
1046     * @since 12
1047     */
1048    /**
1049     * Returns an iterator object that contains the key-value pair of each element in this ArkTS array.
1050     *
1051     * @returns { IterableIterator<[number, T]> } A new iterable iterator object.
1052     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
1053     * @throws { BusinessError } 10200201 - Concurrent modification error.
1054     * @syscap SystemCapability.Utils.Lang
1055     * @crossplatform
1056     * @atomicservice
1057     * @since 18
1058     */
1059    entries(): IterableIterator<[number, T]>;
1060    /**
1061     * Returns an iterable of keys in the array
1062     *
1063     * @returns { IterableIterator<number> } A new iterable iterator object.
1064     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
1065     * @throws { BusinessError } 10200201 - Concurrent modification error.
1066     * @syscap SystemCapability.Utils.Lang
1067     * @atomicservice
1068     * @since 12
1069     */
1070    /**
1071     * Returns an iterator object that contains the key of each element in this ArkTS array.
1072     *
1073     * @returns { IterableIterator<number> } A new iterable iterator object.
1074     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
1075     * @throws { BusinessError } 10200201 - Concurrent modification error.
1076     * @syscap SystemCapability.Utils.Lang
1077     * @crossplatform
1078     * @atomicservice
1079     * @since 18
1080     */
1081    keys(): IterableIterator<number>;
1082    /**
1083     * Returns an iterable of values in the array
1084     *
1085     * @returns { IterableIterator<T> } A new iterable iterator object.
1086     * @throws { BusinessError } 10200011 - The values method cannot be bound.
1087     * @throws { BusinessError } 10200201 - Concurrent modification error.
1088     * @syscap SystemCapability.Utils.Lang
1089     * @atomicservice
1090     * @since 12
1091     */
1092    /**
1093     * Returns an iterator object that contains the value of each element in this ArkTS array.
1094     *
1095     * @returns { IterableIterator<T> } A new iterable iterator object.
1096     * @throws { BusinessError } 10200011 - The values method cannot be bound.
1097     * @throws { BusinessError } 10200201 - Concurrent modification error.
1098     * @syscap SystemCapability.Utils.Lang
1099     * @crossplatform
1100     * @atomicservice
1101     * @since 18
1102     */
1103    values(): IterableIterator<T>;
1104    /**
1105     * Returns the value of the first element in the array where predicate is true, and undefined
1106     * otherwise.
1107     *
1108     * @param { function } predicate - Find calls predicate once for each element of the array, in ascending
1109     *     order, until it finds one where predicate returns true.
1110     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
1111     * @returns { T | undefined } The first element in the array that satisfies the provided testing function.
1112     *     Otherwise, undefined is returned.
1113     * @throws { BusinessError } 401 - Parameter error.
1114     * @throws { BusinessError } 10200011 - The find method cannot be bound.
1115     * @throws { BusinessError } 10200201 - Concurrent modification error.
1116     * @syscap SystemCapability.Utils.Lang
1117     * @atomicservice
1118     * @since 12
1119     */
1120    /**
1121     * Returns the value of the first element that passes a test provided by a callback function.
1122     * If none of the elements pass the test, undefined is returned.
1123     *
1124     * @param { function } predicate - Function that takes three arguments. It is used to filter elements.
1125     *     The value true means that the current element meets the conditions, the traversal stops,
1126     *     and that element is returned. The value false means that the current element does not meet the condition,
1127     *     and the traversal continues until the element that meets the condition is found
1128     *     or the entire array is traversed.
1129     * @returns { T | undefined } The first element in the array that satisfies the provided testing function.
1130     *     Otherwise, undefined is returned.
1131     * @throws { BusinessError } 401 - Parameter error.
1132     * @throws { BusinessError } 10200011 - The find method cannot be bound.
1133     * @throws { BusinessError } 10200201 - Concurrent modification error.
1134     * @syscap SystemCapability.Utils.Lang
1135     * @crossplatform
1136     * @atomicservice
1137     * @since 18
1138     */
1139    find(predicate: (value: T, index: number, obj: Array<T>) => boolean): T | undefined;
1140    /**
1141     * Determines whether an array includes a certain element, returning true or false as appropriate.
1142     *
1143     * @param { T } searchElement - The element to search for.
1144     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
1145     * @returns { boolean } A boolean value which is true if the value searchElement is found within
1146     *     the array (or the part of the array indicated by the index fromIndex, if specified).
1147     * @throws { BusinessError } 401 - Parameter error.
1148     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
1149     * @throws { BusinessError } 10200201 - Concurrent modification error.
1150     * @syscap SystemCapability.Utils.Lang
1151     * @atomicservice
1152     * @since 12
1153     */
1154    /**
1155     * Checks whether this ArkTS array contains an element and returns a Boolean value.
1156     *
1157     * @param { T } searchElement - Element to search for.
1158     * @param { number } [fromIndex] - Index from which the search starts. The default value is 0.
1159     * @returns { boolean } A boolean value which is true if the value searchElement is found within
1160     *     the array (or the part of the array indicated by the index fromIndex, if specified).
1161     * @throws { BusinessError } 401 - Parameter error.
1162     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
1163     * @throws { BusinessError } 10200201 - Concurrent modification error.
1164     * @syscap SystemCapability.Utils.Lang
1165     * @crossplatform
1166     * @atomicservice
1167     * @since 18
1168     */
1169    includes(searchElement: T, fromIndex?: number): boolean;
1170    /**
1171     * Returns the index of the first element in the array where predicate is true, and -1
1172     * otherwise.
1173     *
1174     * @param { function } predicate - Find calls predicate once for each element of the array, in ascending
1175     *     order, until it finds one where predicate returns true. If such an element is found,
1176     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
1177     * @returns { number } The index of the first element in the array that passes the test. Otherwise, -1;
1178     * @throws { BusinessError } 401 - Parameter error.
1179     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
1180     * @throws { BusinessError } 10200201 - Concurrent modification error.
1181     * @syscap SystemCapability.Utils.Lang
1182     * @atomicservice
1183     * @since 12
1184     */
1185    /**
1186     * Returns the index of the first element that passes a test provided by a callback function.
1187     * If none of the elements pass the test, -1 is returned.
1188     *
1189     * @param { function } predicate - Function that takes three arguments. It is used to filter elements.
1190     *     The value true means that the current element meets the conditions, the traversal stops,
1191     *     and the index of that element is returned. The value false means that the current element does not
1192     *     meet the condition, and the traversal continues until the element that meets the condition is found
1193     *     or the entire array is traversed.
1194     * @returns { number } The index of the first element in the array that passes the test. Otherwise, -1;
1195     * @throws { BusinessError } 401 - Parameter error.
1196     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
1197     * @throws { BusinessError } 10200201 - Concurrent modification error.
1198     * @syscap SystemCapability.Utils.Lang
1199     * @crossplatform
1200     * @atomicservice
1201     * @since 18
1202     */
1203    findIndex(predicate: (value: T, index: number, obj: Array<T>) => boolean): number;
1204    /**
1205     * Returns the this object after filling the section identified by start and end with value
1206     *
1207     * @param { T } value - Value to fill array section with
1208     * @param { number } [start] - Index to start filling the array at. If start is negative, it is treated as
1209     *     length+start where length is the length of the array.
1210     * @param { number } [end] - Index to stop filling the array at. If end is negative, it is treated as
1211     *     length+end.
1212     * @returns { Array<T> } The modified array, filled with value.
1213     * @throws { BusinessError } 401 - Parameter error.
1214     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
1215     * @throws { BusinessError } 10200201 - Concurrent modification error.
1216     * @syscap SystemCapability.Utils.Lang
1217     * @atomicservice
1218     * @since 12
1219     */
1220    /**
1221     * Fills elements in the specified range of this ArkTS array with a given value.
1222     *
1223     * @param { T } value - Value to fill in.
1224     * @param { number } [start] - Start index of the range. The default value is 0.
1225     * @param { number } [end] - End index of the range (exclusive). If no value is passed in,
1226     *     it refers to the last element of the array.
1227     * @returns { Array<T> } The modified array, filled with value.
1228     * @throws { BusinessError } 401 - Parameter error.
1229     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
1230     * @throws { BusinessError } 10200201 - Concurrent modification error.
1231     * @syscap SystemCapability.Utils.Lang
1232     * @crossplatform
1233     * @atomicservice
1234     * @since 18
1235     */
1236    fill(value: T, start?: number, end?: number): Array<T>;
1237    /**
1238     * Shrinks the ArkTS array to the given arrayLength.
1239     *
1240     * @param { number } arrayLength - The new Array length.
1241     *     Throws error when arrayLength < 0 or arrayLength > 2^32.
1242     *     If arrayLength > array.length, array remains unchanged.
1243     * @throws { BusinessError } 401 - Parameter error.
1244     * @throws { BusinessError } 10200011 - The shrinkTo method cannot be bound.
1245     * @throws { BusinessError } 10200201 - Concurrent modification error.
1246     * @syscap SystemCapability.Utils.Lang
1247     * @atomicservice
1248     * @since 12
1249     */
1250    /**
1251     * Shrinks this ArkTS array to a given length.
1252     *
1253     * @param { number } arrayLength - New length of the array.
1254     *     If a value greater than or equal to the current array length is passed in, the array does not change.
1255     * @throws { BusinessError } 401 - Parameter error.
1256     * @throws { BusinessError } 10200011 - The shrinkTo method cannot be bound.
1257     * @throws { BusinessError } 10200201 - Concurrent modification error.
1258     * @syscap SystemCapability.Utils.Lang
1259     * @crossplatform
1260     * @atomicservice
1261     * @since 18
1262     */
1263    shrinkTo(arrayLength: number): void;
1264    /**
1265     * Extends the ArkTS array to the given arrayLength,
1266     * and appends new elements with given initialValue up to the arrayLength.
1267     *
1268     * @param { number } arrayLength - The new Array length.
1269     *     Throws error when arrayLength < 0 or arrayLength > 2^32.
1270     *     If arrayLength < array.length, array remains unchanged.
1271     * @param { T } initialValue - Element initial value that will be appended to the array.
1272     * @throws { BusinessError } 401 - Parameter error.
1273     * @throws { BusinessError } 10200011 - The extendTo method cannot be bound.
1274     * @throws { BusinessError } 10200201 - Concurrent modification error.
1275     * @syscap SystemCapability.Utils.Lang
1276     * @atomicservice
1277     * @since 12
1278     */
1279    /**
1280     * Extends this array to a given length by adding elements with the specified initial value.
1281     *
1282     * @param { number } arrayLength - New length of the array.
1283     *     If a value less than or equal to the current array length is passed in, the array does not change.
1284     * @param { T } initialValue - Initial value of the elements to be added.
1285     * @throws { BusinessError } 401 - Parameter error.
1286     * @throws { BusinessError } 10200011 - The extendTo method cannot be bound.
1287     * @throws { BusinessError } 10200201 - Concurrent modification error.
1288     * @syscap SystemCapability.Utils.Lang
1289     * @crossplatform
1290     * @atomicservice
1291     * @since 18
1292     */
1293    extendTo(arrayLength: number, initialValue: T): void;
1294    /**
1295     * Returns the item at that index.
1296     *
1297     * @param { number } index - The zero-based index of the desired code unit.
1298     *     Throws error if index < 0 or index >= array.length.
1299     * @returns { T } The element in the array matching the given index.
1300     * @throws { BusinessError } 401 - Parameter error.
1301     * @throws { BusinessError } 10200001 - The value of index is out of range.
1302     * @syscap SystemCapability.Utils.Lang
1303     * @atomicservice
1304     * @since 12
1305     */
1306    /**
1307     * Returns the element at a given index in this array.
1308     *
1309     * @param { number } index - Index of the element. The index starts from zero.
1310     *     If the passed-in index is less than 0 or greater than or equal to the value of length, an error is thrown.
1311     * @returns { T } The element in the array matching the given index.
1312     * @throws { BusinessError } 401 - Parameter error.
1313     * @throws { BusinessError } 10200001 - The value of index is out of range.
1314     * @syscap SystemCapability.Utils.Lang
1315     * @crossplatform
1316     * @atomicservice
1317     * @since 18
1318     */
1319    [index: number]: T;
1320    /**
1321     * Concatenates two or more arrays.
1322     *
1323     * @param { ConcatArray<T>[] } items - The arrays to concatenate.
1324     * @returns { Array<T> } A new array containing the elements of the concatenated arrays.
1325     * @throws { BusinessError } 401 - Parameter error. Not a valid array.
1326     * @throws { BusinessError } 10200011 - The concat method cannot be bound.
1327     * @throws { BusinessError } 10200201 - Concurrent modification error.
1328     * @syscap SystemCapability.Utils.Lang
1329     * @atomicservice
1330     * @since 12
1331     */
1332    /**
1333     * Concatenates this ArkTS array with one or more arrays.
1334     *
1335     * @param { ConcatArray<T>[] } items - Arrays to concatenate.
1336     * @returns { Array<T> } A new array containing the elements of the concatenated arrays.
1337     * @throws { BusinessError } 401 - Parameter error. Not a valid array.
1338     * @throws { BusinessError } 10200011 - The concat method cannot be bound.
1339     * @throws { BusinessError } 10200201 - Concurrent modification error.
1340     * @syscap SystemCapability.Utils.Lang
1341     * @crossplatform
1342     * @atomicservice
1343     * @since 18
1344     */
1345    concat(...items: ConcatArray<T>[]): Array<T>;
1346    /**
1347     * Removes elements from the array at the specified position.
1348     *
1349     * @param { number } start - The zero-based index at which to start changing the contents of the array.
1350     *    All the elements from start to the end of the array will be deleted.
1351     * @returns { Array<T> } An array containing the deleted elements.
1352     * @throws { BusinessError } 401 - Parameter error.Possible causes:
1353     *                                    1.Mandatory parameters are left unspecified.
1354     *                                    2.Incorrect parameter types.
1355     * @throws { BusinessError } 10200011 - The splice method cannot be bound.
1356     * @throws { BusinessError } 10200201 - Concurrent modification error.
1357     * @syscap SystemCapability.Utils.Lang
1358     * @atomicservice
1359     * @since 12
1360     */
1361    /**
1362     * Removes elements from a specified position in an array.
1363     *
1364     * @param { number } start - Index from which the removal starts. If -array.length =< start < 0,
1365     *     the removal starts from start + array.length. If start < -array.length, the removal starts from 0.
1366     * @returns { Array<T> } An array containing the deleted elements.
1367     * @throws { BusinessError } 401 - Parameter error.Possible causes:
1368     *                                    1.Mandatory parameters are left unspecified.
1369     *                                    2.Incorrect parameter types.
1370     * @throws { BusinessError } 10200011 - The splice method cannot be bound.
1371     * @throws { BusinessError } 10200201 - Concurrent modification error.
1372     * @syscap SystemCapability.Utils.Lang
1373     * @crossplatform
1374     * @atomicservice
1375     * @since 18
1376     */
1377    splice(start: number): Array<T>;
1378    /**
1379     * Removes elements from the array and, if necessary, inserts new elements at the specified position.
1380     *
1381     * @param { number } start - The zero-based index at which to start changing the contents of the array.
1382     * @param { number } deleteCount - The number of elements to remove from the array,
1383     *    starting at the index specified by the start parameter.
1384     * @param { T[] } items - An array of elements to insert into the array,
1385     *    starting at the index specified by the start parameter.
1386     * @returns { Array<T> } An array containing the deleted elements.
1387     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1388     *                                    1.Mandatory parameters are left unspecified.
1389     *                                    2.Incorrect parameter types.
1390     * @throws { BusinessError } 10200011 - The splice method cannot be bound.
1391     * @throws { BusinessError } 10200201 - Concurrent modification error.
1392     * @syscap SystemCapability.Utils.Lang
1393     * @atomicservice
1394     * @since 12
1395     */
1396    /**
1397     * Removes elements from a specified position in an array, and inserts new elements from the same position.
1398     *
1399     * @param { number } start - Index from which the removal starts. If -array.length =< start < 0,
1400     *     the removal starts from start + array.length. If start < -array.length, the removal starts from 0.
1401     * @param { number } deleteCount - Number of elements to remove.
1402     * @param { T[] } items - New elements to insert from the start position.
1403     *     If no value is passed in, only the elements in the array are removed.
1404     * @returns { Array<T> } An array containing the deleted elements.
1405     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1406     *                                    1.Mandatory parameters are left unspecified.
1407     *                                    2.Incorrect parameter types.
1408     * @throws { BusinessError } 10200011 - The splice method cannot be bound.
1409     * @throws { BusinessError } 10200201 - Concurrent modification error.
1410     * @syscap SystemCapability.Utils.Lang
1411     * @crossplatform
1412     * @atomicservice
1413     * @since 18
1414     */
1415    splice(start: number, deleteCount: number, ...items: T[]): Array<T>;
1416    /**
1417     * Check whether the input parameter is an ArkTS array.
1418     *
1419     * @param { Object|undefined|null } value - Value to check.
1420     * @returns { boolean } Returns true if the value is an array; otherwise, returns false.
1421     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1422     *                                     1. Mandatory parameters are left unspecified.
1423     *                                     2. Incorrect parameter types.
1424     *                                     3. Parameter verification failed.
1425     * @static
1426     * @syscap SystemCapability.Utils.Lang
1427     * @atomicservice
1428     * @since 18
1429     */
1430    static isArray(value: Object | undefined | null): boolean;
1431    /**
1432     * Creates an ArkTS array with a variable number of parameters.
1433     *
1434     * @param { T[] } items - Array of elements used to create the array.
1435     *     The number of elements can be zero, one, or more.
1436     * @returns { Array<T> } Returns a new Array instance containing the specified elements.
1437     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1438     *                                     1. Mandatory parameters are left unspecified.
1439     *                                     2. Incorrect parameter types.
1440     *                                     3. Parameter verification failed.
1441     * @static
1442     * @syscap SystemCapability.Utils.Lang
1443     * @atomicservice
1444     * @since 18
1445     */
1446    static of<T>(...items: T[]): Array<T>;
1447    /**
1448     * Copies elements within a given range from this ArkTS array to another position in sequence.
1449     *
1450     * @param { number } target - Index to copy the elements to.
1451     * @param { number } start - Start index of the range. If a negative number is passed in,
1452     *     it refers to the index of start + array.length.
1453     * @param { number } end - End index of the range. If a negative number is passed in,
1454     *     it refers to the index of end + array.length. The default value is the length of the ArkTS array.
1455     * @returns { Array<T> } Returns the modified array after the copy operation.
1456     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1457     *                                     1. Mandatory parameters are left unspecified.
1458     *                                     2. Incorrect parameter types.
1459     *                                     3. Parameter verification failed.
1460     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
1461     * @throws { BusinessError } 10200201 - Concurrent modification error.
1462     * @syscap SystemCapability.Utils.Lang
1463     * @atomicservice
1464     * @since 18
1465     */
1466    copyWithin(target: number, start: number, end?: number): Array<T>;
1467    /**
1468     * Reverses elements in this ArkTS array and returns a reference to the same array.
1469     *
1470     * @returns { Array<T> } The reference to the original typed array, now reversed.
1471     *     <br>Note that the typed array is reversed in place, and no copy is made.
1472     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
1473     * @throws { BusinessError } 10200201 - Concurrent modification error.
1474     * @syscap SystemCapability.Utils.Lang
1475     * @atomicservice
1476     * @since 18
1477     */
1478    reverse(): Array<T>;
1479    /**
1480     * Obtains the index of the last occurrence of the specified value in in this ArkTS array.
1481     *
1482     * @param { T } searchElement - Value to search for.
1483     * @param { number } fromIndex - Index from which the search starts. The default value is 0.
1484     *     If the index is greater than or equal to the length of the ArkTS array, -1 is returned.
1485     *     If a negative number is passed in, it refers to the index of fromIndex + array.length.
1486     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
1487     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
1488     * @throws { BusinessError } 10200201 - Concurrent modification error.
1489     * @syscap SystemCapability.Utils.Lang
1490     * @atomicservice
1491     * @since 18
1492     */
1493    lastIndexOf(searchElement: T, fromIndex?: number): number;
1494    /**
1495     * Checks whether all elements in this ArkTS array meet a given condition.
1496     *
1497     * @param { ArrayPredicateFn<T, Array<T>> } predicate - Assertion function used for the test.
1498     * @returns { boolean } Returns true if the callback function returns a truthy value for every element;
1499     *	   <br>otherwise, it returns false. If the array is empty, it returns true.
1500     * @throws { BusinessError } 10200011 - The every method cannot be bound.
1501     * @throws { BusinessError } 10200201 - Concurrent modification error.
1502     * @syscap SystemCapability.Utils.Lang
1503     * @atomicservice
1504     * @since 18
1505     */
1506    every(predicate: ArrayPredicateFn<T, Array<T>>): boolean;
1507    /**
1508     * Checks whether this ArkTS array contains an element that meets certain conditions.
1509     *
1510     * @param { ArrayPredicateFn<T, Array<T> } predicate - Assertion function used for the test.
1511     * @returns { boolean } Returns true if the callback function returns a truthy value for any element;
1512     *	   <br>otherwise, it returns false. If the array is empty, it returns false.
1513     * @throws { BusinessError } 10200011 - The some method cannot be bound.
1514     * @throws { BusinessError } 10200201 - Concurrent modification error.
1515     * @syscap SystemCapability.Utils.Lang
1516     * @atomicservice
1517     * @since 18
1518     */
1519    some(predicate: ArrayPredicateFn<T, Array<T>>): boolean;
1520    /**
1521     * Converts an ArkTS array into a string.
1522     *
1523     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
1524     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
1525     * @throws { BusinessError } 10200201 - Concurrent modification error.
1526     * @syscap SystemCapability.Utils.Lang
1527     * @atomicservice
1528     * @since 18
1529     */
1530    toString(): string;
1531    /**
1532     * Generates a string that matches the cultural conversions of the current system locale.
1533     * Each element converts itself to a string via its toLocaleString API, and these strings are then joined
1534     * together in sequence with commas (,).
1535     *
1536     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
1537     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
1538     * @throws { BusinessError } 10200201 - Concurrent modification error.
1539     * @syscap SystemCapability.Utils.Lang
1540     * @atomicservice
1541     * @since 18
1542     */
1543    toLocaleString(): string;
1544    /**
1545     * Reduce elements in an ArkTs Array from right to left.
1546     *
1547     * @param { ArrayReduceCallback<U, T, Array<T>> } callbackFn - Function that takes four arguments.
1548     *     It performs an operation on each element and passes the result as an accumulated value to the next element.
1549     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
1550     *     <br>If no initial value is provided, the last element of the array will be used,
1551     *     <br>and the callback will start with the second-to-last element.
1552     * @returns { U } Returns the single value that results from the reduction.
1553     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1554     *                                    1.Mandatory parameters are left unspecified.
1555     *                                    2.Incorrect parameter types.
1556     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
1557     * @throws { BusinessError } 10200201 - Concurrent modification error.
1558     * @syscap SystemCapability.Utils.Lang
1559     * @atomicservice
1560     * @since 18
1561     */
1562    reduceRight<U = T>(callbackFn: ArrayReduceCallback<U, T, Array<T>>, initialValue: U): U;
1563    /**
1564     * Reduce elements in an ArkTs Array from right to left.
1565     *
1566     * @param { ArrayReduceCallback<T, T, Array<T>> } callbackFn - Function that takes four arguments.
1567     *     It performs an operation on each element and passes the result as an accumulated value to the next element.
1568     * @returns { T } Returns the single value that results from the reduction.
1569     * @throws { BusinessError } 401 - Parameter error. Possible causes:
1570     *                                    1.Mandatory parameters are left unspecified.
1571     *                                    2.Incorrect parameter types.
1572     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
1573     * @throws { BusinessError } 10200201 - Concurrent modification error.
1574     * @syscap SystemCapability.Utils.Lang
1575     * @atomicservice
1576     * @since 18
1577     */
1578    reduceRight(callbackFn: ArrayReduceCallback<T, T, Array<T>>): T;
1579 }
1580
1581  /**
1582   * The Map holds key-value pairs.
1583   * If multiple threads access a Map instance concurrently,
1584   * and at least one of the threads modifies the map structurally,
1585   * it must be synchronized externally.
1586   *
1587   * @syscap SystemCapability.Utils.Lang
1588   * @atomicservice
1589   * @since 12
1590   */
1591  /**
1592   * The Map holds key-value pairs.
1593   * If multiple threads access a Map instance concurrently,
1594   * and at least one of the threads modifies the map structurally,
1595   * it must be synchronized externally.
1596   *
1597   * @syscap SystemCapability.Utils.Lang
1598   * @crossplatform
1599   * @atomicservice
1600   * @since 18
1601   */
1602  @Sendable
1603  class Map<K, V> {
1604    /**
1605     * Number of elements in a map.
1606     *
1607     * @type { number }
1608     * @readonly
1609     * @syscap SystemCapability.Utils.Lang
1610     * @atomicservice
1611     * @since 12
1612     */
1613    /**
1614     * Number of elements in a map.
1615     *
1616     * @type { number }
1617     * @readonly
1618     * @syscap SystemCapability.Utils.Lang
1619     * @crossplatform
1620     * @atomicservice
1621     * @since 18
1622     */
1623    readonly size: number;
1624    /**
1625     * A constructor used to create an ArkTS map.
1626     *
1627     * @param { readonly (readonly [K, V])[] | null } [entries] - Array containing key-value pairs, or iterator object.
1628     *     The default value is null, indicating that an empty map is created.
1629     * @throws { BusinessError } 401 - Parameter error.
1630     * @throws { BusinessError } 10200012 - The ArkTS Map's constructor cannot be directly invoked.
1631     * @syscap SystemCapability.Utils.Lang
1632     * @atomicservice
1633     * @since 12
1634     */
1635    /**
1636     * A constructor used to create an ArkTS map.
1637     *
1638     * @param { readonly (readonly [K, V])[] | null } [entries] - Array containing key-value pairs, or iterator object.
1639     *     The default value is null, indicating that an empty map is created.
1640     * @throws { BusinessError } 401 - Parameter error.
1641     * @throws { BusinessError } 10200012 - The ArkTS Map's constructor cannot be directly invoked.
1642     * @syscap SystemCapability.Utils.Lang
1643     * @crossplatform
1644     * @atomicservice
1645     * @since 18
1646     */
1647    constructor(entries?: readonly (readonly [K, V])[] | null)
1648    /**
1649     * A constructor used to create an ArkTS map.
1650     *
1651     * @param { Iterable<readonly [K, V]>} [iterable] - An iterable object to convert to an ArkTS Map.
1652     *    whose elements are key-value pairs.
1653     * @throws { BusinessError } 401 - Parameter error.
1654     * @throws { BusinessError } 10200012 - The ArkTS Map's constructor cannot be directly invoked.
1655     * @syscap SystemCapability.Utils.Lang
1656     * @atomicservice
1657     * @since 12
1658     */
1659    /**
1660     * A constructor used to create an ArkTS map.
1661     *
1662     * @param { Iterable<readonly [K, V]>} [iterable] - An iterable object to convert to an ArkTS Map.
1663     *    whose elements are key-value pairs.
1664     * @throws { BusinessError } 401 - Parameter error.
1665     * @throws { BusinessError } 10200012 - The ArkTS Map's constructor cannot be directly invoked.
1666     * @syscap SystemCapability.Utils.Lang
1667     * @crossplatform
1668     * @atomicservice
1669     * @since 18
1670     */
1671    constructor(iterable: Iterable<readonly [K, V]>);
1672    /**
1673     * Returns an iterator, each item of which is a JavaScript object.
1674     * NOTE:
1675     * This API cannot be used in .ets files.
1676     *
1677     * @returns { IterableIterator<[K, V]> } Iterator object that yields key-value pairs.
1678     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
1679     * @syscap SystemCapability.Utils.Lang
1680     * @atomicservice
1681     * @since 12
1682     */
1683    /**
1684     * Returns an iterator, each item of which is a JavaScript object.
1685     * NOTE:
1686     * This API cannot be used in .ets files.
1687     *
1688     * @returns { IterableIterator<[K, V]> } Iterator object that yields key-value pairs.
1689     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
1690     * @syscap SystemCapability.Utils.Lang
1691     * @crossplatform
1692     * @atomicservice
1693     * @since 18
1694     */
1695    [Symbol.iterator](): IterableIterator<[K, V]>
1696    /**
1697     * Returns a map iterator object that contains the key-value pair of each element in this ArkTS map.
1698     *
1699     * @returns { IterableIterator<[K, V]> } Map iterator object.
1700     * @throws { BusinessError } 10200011 - The entries method cannot be bound with non-sendable.
1701     * @throws { BusinessError } 10200201 - Concurrent modification error.
1702     * @syscap SystemCapability.Utils.Lang
1703     * @atomicservice
1704     * @since 12
1705     */
1706    /**
1707     * Returns a map iterator object that contains the key-value pair of each element in this ArkTS map.
1708     *
1709     * @returns { IterableIterator<[K, V]> } Map iterator object.
1710     * @throws { BusinessError } 10200011 - The entries method cannot be bound with non-sendable.
1711     * @throws { BusinessError } 10200201 - Concurrent modification error.
1712     * @syscap SystemCapability.Utils.Lang
1713     * @crossplatform
1714     * @atomicservice
1715     * @since 18
1716     */
1717    entries(): IterableIterator<[K, V]>;
1718    /**
1719     * Returns a map iterator object that contains the key of each element in this ArkTS map.
1720     *
1721     * @returns { IterableIterator<K> } Map iterator object.
1722     * @throws { BusinessError } 10200011 - The keys method cannot be bound with non-sendable.
1723     * @throws { BusinessError } 10200201 - Concurrent modification error.
1724     * @syscap SystemCapability.Utils.Lang
1725     * @atomicservice
1726     * @since 12
1727     */
1728    /**
1729     * Returns a map iterator object that contains the key of each element in this ArkTS map.
1730     *
1731     * @returns { IterableIterator<K> } Map iterator object.
1732     * @throws { BusinessError } 10200011 - The keys method cannot be bound with non-sendable.
1733     * @throws { BusinessError } 10200201 - Concurrent modification error.
1734     * @syscap SystemCapability.Utils.Lang
1735     * @crossplatform
1736     * @atomicservice
1737     * @since 18
1738     */
1739    keys(): IterableIterator<K>;
1740    /**
1741     * Returns a map iterator object that contains the value of each element in this ArkTS map.
1742     *
1743     * @returns { IterableIterator<V> } Map iterator object.
1744     * @throws { BusinessError } 10200011 - The values method cannot be bound with non-sendable.
1745     * @throws { BusinessError } 10200201 - Concurrent modification error.
1746     * @syscap SystemCapability.Utils.Lang
1747     * @atomicservice
1748     * @since 12
1749     */
1750    /**
1751     * Returns a map iterator object that contains the value of each element in this ArkTS map.
1752     *
1753     * @returns { IterableIterator<V> } Map iterator object.
1754     * @throws { BusinessError } 10200011 - The values method cannot be bound with non-sendable.
1755     * @throws { BusinessError } 10200201 - Concurrent modification error.
1756     * @syscap SystemCapability.Utils.Lang
1757     * @crossplatform
1758     * @atomicservice
1759     * @since 18
1760     */
1761    values(): IterableIterator<V>;
1762    /**
1763     * Removes all elements from this ArkTS map.
1764     *
1765     * @throws { BusinessError } 10200011 - The clear method cannot be bound with non-sendable.
1766     * @throws { BusinessError } 10200201 - Concurrent modification error.
1767     * @syscap SystemCapability.Utils.Lang
1768     * @atomicservice
1769     * @since 12
1770     */
1771    /**
1772     * Removes all elements from this ArkTS map.
1773     *
1774     * @throws { BusinessError } 10200011 - The clear method cannot be bound with non-sendable.
1775     * @throws { BusinessError } 10200201 - Concurrent modification error.
1776     * @syscap SystemCapability.Utils.Lang
1777     * @crossplatform
1778     * @atomicservice
1779     * @since 18
1780     */
1781    clear(): void;
1782    /**
1783     * Deletes a specified key from this ArkTS map.
1784     *
1785     * @param { K } key - Key to delete.
1786     * @returns { boolean } Operation result. The value true is returned if the key exists and has been deleted;
1787     *     otherwise, false is returned.
1788     * @throws { BusinessError } 401 - Parameter error.
1789     * @throws { BusinessError } 10200011 - The delete method cannot be bound with non-sendable.
1790     * @throws { BusinessError } 10200201 - Concurrent modification error.
1791     * @syscap SystemCapability.Utils.Lang
1792     * @atomicservice
1793     * @since 12
1794     */
1795    /**
1796     * Deletes a specified key from this ArkTS map.
1797     *
1798     * @param { K } key - Key to delete.
1799     * @returns { boolean } Operation result. The value true is returned if the key exists and has been deleted;
1800     *     otherwise, false is returned.
1801     * @throws { BusinessError } 401 - Parameter error.
1802     * @throws { BusinessError } 10200011 - The delete method cannot be bound with non-sendable.
1803     * @throws { BusinessError } 10200201 - Concurrent modification error.
1804     * @syscap SystemCapability.Utils.Lang
1805     * @crossplatform
1806     * @atomicservice
1807     * @since 18
1808     */
1809    delete(key: K): boolean;
1810    /**
1811     * Calls a callback function for each key-value pair in this ArkTS map.
1812     *
1813     * @param { function } callbackFn - A function that accepts up to three arguments.
1814     *     The function to be called for each element.
1815     * @throws { BusinessError } 401 - Parameter error.
1816     * @throws { BusinessError } 10200011 - The forEach method cannot be bound with non-sendable.
1817     * @throws { BusinessError } 10200201 - Concurrent modification error.
1818     * @syscap SystemCapability.Utils.Lang
1819     * @atomicservice
1820     * @since 12
1821     */
1822    /**
1823     * Calls a callback function for each key-value pair in this ArkTS map.
1824     *
1825     * @param { function } callbackFn - A function that accepts up to three arguments.
1826     *     The function to be called for each element.
1827     * @throws { BusinessError } 401 - Parameter error.
1828     * @throws { BusinessError } 10200011 - The forEach method cannot be bound with non-sendable.
1829     * @throws { BusinessError } 10200201 - Concurrent modification error.
1830     * @syscap SystemCapability.Utils.Lang
1831     * @crossplatform
1832     * @atomicservice
1833     * @since 18
1834     */
1835    forEach(callbackFn: (value: V, key: K, map: Map<K, V>) => void): void;
1836    /**
1837     * Returns a specified element from the Map object.
1838     * If the value that is associated to the provided key is an object,
1839     * then you will get a reference to that object and any change made to that object
1840     * will effectively modify it inside the Map.
1841     *
1842     * @param { K } key - The key of the element to return from the Map object
1843     * @returns { V | undefined } The element associated with the specified key,
1844     *     or undefined if the key can''t be found in the Map object.
1845     * @throws { BusinessError } 401 - Parameter error.
1846     * @throws { BusinessError } 10200011 - The get method cannot be bound with non-sendable.
1847     * @throws { BusinessError } 10200201 - Concurrent modification error.
1848     * @syscap SystemCapability.Utils.Lang
1849     * @atomicservice
1850     * @since 12
1851     */
1852    /**
1853     * Returns a specified element from the Map object.
1854     * If the value that is associated to the provided key is an object,
1855     * then you will get a reference to that object and any change made to that object
1856     * will effectively modify it inside the Map.
1857     *
1858     * @param { K } key - The key of the element to return from the Map object
1859     * @returns { V | undefined } The element associated with the specified key,
1860     *     or undefined if the key can''t be found in the Map object.
1861     * @throws { BusinessError } 401 - Parameter error.
1862     * @throws { BusinessError } 10200011 - The get method cannot be bound with non-sendable.
1863     * @throws { BusinessError } 10200201 - Concurrent modification error.
1864     * @syscap SystemCapability.Utils.Lang
1865     * @crossplatform
1866     * @atomicservice
1867     * @since 18
1868     */
1869    get(key: K): V | undefined;
1870    /**
1871     * Returns boolean indicating whether an element with the specified key exists or not.
1872     *
1873     * @param { K } key - The key of the element to test for presence in the Map object.
1874     * @returns { boolean } true if an element with the specified key exists in the Map Object; otherwise false.
1875     * @throws { BusinessError } 401 - Parameter error.
1876     * @throws { BusinessError } 10200011 - The has method cannot be bound with non-sendable.
1877     * @throws { BusinessError } 10200201 - Concurrent modification error.
1878     * @syscap SystemCapability.Utils.Lang
1879     * @atomicservice
1880     * @since 12
1881     */
1882    /**
1883     * Returns boolean indicating whether an element with the specified key exists or not.
1884     *
1885     * @param { K } key - The key of the element to test for presence in the Map object.
1886     * @returns { boolean } true if an element with the specified key exists in the Map Object; otherwise false.
1887     * @throws { BusinessError } 401 - Parameter error.
1888     * @throws { BusinessError } 10200011 - The has method cannot be bound with non-sendable.
1889     * @throws { BusinessError } 10200201 - Concurrent modification error.
1890     * @syscap SystemCapability.Utils.Lang
1891     * @crossplatform
1892     * @atomicservice
1893     * @since 18
1894     */
1895    has(key: K): boolean;
1896    /**
1897     * Adds a new element with a specified key and value to the Map.
1898     * If an element with the same key already exists, the element will be updated.
1899     *
1900     * @param { K } key - The key of the element to add to the Map object.
1901     * @param { V } value - The value of the element to add to the object.
1902     * @returns { Map<K, V> } The Object.
1903     * @throws { BusinessError } 401 - Parameter error.
1904     * @throws { BusinessError } 10200011 - The set method cannot be bound with non-sendable.
1905     * @throws { BusinessError } 10200201 - Concurrent modification error.
1906     * @syscap SystemCapability.Utils.Lang
1907     * @atomicservice
1908     * @since 12
1909     */
1910    /**
1911     * Adds a new element with a specified key and value to the Map.
1912     * If an element with the same key already exists, the element will be updated.
1913     *
1914     * @param { K } key - The key of the element to add to the Map object.
1915     * @param { V } value - The value of the element to add to the object.
1916     * @returns { Map<K, V> } The Object.
1917     * @throws { BusinessError } 401 - Parameter error.
1918     * @throws { BusinessError } 10200011 - The set method cannot be bound with non-sendable.
1919     * @throws { BusinessError } 10200201 - Concurrent modification error.
1920     * @syscap SystemCapability.Utils.Lang
1921     * @crossplatform
1922     * @atomicservice
1923     * @since 18
1924     */
1925    set(key: K, value: V): Map<K, V>;
1926  }
1927
1928  /**
1929   * Set lets you store unique values of any type.
1930   * If multiple threads access a Set instance concurrently,
1931   * and at least one of the threads modifies the set structurally,
1932   * it must be synchronized externally.
1933   *
1934   * @syscap SystemCapability.Utils.Lang
1935   * @atomicservice
1936   * @since 12
1937   */
1938  /**
1939   * Set lets you store unique values of any type.
1940   * If multiple threads access a Set instance concurrently,
1941   * and at least one of the threads modifies the set structurally,
1942   * it must be synchronized externally.
1943   *
1944   * @syscap SystemCapability.Utils.Lang
1945   * @crossplatform
1946   * @atomicservice
1947   * @since 18
1948   */
1949  @Sendable
1950  class Set<T> {
1951    /**
1952     * Number of elements in a set.
1953     *
1954     * @type { number }
1955     * @readonly
1956     * @syscap SystemCapability.Utils.Lang
1957     * @atomicservice
1958     * @since 12
1959     */
1960    /**
1961     * Number of elements in a set.
1962     *
1963     * @type { number }
1964     * @readonly
1965     * @syscap SystemCapability.Utils.Lang
1966     * @crossplatform
1967     * @atomicservice
1968     * @since 18
1969     */
1970    readonly size: number;
1971    /**
1972     * A constructor used to create an ArkTS set.
1973     *
1974     * @param { readonly T[] | null } [values] - If an iterable object is passed,
1975     *     all of its elements will be added to the new Set.
1976     *     If you don't specify this parameter, or its value is null, the new Set is empty.
1977     * @throws { BusinessError } 401 - Parameter error.
1978     * @throws { BusinessError } 10200012 - The ArkTS Set's constructor cannot be directly invoked.
1979     * @syscap SystemCapability.Utils.Lang
1980     * @atomicservice
1981     * @since 12
1982     */
1983    /**
1984     * A constructor used to create an ArkTS set.
1985     *
1986     * @param { readonly T[] | null } [values] - If an iterable object is passed,
1987     *     all of its elements will be added to the new Set.
1988     *     If you don't specify this parameter, or its value is null, the new Set is empty.
1989     * @throws { BusinessError } 401 - Parameter error.
1990     * @throws { BusinessError } 10200012 - The ArkTS Set's constructor cannot be directly invoked.
1991     * @syscap SystemCapability.Utils.Lang
1992     * @crossplatform
1993     * @atomicservice
1994     * @since 18
1995     */
1996    constructor(values?: readonly T[] | null);
1997    /**
1998     * A constructor used to create an ArkTS set.
1999     *
2000     * @param { Iterable<T>} [iterable] - If an iterable object is passed,
2001     *     all of its elements will be added to the new Set.
2002     *     If you don't specify this parameter, or its value is null, the new Set is empty.
2003     * @throws { BusinessError } 401 - Parameter error.
2004     * @throws { BusinessError } 10200012 - The ArkTS Set's constructor cannot be directly invoked.
2005     * @syscap SystemCapability.Utils.Lang
2006     * @atomicservice
2007     * @since 12
2008     */
2009    /**
2010     * A constructor used to create an ArkTS set.
2011     *
2012     * @param { Iterable<T>} [iterable] - If an iterable object is passed,
2013     *     all of its elements will be added to the new Set.
2014     *     If you don't specify this parameter, or its value is null, the new Set is empty.
2015     * @throws { BusinessError } 401 - Parameter error.
2016     * @throws { BusinessError } 10200012 - The ArkTS Set's constructor cannot be directly invoked.
2017     * @syscap SystemCapability.Utils.Lang
2018     * @crossplatform
2019     * @atomicservice
2020     * @since 18
2021     */
2022    constructor(iterable: Iterable<T>);
2023    /**
2024     * Returns an iterator, each item of which is a JavaScript object.
2025     * NOTE:
2026     * This API cannot be used in .ets files.
2027     *
2028     * @returns { IterableIterator<T> } Iterator object.
2029     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
2030     * @syscap SystemCapability.Utils.Lang
2031     * @atomicservice
2032     * @since 12
2033     */
2034    /**
2035     * Returns an iterator, each item of which is a JavaScript object.
2036     * NOTE:
2037     * This API cannot be used in .ets files.
2038     *
2039     * @returns { IterableIterator<T> } Iterator object.
2040     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
2041     * @syscap SystemCapability.Utils.Lang
2042     * @crossplatform
2043     * @atomicservice
2044     * @since 18
2045     */
2046    [Symbol.iterator](): IterableIterator<T>;
2047    /**
2048     * Returns a set iterator object that contains the key-value pair of each element in this ArkTS set.
2049     *
2050     * @returns { IterableIterator<[T, T]> } Set iterator object.
2051     * @throws { BusinessError } 10200011 - The entries method cannot be bound with non-sendable.
2052     * @throws { BusinessError } 10200201 - Concurrent modification error.
2053     * @syscap SystemCapability.Utils.Lang
2054     * @atomicservice
2055     * @since 12
2056     */
2057    /**
2058     * Returns a set iterator object that contains the key-value pair of each element in this ArkTS set.
2059     *
2060     * @returns { IterableIterator<[T, T]> } Set iterator object.
2061     * @throws { BusinessError } 10200011 - The entries method cannot be bound with non-sendable.
2062     * @throws { BusinessError } 10200201 - Concurrent modification error.
2063     * @syscap SystemCapability.Utils.Lang
2064     * @crossplatform
2065     * @atomicservice
2066     * @since 18
2067     */
2068    entries(): IterableIterator<[T, T]>;
2069    /**
2070     * Returns a set iterator object that contains the key of each element in this ArkTS set.
2071     *
2072     * @returns { IterableIterator<T> } Set iterator object.
2073     * @throws { BusinessError } 10200011 - The keys method cannot be bound with non-sendable.
2074     * @throws { BusinessError } 10200201 - Concurrent modification error.
2075     * @syscap SystemCapability.Utils.Lang
2076     * @atomicservice
2077     * @since 12
2078     */
2079    /**
2080     * Returns a set iterator object that contains the key of each element in this ArkTS set.
2081     *
2082     * @returns { IterableIterator<T> } Set iterator object.
2083     * @throws { BusinessError } 10200011 - The keys method cannot be bound with non-sendable.
2084     * @throws { BusinessError } 10200201 - Concurrent modification error.
2085     * @syscap SystemCapability.Utils.Lang
2086     * @crossplatform
2087     * @atomicservice
2088     * @since 18
2089     */
2090    keys(): IterableIterator<T>;
2091    /**
2092     * Returns a set iterator object that contains the value of each element in this ArkTS set.
2093     *
2094     * @returns { IterableIterator<T> } Set iterator object.
2095     * @throws { BusinessError } 10200011 - The values method cannot be bound with non-sendable.
2096     * @throws { BusinessError } 10200201 - Concurrent modification error.
2097     * @syscap SystemCapability.Utils.Lang
2098     * @atomicservice
2099     * @since 12
2100     */
2101    /**
2102     * Returns a set iterator object that contains the value of each element in this ArkTS set.
2103     *
2104     * @returns { IterableIterator<T> } Set iterator object.
2105     * @throws { BusinessError } 10200011 - The values method cannot be bound with non-sendable.
2106     * @throws { BusinessError } 10200201 - Concurrent modification error.
2107     * @syscap SystemCapability.Utils.Lang
2108     * @crossplatform
2109     * @atomicservice
2110     * @since 18
2111     */
2112    values(): IterableIterator<T>;
2113    /**
2114     * Checks whether a value exists in this ArkTS set, and if not, adds the value to the set.
2115     *
2116     * @param { T } value - The value of the element to add to the Set object.
2117     * @returns { Set<T> } The Set object with added value.
2118     * @throws { BusinessError } 10200011 - The add method cannot be bound with non-sendable.
2119     * @throws { BusinessError } 10200201 - Concurrent modification error.
2120     * @syscap SystemCapability.Utils.Lang
2121     * @atomicservice
2122     * @since 12
2123     */
2124    /**
2125     * Checks whether a value exists in this ArkTS set, and if not, adds the value to the set.
2126     *
2127     * @param { T } value - The value of the element to add to the Set object.
2128     * @returns { Set<T> } The Set object with added value.
2129     * @throws { BusinessError } 10200011 - The add method cannot be bound with non-sendable.
2130     * @throws { BusinessError } 10200201 - Concurrent modification error.
2131     * @syscap SystemCapability.Utils.Lang
2132     * @crossplatform
2133     * @atomicservice
2134     * @since 18
2135     */
2136    add(value: T): Set<T>;
2137    /**
2138     * Removes all elements from this ArkTS set.
2139     *
2140     * @throws { BusinessError } 10200011 - The clear method cannot be bound with non-sendable.
2141     * @throws { BusinessError } 10200201 - Concurrent modification error.
2142     * @syscap SystemCapability.Utils.Lang
2143     * @atomicservice
2144     * @since 12
2145     */
2146    /**
2147     * Removes all elements from this ArkTS set.
2148     *
2149     * @throws { BusinessError } 10200011 - The clear method cannot be bound with non-sendable.
2150     * @throws { BusinessError } 10200201 - Concurrent modification error.
2151     * @syscap SystemCapability.Utils.Lang
2152     * @crossplatform
2153     * @atomicservice
2154     * @since 18
2155     */
2156    clear(): void;
2157    /**
2158     * Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
2159     *
2160     * @param { T } value - The value to remove from Set.
2161     * @returns { boolean } Returns true if value was already in Set; otherwise false.
2162     * @throws { BusinessError } 10200011 - The delete method cannot be bound with non-sendable.
2163     * @throws { BusinessError } 10200201 - Concurrent modification error.
2164     * @syscap SystemCapability.Utils.Lang
2165     * @atomicservice
2166     * @since 12
2167     */
2168    /**
2169     * Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
2170     *
2171     * @param { T } value - The value to remove from Set.
2172     * @returns { boolean } Returns true if value was already in Set; otherwise false.
2173     * @throws { BusinessError } 10200011 - The delete method cannot be bound with non-sendable.
2174     * @throws { BusinessError } 10200201 - Concurrent modification error.
2175     * @syscap SystemCapability.Utils.Lang
2176     * @crossplatform
2177     * @atomicservice
2178     * @since 18
2179     */
2180    delete(value: T): boolean;
2181    /**
2182     * Calls a callback function for each key-value pair in this ArkTS set.
2183     *
2184     * @param { function } callbackFn - A function that accepts up to three arguments.
2185     *     The function to be called for each element.
2186     * @throws { BusinessError } 401 - Parameter error.
2187     * @throws { BusinessError } 10200011 - The forEach method cannot be bound with non-sendable.
2188     * @throws { BusinessError } 10200201 - Concurrent modification error.
2189     * @syscap SystemCapability.Utils.Lang
2190     * @atomicservice
2191     * @since 12
2192     */
2193    /**
2194     * Calls a callback function for each key-value pair in this ArkTS set.
2195     *
2196     * @param { function } callbackFn - A function that accepts up to three arguments.
2197     *     The function to be called for each element.
2198     * @throws { BusinessError } 401 - Parameter error.
2199     * @throws { BusinessError } 10200011 - The forEach method cannot be bound with non-sendable.
2200     * @throws { BusinessError } 10200201 - Concurrent modification error.
2201     * @syscap SystemCapability.Utils.Lang
2202     * @crossplatform
2203     * @atomicservice
2204     * @since 18
2205     */
2206    forEach(callbackFn: (value: T, value2: T, set: Set<T>) => void): void;
2207    /**
2208     * Checks whether a value exists in this ArkTS set.
2209     *
2210     * @param { T } value -  The value to test for presence in the Object.
2211     * @returns { boolean } Returns true if an element with the specified value exists in the Set object;
2212     *     otherwise false.
2213     * @throws { BusinessError } 401 - Parameter error.
2214     * @throws { BusinessError } 10200011 - The has method cannot be bound with non-sendable.
2215     * @throws { BusinessError } 10200201 - Concurrent modification error.
2216     * @syscap SystemCapability.Utils.Lang
2217     * @atomicservice
2218     * @since 12
2219     */
2220    /**
2221     * Checks whether a value exists in this ArkTS set.
2222     *
2223     * @param { T } value -  The value to test for presence in the Object.
2224     * @returns { boolean } Returns true if an element with the specified value exists in the Set object;
2225     *     otherwise false.
2226     * @throws { BusinessError } 401 - Parameter error.
2227     * @throws { BusinessError } 10200011 - The has method cannot be bound with non-sendable.
2228     * @throws { BusinessError } 10200201 - Concurrent modification error.
2229     * @syscap SystemCapability.Utils.Lang
2230     * @crossplatform
2231     * @atomicservice
2232     * @since 18
2233     */
2234    has(value: T): boolean;
2235  }
2236  /**
2237   * Represents a raw buffer of binary data, which is used to store data for the
2238   * different typed arrays. ArrayBuffers cannot be read from or written to directly,
2239   * but can be passed to a typed array or DataView Object to interpret the raw
2240   * buffer as needed.
2241   * If multiple threads access a ArrayBuffer instance concurrently,
2242   * and at least one of the threads modifies the buffer structurally,
2243   * it must be synchronized externally.
2244   *
2245   * @syscap SystemCapability.Utils.Lang
2246   * @atomicservice
2247   * @since 12
2248   */
2249  /**
2250   * Represents a raw buffer of binary data, which is used to store data for the
2251   * different typed arrays. ArrayBuffers cannot be read from or written to directly,
2252   * but can be passed to a typed array or DataView Object to interpret the raw
2253   * buffer as needed.
2254   * If multiple threads access a ArrayBuffer instance concurrently,
2255   * and at least one of the threads modifies the buffer structurally,
2256   * it must be synchronized externally.
2257   *
2258   * @syscap SystemCapability.Utils.Lang
2259   * @crossplatform
2260   * @atomicservice
2261   * @since 18
2262   */
2263  @Sendable
2264  class ArrayBuffer {
2265    /**
2266     * Read-only. Number of bytes occupied by the buffer.
2267     *
2268     * @type { number }
2269     * @readonly
2270     * @syscap SystemCapability.Utils.Lang
2271     * @atomicservice
2272     * @since 12
2273     */
2274    /**
2275     * Read-only. Number of bytes occupied by the buffer.
2276     *
2277     * @type { number }
2278     * @readonly
2279     * @syscap SystemCapability.Utils.Lang
2280     * @crossplatform
2281     * @atomicservice
2282     * @since 18
2283     */
2284    readonly byteLength: number;
2285    /**
2286     * A constructor used to create an ArkTS ArrayBuffer of a given length.
2287     *
2288     * @param { number } byteLength - Number of bytes occupied by the buffer.
2289     * @throws { BusinessError } 10200012 - The ArrayBuffer's constructor cannot be directly invoked.
2290     * @throws { BusinessError } 401 - Parameter error.
2291     * @syscap SystemCapability.Utils.Lang
2292     * @atomicservice
2293     * @since 12
2294     */
2295    /**
2296     * A constructor used to create an ArkTS ArrayBuffer of a given length.
2297     *
2298     * @param { number } byteLength - Number of bytes occupied by the buffer.
2299     * @throws { BusinessError } 10200012 - The ArrayBuffer's constructor cannot be directly invoked.
2300     * @throws { BusinessError } 401 - Parameter error.
2301     * @syscap SystemCapability.Utils.Lang
2302     * @crossplatform
2303     * @atomicservice
2304     * @since 18
2305     */
2306    constructor(byteLength: number);
2307    /**
2308     * Selects a range of elements in this ArkTS ArrayBuffer to create an ArkTS ArrayBuffer.
2309     *
2310     * @param { number } begin - Start index of the range.
2311     *     If a negative number is passed in, it refers to the index of begin + arraybuffer.byteLength.
2312     * @param { number } [end] - End index of the range.
2313     *     If a negative number is passed in, it refers to the index of end + arraybuffer.byteLength.
2314     *     The default value is the length of the original ArkTS ArrayBuffer. Default is buffer.length
2315     * @returns { ArrayBuffer } A new ArrayBuffer containing the extracted elements.
2316     * @throws { BusinessError } 401 - Parameter error.
2317     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
2318     * @throws { BusinessError } 10200201 - Concurrent modification error.
2319     * @syscap SystemCapability.Utils.Lang
2320     * @atomicservice
2321     * @since 12
2322     */
2323    /**
2324     * Selects a range of elements in this ArkTS ArrayBuffer to create an ArkTS ArrayBuffer.
2325     *
2326     * @param { number } begin - Start index of the range.
2327     *     If a negative number is passed in, it refers to the index of begin + arraybuffer.byteLength.
2328     * @param { number } [end] - End index of the range.
2329     *     If a negative number is passed in, it refers to the index of end + arraybuffer.byteLength.
2330     *     The default value is the length of the original ArkTS ArrayBuffer. Default is buffer.length
2331     * @returns { ArrayBuffer } A new ArrayBuffer containing the extracted elements.
2332     * @throws { BusinessError } 401 - Parameter error.
2333     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
2334     * @throws { BusinessError } 10200201 - Concurrent modification error.
2335     * @syscap SystemCapability.Utils.Lang
2336     * @crossplatform
2337     * @atomicservice
2338     * @since 18
2339     */
2340    slice(begin: number, end?: number): ArrayBuffer;
2341  }
2342
2343  /**
2344   * A typed array of 8-bit integer values. The contents are initialized to 0.
2345   * If multiple threads access a Int8Array instance concurrently,
2346   * and at least one of the threads modifies the array structurally,
2347   * it must be synchronized externally.
2348   *
2349   * @syscap SystemCapability.Utils.Lang
2350   * @atomicservice
2351   * @since 12
2352   */
2353  /**
2354   * A typed array of 8-bit integer values. The contents are initialized to 0.
2355   * If multiple threads access a Int8Array instance concurrently,
2356   * and at least one of the threads modifies the array structurally,
2357   * it must be synchronized externally.
2358   *
2359   * @syscap SystemCapability.Utils.Lang
2360   * @crossplatform
2361   * @atomicservice
2362   * @since 18
2363   */
2364  @Sendable
2365  class Int8Array {
2366    /**
2367     * Number of bytes occupied by each element in the ArkTS array.
2368     *
2369     * @type { number }
2370     * @readonly
2371     * @static
2372     * @syscap SystemCapability.Utils.Lang
2373     * @atomicservice
2374     * @since 12
2375     */
2376    /**
2377     * Number of bytes occupied by each element in the ArkTS array.
2378     *
2379     * @type { number }
2380     * @readonly
2381     * @static
2382     * @syscap SystemCapability.Utils.Lang
2383     * @crossplatform
2384     * @atomicservice
2385     * @since 18
2386     */
2387    static readonly BYTES_PER_ELEMENT: number;
2388    /**
2389     * Bottom-layer buffer used by an ArkTS array.
2390     *
2391     * @type { ArrayBuffer }
2392     * @readonly
2393     * @syscap SystemCapability.Utils.Lang
2394     * @atomicservice
2395     * @since 12
2396     */
2397    /**
2398     * Bottom-layer buffer used by an ArkTS array.
2399     *
2400     * @type { ArrayBuffer }
2401     * @readonly
2402     * @syscap SystemCapability.Utils.Lang
2403     * @crossplatform
2404     * @atomicservice
2405     * @since 18
2406     */
2407    readonly buffer: ArrayBuffer;
2408    /**
2409     * Number of bytes occupied by the ArkTS array.
2410     *
2411     * @type { number }
2412     * @readonly
2413     * @syscap SystemCapability.Utils.Lang
2414     * @atomicservice
2415     * @since 12
2416     */
2417    /**
2418     * Number of bytes occupied by the ArkTS array.
2419     *
2420     * @type { number }
2421     * @readonly
2422     * @syscap SystemCapability.Utils.Lang
2423     * @crossplatform
2424     * @atomicservice
2425     * @since 18
2426     */
2427    readonly byteLength: number;
2428    /**
2429     * Offset between the ArkTS array and the start position of the ArrayBuffer.
2430     *
2431     * @type { number }
2432     * @readonly
2433     * @syscap SystemCapability.Utils.Lang
2434     * @atomicservice
2435     * @since 12
2436     */
2437    /**
2438     * Offset between the ArkTS array and the start position of the ArrayBuffer.
2439     *
2440     * @type { number }
2441     * @readonly
2442     * @syscap SystemCapability.Utils.Lang
2443     * @crossplatform
2444     * @atomicservice
2445     * @since 18
2446     */
2447    readonly byteOffset: number;
2448    /**
2449     * Number of elements in the ArkTS array.
2450     *
2451     * @type { number }
2452     * @readonly
2453     * @syscap SystemCapability.Utils.Lang
2454     * @atomicservice
2455     * @since 12
2456     */
2457    /**
2458     * Number of elements in the ArkTS array.
2459     *
2460     * @type { number }
2461     * @readonly
2462     * @syscap SystemCapability.Utils.Lang
2463     * @crossplatform
2464     * @atomicservice
2465     * @since 18
2466     */
2467    readonly length: number;
2468    /**
2469     * A constructor used to create an empty ArkTS Int8Array.
2470     *
2471     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2472     * @syscap SystemCapability.Utils.Lang
2473     * @atomicservice
2474     * @since 12
2475     */
2476    /**
2477     * A constructor used to create an empty ArkTS Int8Array.
2478     *
2479     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2480     * @syscap SystemCapability.Utils.Lang
2481     * @crossplatform
2482     * @atomicservice
2483     * @since 18
2484     */
2485    constructor();
2486    /**
2487     * A constructor used to create an ArkTS Int8Array of a given length.
2488     *
2489     * @param { number } length - Length of the ArkTS Int8Array.
2490     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2491     * @throws { BusinessError } 401 - Parameter error.
2492     * @syscap SystemCapability.Utils.Lang
2493     * @atomicservice
2494     * @since 12
2495     */
2496    /**
2497     * A constructor used to create an ArkTS Int8Array of a given length.
2498     *
2499     * @param { number } length - Length of the ArkTS Int8Array.
2500     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2501     * @throws { BusinessError } 401 - Parameter error.
2502     * @syscap SystemCapability.Utils.Lang
2503     * @crossplatform
2504     * @atomicservice
2505     * @since 18
2506     */
2507    constructor(length: number);
2508    /**
2509     * A constructor used to create an Int8Array.
2510     *
2511     * @param { Iterable<number> } elements - An iterable object to convert to an Int8Array.
2512     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2513     * @throws { BusinessError } 401 - Parameter error.
2514     * @syscap SystemCapability.Utils.Lang
2515     * @atomicservice
2516     * @since 12
2517     */
2518    /**
2519     * A constructor used to create an Int8Array.
2520     *
2521     * @param { Iterable<number> } elements - An iterable object to convert to an Int8Array.
2522     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2523     * @throws { BusinessError } 401 - Parameter error.
2524     * @syscap SystemCapability.Utils.Lang
2525     * @crossplatform
2526     * @atomicservice
2527     * @since 18
2528     */
2529    constructor(elements: Iterable<number>);
2530    /**
2531     * A constructor that creates an ArkTS Int8Array from an array-like object or ArkTS ArrayBuffer.
2532     *
2533     * @param { ArrayLike<number> | ArrayBuffer } array - Object used to construct the ArkTS Int8Array. When the
2534     *      parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4.
2535     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2536     * @throws { BusinessError } 401 - Parameter error.
2537     * @syscap SystemCapability.Utils.Lang
2538     * @atomicservice
2539     * @since 12
2540     */
2541    /**
2542     * A constructor that creates an ArkTS Int8Array from an array-like object or ArkTS ArrayBuffer.
2543     *
2544     * @param { ArrayLike<number> | ArrayBuffer } array - Object used to construct the ArkTS Int8Array. When the
2545     *      parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4.
2546     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2547     * @throws { BusinessError } 401 - Parameter error.
2548     * @syscap SystemCapability.Utils.Lang
2549     * @crossplatform
2550     * @atomicservice
2551     * @since 18
2552     */
2553    constructor(array: ArrayLike<number> | ArrayBuffer);
2554    /**
2555     * A constructor that creates an ArkTS Int8Array from an ArrayBuffer.
2556     *
2557     * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Int8Array.
2558     *     The number of bytes occupied by the buffer must be an integer multiple of 4.
2559     * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0.
2560     * @param { number } [length] - Length of the ArkTS Int8Array. The default value is 0.
2561     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2562     * @throws { BusinessError } 401 - Parameter error.
2563     * @syscap SystemCapability.Utils.Lang
2564     * @atomicservice
2565     * @since 12
2566     */
2567    /**
2568     * A constructor that creates an ArkTS Int8Array from an ArrayBuffer.
2569     *
2570     * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Int8Array.
2571     *     The number of bytes occupied by the buffer must be an integer multiple of 4.
2572     * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0.
2573     * @param { number } [length] - Length of the ArkTS Int8Array. The default value is 0.
2574     * @throws { BusinessError } 10200012 - The Int8Array's constructor cannot be directly invoked.
2575     * @throws { BusinessError } 401 - Parameter error.
2576     * @syscap SystemCapability.Utils.Lang
2577     * @crossplatform
2578     * @atomicservice
2579     * @since 18
2580     */
2581    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
2582    /**
2583     * Creates an ArkTS Int8Array from an array-like or iterator object.
2584     *
2585     * @param { ArrayLike<number> } arrayLike - Array-like object used to construct the ArkTS Int8Array.
2586     * @returns { Int8Array } New ArkTS Int8Array generated.
2587     * @throws { BusinessError } 401 - Parameter error.
2588     * @static
2589     * @syscap SystemCapability.Utils.Lang
2590     * @atomicservice
2591     * @since 12
2592     */
2593    /**
2594     * Creates an ArkTS Int8Array from an array-like or iterator object.
2595     *
2596     * @param { ArrayLike<number> } arrayLike - Array-like object used to construct the ArkTS Int8Array.
2597     * @returns { Int8Array } New ArkTS Int8Array generated.
2598     * @throws { BusinessError } 401 - Parameter error.
2599     * @static
2600     * @syscap SystemCapability.Utils.Lang
2601     * @crossplatform
2602     * @atomicservice
2603     * @since 18
2604     */
2605    static from(arrayLike: ArrayLike<number>): Int8Array;
2606
2607    /**
2608     * Creates an ArkTS Int8Array from an array-like object.
2609     *
2610     * @param { ArrayLike<T> } arrayLike - Array-like object used to construct the ArkTS Int8Array.
2611     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
2612     * @returns { Int8Array } New ArkTS Int8Array generated.
2613     * @throws { BusinessError } 401 - Parameter error.
2614     * @static
2615     * @syscap SystemCapability.Utils.Lang
2616     * @atomicservice
2617     * @since 12
2618     */
2619    /**
2620     * Creates an ArkTS Int8Array from an array-like object.
2621     *
2622     * @param { ArrayLike<T> } arrayLike - Array-like object used to construct the ArkTS Int8Array.
2623     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
2624     * @returns { Int8Array } New ArkTS Int8Array generated.
2625     * @throws { BusinessError } 401 - Parameter error.
2626     * @static
2627     * @syscap SystemCapability.Utils.Lang
2628     * @crossplatform
2629     * @atomicservice
2630     * @since 18
2631     */
2632    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Int8Array;
2633    /**
2634     * Creates an ArkTS Int8Array from an iterator object.
2635     *
2636     * @param { Iterable<number> } arrayLike - Iterator object used to construct the ArkTS Int8Array.
2637     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - Mapping function. If no value is passed in,
2638     *     no special processing is conducted on the elements.
2639     * @returns { Int8Array } A new Int8Array instance
2640     * @throws { BusinessError } 401 - Parameter error.
2641     * @static
2642     * @syscap SystemCapability.Utils.Lang
2643     * @atomicservice
2644     * @since 12
2645     */
2646    /**
2647     * Creates an ArkTS Int8Array from an iterator object.
2648     *
2649     * @param { Iterable<number> } arrayLike - Iterator object used to construct the ArkTS Int8Array.
2650     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - Mapping function. If no value is passed in,
2651     *     no special processing is conducted on the elements.
2652     * @returns { Int8Array } A new Int8Array instance
2653     * @throws { BusinessError } 401 - Parameter error.
2654     * @static
2655     * @syscap SystemCapability.Utils.Lang
2656     * @crossplatform
2657     * @atomicservice
2658     * @since 18
2659     */
2660    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Int8Array;
2661    /**
2662     * Copies elements within a given range from this ArkTS Int8Array to another position in sequence.
2663     *
2664     * @param { number } target - If target is negative, it is treated as length+target where length is the
2665     *     length of the array.
2666     * @param { number } start - Start index of the range.
2667     *     If a negative number is passed in, it refers to the index of start + Int8Array.length.
2668     * @param { number } [end] - End index of the range.
2669     *     If a negative number is passed in, it refers to the index of end + Int8Array.length.
2670     *     The default value is the length of the ArkTS Int8Array.
2671     * @returns { Int8Array } ArkTS Int8Array after being modified.
2672     * @throws { BusinessError } 401 - Parameter error.
2673     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
2674     * @throws { BusinessError } 10200201 - Concurrent modification error.
2675     * @syscap SystemCapability.Utils.Lang
2676     * @atomicservice
2677     * @since 12
2678     */
2679    /**
2680     * Copies elements within a given range from this ArkTS Int8Array to another position in sequence.
2681     *
2682     * @param { number } target - If target is negative, it is treated as length+target where length is the
2683     *     length of the array.
2684     * @param { number } start - Start index of the range.
2685     *     If a negative number is passed in, it refers to the index of start + Int8Array.length.
2686     * @param { number } [end] - End index of the range.
2687     *     If a negative number is passed in, it refers to the index of end + Int8Array.length.
2688     *     The default value is the length of the ArkTS Int8Array.
2689     * @returns { Int8Array } ArkTS Int8Array after being modified.
2690     * @throws { BusinessError } 401 - Parameter error.
2691     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
2692     * @throws { BusinessError } 10200201 - Concurrent modification error.
2693     * @syscap SystemCapability.Utils.Lang
2694     * @crossplatform
2695     * @atomicservice
2696     * @since 18
2697     */
2698    copyWithin(target: number, start: number, end?: number): Int8Array;
2699    /**
2700     * Checks whether all elements in this ArkTS Int8Array meet a given condition.
2701     *
2702     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - A function that accepts up to three arguments.
2703     *     The every method calls the predicate function for each element in the array until
2704     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
2705     * @returns { boolean } Check result. The value true is returned if all elements meet the given condition;
2706     *     otherwise, false is returned.
2707     * @throws { BusinessError } 401 - Parameter error.
2708     * @throws { BusinessError } 10200011 - The every method cannot be bound.
2709     * @throws { BusinessError } 10200201 - Concurrent modification error.
2710     * @syscap SystemCapability.Utils.Lang
2711     * @atomicservice
2712     * @since 12
2713     */
2714    /**
2715     * Checks whether all elements in this ArkTS Int8Array meet a given condition.
2716     *
2717     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - A function that accepts up to three arguments.
2718     *     The every method calls the predicate function for each element in the array until
2719     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
2720     * @returns { boolean } Check result. The value true is returned if all elements meet the given condition;
2721     *     otherwise, false is returned.
2722     * @throws { BusinessError } 401 - Parameter error.
2723     * @throws { BusinessError } 10200011 - The every method cannot be bound.
2724     * @throws { BusinessError } 10200201 - Concurrent modification error.
2725     * @syscap SystemCapability.Utils.Lang
2726     * @crossplatform
2727     * @atomicservice
2728     * @since 18
2729     */
2730    every(predicate: TypedArrayPredicateFn<number, Int8Array>): boolean;
2731    /**
2732     * Fills all elements in a given range in this ArkTS Int8Array with a value.
2733     *
2734     * @param { number } value - Value to fill in.
2735     * @param { number } [start] - Start index of the range. If a negative number is passed in,
2736     *     it refers to the index of start + Int8Array.length. The default value is 0.
2737     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
2738     *     it refers to the index of end + Int8Array.length. The default value is the length of the ArkTS Int8Array.
2739     * @returns { Int8Array } Filled ArkTS Int8Array.
2740     * @throws { BusinessError } 401 - Parameter error.
2741     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
2742     * @throws { BusinessError } 10200201 - Concurrent modification error.
2743     * @syscap SystemCapability.Utils.Lang
2744     * @atomicservice
2745     * @since 12
2746     */
2747    /**
2748     * Fills all elements in a given range in this ArkTS Int8Array with a value.
2749     *
2750     * @param { number } value - Value to fill in.
2751     * @param { number } [start] - Start index of the range. If a negative number is passed in,
2752     *     it refers to the index of start + Int8Array.length. The default value is 0.
2753     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
2754     *     it refers to the index of end + Int8Array.length. The default value is the length of the ArkTS Int8Array.
2755     * @returns { Int8Array } Filled ArkTS Int8Array.
2756     * @throws { BusinessError } 401 - Parameter error.
2757     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
2758     * @throws { BusinessError } 10200201 - Concurrent modification error.
2759     * @syscap SystemCapability.Utils.Lang
2760     * @crossplatform
2761     * @atomicservice
2762     * @since 18
2763     */
2764    fill(value: number, start?: number, end?: number): Int8Array;
2765    /**
2766     * Returns a new ArkTS Int8Array that contains all elements that meet the given condition.
2767     *
2768     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - A function that accepts up to three arguments.
2769     *     The filter method calls the predicate function one time for each element in the array.
2770     * @returns { Int8Array } Filtered ArkTS Int8Array.
2771     * @throws { BusinessError } 401 - Parameter error.
2772     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
2773     * @throws { BusinessError } 10200201 - Concurrent modification error.
2774     * @syscap SystemCapability.Utils.Lang
2775     * @atomicservice
2776     * @since 12
2777     */
2778    /**
2779     * Returns a new ArkTS Int8Array that contains all elements that meet the given condition.
2780     *
2781     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - A function that accepts up to three arguments.
2782     *     The filter method calls the predicate function one time for each element in the array.
2783     * @returns { Int8Array } Filtered ArkTS Int8Array.
2784     * @throws { BusinessError } 401 - Parameter error.
2785     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
2786     * @throws { BusinessError } 10200201 - Concurrent modification error.
2787     * @syscap SystemCapability.Utils.Lang
2788     * @crossplatform
2789     * @atomicservice
2790     * @since 18
2791     */
2792    filter(predicate: TypedArrayPredicateFn<number, Int8Array>): Int8Array;
2793    /**
2794     * Returns the value of the first element that passes a test provided by a callback function.
2795     * If none of the elements pass the test, undefined is returned.
2796     *
2797     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - find calls predicate once for each element of
2798     *     the array, in ascending order, until it finds one where predicate returns true.
2799     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
2800     * @returns { number | undefined } Value of the first element that passes the test.
2801     *     If none of the elements pass the test, undefined is returned.
2802     * @throws { BusinessError } 401 - Parameter error.
2803     * @throws { BusinessError } 10200011 - The find method cannot be bound.
2804     * @throws { BusinessError } 10200201 - Concurrent modification error.
2805     * @syscap SystemCapability.Utils.Lang
2806     * @atomicservice
2807     * @since 12
2808     */
2809    /**
2810     * Returns the value of the first element that passes a test provided by a callback function.
2811     * If none of the elements pass the test, undefined is returned.
2812     *
2813     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - find calls predicate once for each element of
2814     *     the array, in ascending order, until it finds one where predicate returns true.
2815     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
2816     * @returns { number | undefined } Value of the first element that passes the test.
2817     *     If none of the elements pass the test, undefined is returned.
2818     * @throws { BusinessError } 401 - Parameter error.
2819     * @throws { BusinessError } 10200011 - The find method cannot be bound.
2820     * @throws { BusinessError } 10200201 - Concurrent modification error.
2821     * @syscap SystemCapability.Utils.Lang
2822     * @crossplatform
2823     * @atomicservice
2824     * @since 18
2825     */
2826    find(predicate: TypedArrayPredicateFn<number, Int8Array>): number | undefined;
2827    /**
2828     * Returns the index of the first element that passes a test provided by a callback function.
2829     * If none of the elements pass the test, -1 is returned.
2830     *
2831     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - find calls predicate once for each element of
2832     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
2833     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2834     * @returns { number } Index of the first element that passes the test.
2835     *     If none of the elements pass the test, -1 is returned.
2836     * @throws { BusinessError } 401 - Parameter error.
2837     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
2838     * @throws { BusinessError } 10200201 - Concurrent modification error.
2839     * @syscap SystemCapability.Utils.Lang
2840     * @atomicservice
2841     * @since 12
2842     */
2843    /**
2844     * Returns the index of the first element that passes a test provided by a callback function.
2845     * If none of the elements pass the test, -1 is returned.
2846     *
2847     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - find calls predicate once for each element of
2848     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
2849     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
2850     * @returns { number } Index of the first element that passes the test.
2851     *     If none of the elements pass the test, -1 is returned.
2852     * @throws { BusinessError } 401 - Parameter error.
2853     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
2854     * @throws { BusinessError } 10200201 - Concurrent modification error.
2855     * @syscap SystemCapability.Utils.Lang
2856     * @crossplatform
2857     * @atomicservice
2858     * @since 18
2859     */
2860    findIndex(predicate: TypedArrayPredicateFn<number, Int8Array>): number;
2861    /**
2862     * Calls a callback function for each element in this ArkTS Int8Array.
2863     *
2864     * @param { TypedArrayForEachCallback<number, Int8Array> } callbackFn -  A function that
2865     *     accepts up to three arguments.
2866     *     forEach calls the callbackfn function one time for each element in the array.
2867     * @throws { BusinessError } 401 - Parameter error.
2868     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
2869     * @throws { BusinessError } 10200201 - Concurrent modification error.
2870     * @syscap SystemCapability.Utils.Lang
2871     * @atomicservice
2872     * @since 12
2873     */
2874    /**
2875     * Calls a callback function for each element in this ArkTS Int8Array.
2876     *
2877     * @param { TypedArrayForEachCallback<number, Int8Array> } callbackFn -  A function that
2878     *     accepts up to three arguments.
2879     *     forEach calls the callbackfn function one time for each element in the array.
2880     * @throws { BusinessError } 401 - Parameter error.
2881     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
2882     * @throws { BusinessError } 10200201 - Concurrent modification error.
2883     * @syscap SystemCapability.Utils.Lang
2884     * @crossplatform
2885     * @atomicservice
2886     * @since 18
2887     */
2888    forEach(callbackFn: TypedArrayForEachCallback<number, Int8Array>): void;
2889    /**
2890     * Returns the index of the first occurrence of a value in this ArkTS Int8Array.
2891     * If the value is not found, -1 is returned.
2892     *
2893     * @param { number } searchElement - Value to search for.
2894     * @param { number } [fromIndex] - Index from which the search starts. The default value is 0.
2895     *     If the index is greater than or equal to the length of the ArkTS Int8Array, -1 is returned.
2896     *     If a negative number is passed in, the search starts from the end of the ArkTS Int8Array.
2897     * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned.
2898     * @throws { BusinessError } 401 - Parameter error.
2899     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
2900     * @throws { BusinessError } 10200201 - Concurrent modification error.
2901     * @syscap SystemCapability.Utils.Lang
2902     * @atomicservice
2903     * @since 12
2904     */
2905    /**
2906     * Returns the index of the first occurrence of a value in this ArkTS Int8Array.
2907     * If the value is not found, -1 is returned.
2908     *
2909     * @param { number } searchElement - Value to search for.
2910     * @param { number } [fromIndex] - Index from which the search starts. The default value is 0.
2911     *     If the index is greater than or equal to the length of the ArkTS Int8Array, -1 is returned.
2912     *     If a negative number is passed in, the search starts from the end of the ArkTS Int8Array.
2913     * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned.
2914     * @throws { BusinessError } 401 - Parameter error.
2915     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
2916     * @throws { BusinessError } 10200201 - Concurrent modification error.
2917     * @syscap SystemCapability.Utils.Lang
2918     * @crossplatform
2919     * @atomicservice
2920     * @since 18
2921     */
2922    indexOf(searchElement: number, fromIndex?: number): number;
2923    /**
2924     * Concatenates all elements in this ArkTS Int8Array into a string, with a given separator.
2925     * @param { string } [separator] - Separator to be used.
2926     *     If no value is passed in, a comma (,) is used as the separator.
2927     * @returns { string } String obtained. If the array is empty, an empty string is returned.
2928     * @throws { BusinessError } 401 - Parameter error.
2929     * @throws { BusinessError } 10200011 - The join method cannot be bound.
2930     * @throws { BusinessError } 10200201 - Concurrent modification error.
2931     * @syscap SystemCapability.Utils.Lang
2932     * @atomicservice
2933     * @since 12
2934     */
2935    /**
2936     * Concatenates all elements in this ArkTS Int8Array into a string, with a given separator.
2937     * @param { string } [separator] - Separator to be used.
2938     *     If no value is passed in, a comma (,) is used as the separator.
2939     * @returns { string } String obtained. If the array is empty, an empty string is returned.
2940     * @throws { BusinessError } 401 - Parameter error.
2941     * @throws { BusinessError } 10200011 - The join method cannot be bound.
2942     * @throws { BusinessError } 10200201 - Concurrent modification error.
2943     * @syscap SystemCapability.Utils.Lang
2944     * @crossplatform
2945     * @atomicservice
2946     * @since 18
2947     */
2948    join(separator?: string): string;
2949    /**
2950     * Applies a callback function to each element in this ArkTS Int8Array
2951     * and uses the result to create an ArkTS Int8Array.
2952     *
2953     * @param { TypedArrayMapCallback<number, Int8Array> } callbackFn - A function that
2954     *     accepts up to three arguments.
2955     *     The map method calls the callbackfn function one time for each element in the array.
2956     * @returns { Int8Array } New ArkTS Int8Array generated.
2957     * @throws { BusinessError } 401 - Parameter error.
2958     * @throws { BusinessError } 10200011 - The map method cannot be bound.
2959     * @throws { BusinessError } 10200201 - Concurrent modification error.
2960     * @syscap SystemCapability.Utils.Lang
2961     * @atomicservice
2962     * @since 12
2963     */
2964    /**
2965     * Applies a callback function to each element in this ArkTS Int8Array
2966     * and uses the result to create an ArkTS Int8Array.
2967     *
2968     * @param { TypedArrayMapCallback<number, Int8Array> } callbackFn - A function that
2969     *     accepts up to three arguments.
2970     *     The map method calls the callbackfn function one time for each element in the array.
2971     * @returns { Int8Array } New ArkTS Int8Array generated.
2972     * @throws { BusinessError } 401 - Parameter error.
2973     * @throws { BusinessError } 10200011 - The map method cannot be bound.
2974     * @throws { BusinessError } 10200201 - Concurrent modification error.
2975     * @syscap SystemCapability.Utils.Lang
2976     * @crossplatform
2977     * @atomicservice
2978     * @since 18
2979     */
2980    map(callbackFn: TypedArrayMapCallback<number, Int8Array>): Int8Array;
2981    /**
2982     * Calls the specified callback function for all the elements in an array. The return value of
2983     * the callback function is the accumulated result, and is provided as an argument in the next
2984     * call to the callback function.
2985     *
2986     * @param { TypedArrayReduceCallback<number, number, Int8Array> } callbackFn - A function that
2987     *     accepts up to four arguments.
2988     *     The reduce method calls the callbackfn function one time for each element in the array.
2989     * @returns { number } The value that results from running the "reducer" callback function to
2990     *     completion over the entire typed array.
2991     * @throws { BusinessError } 401 - Parameter error.
2992     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
2993     * @throws { BusinessError } 10200201 - Concurrent modification error.
2994     * @syscap SystemCapability.Utils.Lang
2995     * @atomicservice
2996     * @since 12
2997     */
2998    /**
2999     * Calls the specified callback function for all the elements in an array. The return value of
3000     * the callback function is the accumulated result, and is provided as an argument in the next
3001     * call to the callback function.
3002     *
3003     * @param { TypedArrayReduceCallback<number, number, Int8Array> } callbackFn - A function that
3004     *     accepts up to four arguments.
3005     *     The reduce method calls the callbackfn function one time for each element in the array.
3006     * @returns { number } The value that results from running the "reducer" callback function to
3007     *     completion over the entire typed array.
3008     * @throws { BusinessError } 401 - Parameter error.
3009     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
3010     * @throws { BusinessError } 10200201 - Concurrent modification error.
3011     * @syscap SystemCapability.Utils.Lang
3012     * @crossplatform
3013     * @atomicservice
3014     * @since 18
3015     */
3016    reduce(callbackFn: TypedArrayReduceCallback<number, number, Int8Array>): number;
3017    /**
3018     * Calls the specified callback function for all the elements in an array. The return value of
3019     * the callback function is the accumulated result, and is provided as an argument in the next
3020     * call to the callback function.
3021     *
3022     * @param { TypedArrayReduceCallback<number, number, Int8Array> } callbackFn - A function that
3023     *     accepts up to four arguments.
3024     *     The reduce method calls the callbackfn function one time for each element in the array.
3025     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
3026     *     the accumulation. The first call to the callbackfn function provides this value as an argument
3027     *     instead of an array value.
3028     * @returns { number } The value that results from running the "reducer" callback function to
3029     *     completion over the entire typed array.
3030     * @throws { BusinessError } 401 - Parameter error.
3031     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
3032     * @throws { BusinessError } 10200201 - Concurrent modification error.
3033     * @syscap SystemCapability.Utils.Lang
3034     * @atomicservice
3035     * @since 12
3036     */
3037    /**
3038     * Calls the specified callback function for all the elements in an array. The return value of
3039     * the callback function is the accumulated result, and is provided as an argument in the next
3040     * call to the callback function.
3041     *
3042     * @param { TypedArrayReduceCallback<number, number, Int8Array> } callbackFn - A function that
3043     *     accepts up to four arguments.
3044     *     The reduce method calls the callbackfn function one time for each element in the array.
3045     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
3046     *     the accumulation. The first call to the callbackfn function provides this value as an argument
3047     *     instead of an array value.
3048     * @returns { number } The value that results from running the "reducer" callback function to
3049     *     completion over the entire typed array.
3050     * @throws { BusinessError } 401 - Parameter error.
3051     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
3052     * @throws { BusinessError } 10200201 - Concurrent modification error.
3053     * @syscap SystemCapability.Utils.Lang
3054     * @crossplatform
3055     * @atomicservice
3056     * @since 18
3057     */
3058    reduce(callbackFn: TypedArrayReduceCallback<number, number, Int8Array>, initialValue: number): number;
3059    /**
3060     * Calls the specified callback function for all the elements in an array. The return value of
3061     * the callback function is the accumulated result, and is provided as an argument in the next
3062     * call to the callback function.
3063     *
3064     * @param { TypedArrayReduceCallback<U, number, Int8Array> } callbackFn - A function that
3065     *     accepts up to four arguments.
3066     *     The reduce method calls the callbackfn function one time for each element in the array.
3067     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
3068     *     the accumulation. The first call to the callbackfn function provides this value as an argument
3069     *     instead of an array value.
3070     * @returns { U } The value that results from running the "reducer" callback function to
3071     *     completion over the entire typed array.
3072     * @throws { BusinessError } 401 - Parameter error.
3073     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
3074     * @throws { BusinessError } 10200201 - Concurrent modification error.
3075     * @syscap SystemCapability.Utils.Lang
3076     * @atomicservice
3077     * @since 12
3078     */
3079    /**
3080     * Calls the specified callback function for all the elements in an array. The return value of
3081     * the callback function is the accumulated result, and is provided as an argument in the next
3082     * call to the callback function.
3083     *
3084     * @param { TypedArrayReduceCallback<U, number, Int8Array> } callbackFn - A function that
3085     *     accepts up to four arguments.
3086     *     The reduce method calls the callbackfn function one time for each element in the array.
3087     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
3088     *     the accumulation. The first call to the callbackfn function provides this value as an argument
3089     *     instead of an array value.
3090     * @returns { U } The value that results from running the "reducer" callback function to
3091     *     completion over the entire typed array.
3092     * @throws { BusinessError } 401 - Parameter error.
3093     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
3094     * @throws { BusinessError } 10200201 - Concurrent modification error.
3095     * @syscap SystemCapability.Utils.Lang
3096     * @crossplatform
3097     * @atomicservice
3098     * @since 18
3099     */
3100    reduce<U>(callbackFn: TypedArrayReduceCallback<U, number, Int8Array>, initialValue: U): U;
3101    /**
3102     * Reverses this ArkTS Int8Array.
3103     *
3104     * @returns { Int8Array } The reference to the original typed array, now reversed.
3105     *     <br>Note that the typed array is reversed in place, and no copy is made.
3106     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
3107     * @throws { BusinessError } 10200201 - Concurrent modification error.
3108     * @syscap SystemCapability.Utils.Lang
3109     * @atomicservice
3110     * @since 12
3111     */
3112    /**
3113     * Reverses this ArkTS Int8Array.
3114     *
3115     * @returns { Int8Array } The reference to the original typed array, now reversed.
3116     *     <br>Note that the typed array is reversed in place, and no copy is made.
3117     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
3118     * @throws { BusinessError } 10200201 - Concurrent modification error.
3119     * @syscap SystemCapability.Utils.Lang
3120     * @crossplatform
3121     * @atomicservice
3122     * @since 18
3123     */
3124    reverse(): Int8Array;
3125    /**
3126     * Writes the elements in an array-like object to the given start position in sequence.
3127     *
3128     * @param { ArrayLike<number> } array - Array-like object whose elements will be written.
3129     * @param { number } [offset] - Start position for writing data. The default value is 0.
3130     * @throws { BusinessError } 401 - Parameter error.
3131     * @throws { BusinessError } 10200011 - The set method cannot be bound.
3132     * @throws { BusinessError } 10200201 - Concurrent modification error.
3133     * @syscap SystemCapability.Utils.Lang
3134     * @atomicservice
3135     * @since 12
3136     */
3137    /**
3138     * Writes the elements in an array-like object to the given start position in sequence.
3139     *
3140     * @param { ArrayLike<number> } array - Array-like object whose elements will be written.
3141     * @param { number } [offset] - Start position for writing data. The default value is 0.
3142     * @throws { BusinessError } 401 - Parameter error.
3143     * @throws { BusinessError } 10200011 - The set method cannot be bound.
3144     * @throws { BusinessError } 10200201 - Concurrent modification error.
3145     * @syscap SystemCapability.Utils.Lang
3146     * @crossplatform
3147     * @atomicservice
3148     * @since 18
3149     */
3150    set(array: ArrayLike<number>, offset?: number): void;
3151    /**
3152     * Selects a range of elements in this ArkTS Int8Array to create an ArkTS Int8Array.
3153     *
3154     * @param { number } [start] - Start index of the range. If a negative number is passed in,
3155     *     it refers to the index of start + Int8Array.length. The default value is 0.
3156     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
3157     *     it refers to the index of end + Int8Array.length. The default value is the length of the ArkTS Int8Array.
3158     * @returns { Int8Array } New ArkTS Int8Array generated.
3159     * @throws { BusinessError } 401 - Parameter error.
3160     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
3161     * @throws { BusinessError } 10200201 - Concurrent modification error.
3162     * @syscap SystemCapability.Utils.Lang
3163     * @atomicservice
3164     * @since 12
3165     */
3166    /**
3167     * Selects a range of elements in this ArkTS Int8Array to create an ArkTS Int8Array.
3168     *
3169     * @param { number } [start] - Start index of the range. If a negative number is passed in,
3170     *     it refers to the index of start + Int8Array.length. The default value is 0.
3171     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
3172     *     it refers to the index of end + Int8Array.length. The default value is the length of the ArkTS Int8Array.
3173     * @returns { Int8Array } New ArkTS Int8Array generated.
3174     * @throws { BusinessError } 401 - Parameter error.
3175     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
3176     * @throws { BusinessError } 10200201 - Concurrent modification error.
3177     * @syscap SystemCapability.Utils.Lang
3178     * @crossplatform
3179     * @atomicservice
3180     * @since 18
3181     */
3182    slice(start?: number, end?: number): Int8Array;
3183    /**
3184     * Checks whether any element in this ArkTS Int8Array meets a given condition.
3185     *
3186     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - A function that accepts up to three arguments.
3187     *     The some method calls the predicate function for each element in the array until
3188     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
3189     * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists;
3190     *     otherwise, false is returned.
3191     * @throws { BusinessError } 401 - Parameter error.
3192     * @throws { BusinessError } 10200011 - The some method cannot be bound.
3193     * @throws { BusinessError } 10200201 - Concurrent modification error.
3194     * @syscap SystemCapability.Utils.Lang
3195     * @atomicservice
3196     * @since 12
3197     */
3198    /**
3199     * Checks whether any element in this ArkTS Int8Array meets a given condition.
3200     *
3201     * @param { TypedArrayPredicateFn<number, Int8Array> } predicate - A function that accepts up to three arguments.
3202     *     The some method calls the predicate function for each element in the array until
3203     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
3204     * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists;
3205     *     otherwise, false is returned.
3206     * @throws { BusinessError } 401 - Parameter error.
3207     * @throws { BusinessError } 10200011 - The some method cannot be bound.
3208     * @throws { BusinessError } 10200201 - Concurrent modification error.
3209     * @syscap SystemCapability.Utils.Lang
3210     * @crossplatform
3211     * @atomicservice
3212     * @since 18
3213     */
3214    some(predicate: TypedArrayPredicateFn<number, Int8Array>): boolean;
3215    /**
3216     * Sorts elements in this ArkTS Int8Array and returns the sorted ArkTS Int8Array.
3217     *
3218     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
3219     *     It is expected to return a negative value if first argument is less than second argument,
3220     *     zero if they're equal and a positive value otherwise.
3221     *     If omitted, the elements are sorted in ascending, ASCII character order.
3222     * @returns { Int8Array } The reference to the original typed array, now sorted.
3223     *     Note that the typed array is sorted in place and no copy is made.
3224     * @throws { BusinessError } 401 - Parameter error.
3225     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
3226     * @throws { BusinessError } 10200201 - Concurrent modification error.
3227     * @syscap SystemCapability.Utils.Lang
3228     * @atomicservice
3229     * @since 12
3230     */
3231    /**
3232     * Sorts elements in this ArkTS Int8Array and returns the sorted ArkTS Int8Array.
3233     *
3234     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
3235     *     It is expected to return a negative value if first argument is less than second argument,
3236     *     zero if they're equal and a positive value otherwise.
3237     *     If omitted, the elements are sorted in ascending, ASCII character order.
3238     * @returns { Int8Array } The reference to the original typed array, now sorted.
3239     *     Note that the typed array is sorted in place and no copy is made.
3240     * @throws { BusinessError } 401 - Parameter error.
3241     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
3242     * @throws { BusinessError } 10200201 - Concurrent modification error.
3243     * @syscap SystemCapability.Utils.Lang
3244     * @crossplatform
3245     * @atomicservice
3246     * @since 18
3247     */
3248    sort(compareFn?: TypedArrayCompareFn<number>): Int8Array;
3249    /**
3250     * Returns a new ArkTS Int8Array based on the same ArkTS ArrayBuffer.
3251     *
3252     * @param { number } [begin] - Start index of the range. If a negative number is passed in,
3253     *     it refers to the index of begin + Int8Array.length. The default value is 0.
3254     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
3255     *     it refers to the index of end + Int8Array.length. The default value is the length of the ArkTS Int8Array.
3256     * @returns { Int8Array } New ArkTS Int8Array generated.
3257     * @throws { BusinessError } 401 - Parameter error.
3258     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
3259     * @throws { BusinessError } 10200201 - Concurrent modification error.
3260     * @syscap SystemCapability.Utils.Lang
3261     * @atomicservice
3262     * @since 12
3263     */
3264    /**
3265     * Returns a new ArkTS Int8Array based on the same ArkTS ArrayBuffer.
3266     *
3267     * @param { number } [begin] - Start index of the range. If a negative number is passed in,
3268     *     it refers to the index of begin + Int8Array.length. The default value is 0.
3269     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
3270     *     it refers to the index of end + Int8Array.length. The default value is the length of the ArkTS Int8Array.
3271     * @returns { Int8Array } New ArkTS Int8Array generated.
3272     * @throws { BusinessError } 401 - Parameter error.
3273     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
3274     * @throws { BusinessError } 10200201 - Concurrent modification error.
3275     * @syscap SystemCapability.Utils.Lang
3276     * @crossplatform
3277     * @atomicservice
3278     * @since 18
3279     */
3280    subarray(begin?: number, end?: number): Int8Array;
3281    /**
3282     * Returns the element at the given index. If no element is found, undefined is returned.
3283     *
3284     * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer.
3285     *     If a negative number is passed in, it refers to the index of index + Int8Array.length.
3286     * @returns { number | undefined } The element in the array matching the given index.<br/>
3287     *     Always returns undefined if index < -array.length or
3288     *     index >= array.length without attempting to access the corresponding property.
3289     * @throws { BusinessError } 401 - Parameter error.
3290     * @throws { BusinessError } 10200011 - The at method cannot be bound.
3291     * @throws { BusinessError } 10200201 - Concurrent modification error.
3292     * @syscap SystemCapability.Utils.Lang
3293     * @atomicservice
3294     * @since 12
3295     */
3296    /**
3297     * Returns the element at the given index. If no element is found, undefined is returned.
3298     *
3299     * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer.
3300     *     If a negative number is passed in, it refers to the index of index + Int8Array.length.
3301     * @returns { number | undefined } The element in the array matching the given index.<br/>
3302     *     Always returns undefined if index < -array.length or
3303     *     index >= array.length without attempting to access the corresponding property.
3304     * @throws { BusinessError } 401 - Parameter error.
3305     * @throws { BusinessError } 10200011 - The at method cannot be bound.
3306     * @throws { BusinessError } 10200201 - Concurrent modification error.
3307     * @syscap SystemCapability.Utils.Lang
3308     * @crossplatform
3309     * @atomicservice
3310     * @since 18
3311     */
3312    at(index: number): number | undefined;
3313    /**
3314     * Returns an iterator, each item of which is a JavaScript object.
3315     * NOTE:
3316     * This API cannot be used in .ets files.
3317     *
3318     * @returns { IterableIterator<number> } Iterator object that yields numbers.
3319     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
3320     * @syscap SystemCapability.Utils.Lang
3321     * @atomicservice
3322     * @since 12
3323     */
3324    /**
3325     * Returns an iterator, each item of which is a JavaScript object.
3326     * NOTE:
3327     * This API cannot be used in .ets files.
3328     *
3329     * @returns { IterableIterator<number> } Iterator object that yields numbers.
3330     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
3331     * @syscap SystemCapability.Utils.Lang
3332     * @crossplatform
3333     * @atomicservice
3334     * @since 18
3335     */
3336    [Symbol.iterator](): IterableIterator<number>;
3337    /**
3338     * Returns an iterator object that contains the key-value pair of each element in this ArkTS Int8Array.
3339     *
3340     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
3341     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
3342     * @throws { BusinessError } 10200201 - Concurrent modification error.
3343     * @syscap SystemCapability.Utils.Lang
3344     * @atomicservice
3345     * @since 12
3346     */
3347    /**
3348     * Returns an iterator object that contains the key-value pair of each element in this ArkTS Int8Array.
3349     *
3350     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
3351     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
3352     * @throws { BusinessError } 10200201 - Concurrent modification error.
3353     * @syscap SystemCapability.Utils.Lang
3354     * @crossplatform
3355     * @atomicservice
3356     * @since 18
3357     */
3358    entries(): IterableIterator<[number, number]>;
3359    /**
3360     * Returns an iterator object that contains the key (index) of each element in this ArkTS Int8Array.
3361     *
3362     * @returns { IterableIterator<number> } A new iterable iterator object.
3363     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
3364     * @throws { BusinessError } 10200201 - Concurrent modification error.
3365     * @syscap SystemCapability.Utils.Lang
3366     * @atomicservice
3367     * @since 12
3368     */
3369    /**
3370     * Returns an iterator object that contains the key (index) of each element in this ArkTS Int8Array.
3371     *
3372     * @returns { IterableIterator<number> } A new iterable iterator object.
3373     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
3374     * @throws { BusinessError } 10200201 - Concurrent modification error.
3375     * @syscap SystemCapability.Utils.Lang
3376     * @crossplatform
3377     * @atomicservice
3378     * @since 18
3379     */
3380    keys(): IterableIterator<number>;
3381    /**
3382     * Returns an iterator object that contains the value of each element in this ArkTS Int8Array.
3383     *
3384     * @returns { IterableIterator<number> } A new iterable iterator object.
3385     * @throws { BusinessError } 10200011 - The values method cannot be bound.
3386     * @throws { BusinessError } 10200201 - Concurrent modification error.
3387     * @syscap SystemCapability.Utils.Lang
3388     * @atomicservice
3389     * @since 12
3390     */
3391    /**
3392     * Returns an iterator object that contains the value of each element in this ArkTS Int8Array.
3393     *
3394     * @returns { IterableIterator<number> } A new iterable iterator object.
3395     * @throws { BusinessError } 10200011 - The values method cannot be bound.
3396     * @throws { BusinessError } 10200201 - Concurrent modification error.
3397     * @syscap SystemCapability.Utils.Lang
3398     * @crossplatform
3399     * @atomicservice
3400     * @since 18
3401     */
3402    values(): IterableIterator<number>;
3403    /**
3404     * Checks whether elements are contained in this ArkTS Int8Array.
3405     *
3406     * @param { number } searchElement - Element to search for.
3407     * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in,
3408     *     it refers to the index of fromIndex + Int8Array.length. The default value is 0.
3409     * @returns { boolean } Check result. The value true is returned if the element exists;
3410     *     otherwise, false is returned.
3411     * @throws { BusinessError } 401 - Parameter error.
3412     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
3413     * @throws { BusinessError } 10200201 - Concurrent modification error.
3414     * @syscap SystemCapability.Utils.Lang
3415     * @atomicservice
3416     * @since 12
3417     */
3418    /**
3419     * Checks whether elements are contained in this ArkTS Int8Array.
3420     *
3421     * @param { number } searchElement - Element to search for.
3422     * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in,
3423     *     it refers to the index of fromIndex + Int8Array.length. The default value is 0.
3424     * @returns { boolean } Check result. The value true is returned if the element exists;
3425     *     otherwise, false is returned.
3426     * @throws { BusinessError } 401 - Parameter error.
3427     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
3428     * @throws { BusinessError } 10200201 - Concurrent modification error.
3429     * @syscap SystemCapability.Utils.Lang
3430     * @crossplatform
3431     * @atomicservice
3432     * @since 18
3433     */
3434    includes(searchElement: number, fromIndex?: number): boolean;
3435    /**
3436     * Returns the element at a given index in this Int8Array.
3437     *
3438     * @syscap SystemCapability.Utils.Lang
3439     * @atomicservice
3440     * @since 12
3441     */
3442    /**
3443     * Returns the element at a given index in this Int8Array.
3444     *
3445     * @syscap SystemCapability.Utils.Lang
3446     * @crossplatform
3447     * @atomicservice
3448     * @since 18
3449     */
3450    [index: number]: number;
3451    /**
3452     * Obtains the index of the last occurrence of the specified value in this ArkTS Int8Array.
3453     *
3454     * @param { number } searchElement - Element to search for in the Int8Array..
3455     * @param { number } fromIndex - Index from which the search starts. The default value is 0.
3456     *     If the index is greater than or equal to the length of the ArkTS Int8Array, -1 is returned.
3457     *     If a negative number is passed in, the search starts from the end of the ArkTS Int8Array.
3458     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
3459     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
3460     * @throws { BusinessError } 10200201 - Concurrent modification error.
3461     * @syscap SystemCapability.Utils.Lang
3462     * @atomicservice
3463     * @since 18
3464     */
3465    lastIndexOf(searchElement: number, fromIndex?: number): number;
3466    /**
3467     * Reduce elements in an Int8Array from right to left.
3468     *
3469     * @param { TypedArrayReduceCallback<U, number, Int8Array> } callbackFn - A function that is called for
3470     * each element in the Int8Array.
3471     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
3472     *     <br>If no initial value is provided, the last element of the Int8Array will be used,
3473     *     <br>and the callback will start with the second-to-last element.
3474     * @returns { U } Returns the single value that results from the reduction.
3475     * @throws { BusinessError } 401 - Parameter error. Possible causes:
3476     *                                    1.Mandatory parameters are left unspecified.
3477     *                                    2.Incorrect parameter types.
3478     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
3479     * @throws { BusinessError } 10200201 - Concurrent modification error.
3480     * @syscap SystemCapability.Utils.Lang
3481     * @atomicservice
3482     * @since 18
3483     */
3484    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Int8Array>, initialValue: U): U;
3485    /**
3486     * Reduce elements in an Int8Array from right to left.
3487     *
3488     * @param { TypedArrayReduceCallback<number, number, Int8Array> } callbackFn - A function that is called for
3489     * each element in the Int8Array.
3490     * @returns { number } Returns the single value that results from the reduction.
3491     * @throws { BusinessError } 401 - Parameter error. Possible causes:
3492     *                                    1.Mandatory parameters are left unspecified.
3493     *                                    2.Incorrect parameter types.
3494     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
3495     * @throws { BusinessError } 10200201 - Concurrent modification error.
3496     * @syscap SystemCapability.Utils.Lang
3497     * @atomicservice
3498     * @since 18
3499     */
3500    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Int8Array>): number;
3501    /**
3502     * Convert an Int8Array to a string.
3503     *
3504     * @returns { string } Returns a string representing the specified Int8Array and its elements, separated by commas.
3505     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
3506     * @throws { BusinessError } 10200201 - Concurrent modification error.
3507     * @syscap SystemCapability.Utils.Lang
3508     * @atomicservice
3509     * @since 18
3510     */
3511    toString(): string;
3512    /**
3513     * Convert an Int8Array to a string, The elements are converted to string using their toLocaleString methods.
3514     *
3515     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
3516     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
3517     * @throws { BusinessError } 10200201 - Concurrent modification error.
3518     * @syscap SystemCapability.Utils.Lang
3519     * @atomicservice
3520     * @since 18
3521     */
3522    toLocaleString(): string;
3523    /**
3524     * Create an Int8Array containing these parameters.
3525     *
3526     * @param { number[] } items - A variable number of arguments that will be used as the elements of the Int8Array.
3527     * @returns { Int8Array } Returns a new Int8Array instance containing the specified elements.
3528     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
3529     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
3530     * @static
3531     * @syscap SystemCapability.Utils.Lang
3532     * @atomicservice
3533     * @since 18
3534     */
3535    static of(...items: number[]): Int8Array;
3536 }
3537
3538  /**
3539   * The Uint8ClampedArray typed array represents an array of 8-bit unsigned integers clamped to 0–255.
3540   * The contents are initialized to 0.
3541   * If multiple threads access a Uint8ClampedArray instance concurrently,
3542   * and at least one of the threads modifies the array structurally,
3543   * it must be synchronized externally.
3544   *
3545   * @syscap SystemCapability.Utils.Lang
3546   * @atomicservice
3547   * @since 12
3548   */
3549  /**
3550   * The Uint8ClampedArray typed array represents an array of 8-bit unsigned integers clamped to 0–255.
3551   * The contents are initialized to 0.
3552   * If multiple threads access a Uint8ClampedArray instance concurrently,
3553   * and at least one of the threads modifies the array structurally,
3554   * it must be synchronized externally.
3555   *
3556   * @syscap SystemCapability.Utils.Lang
3557   * @crossplatform
3558   * @atomicservice
3559   * @since 18
3560   */
3561  @Sendable
3562  class Uint8ClampedArray {
3563    /**
3564     * Number of bytes occupied by each element in the ArkTS array.
3565     *
3566     * @type { number }
3567     * @readonly
3568     * @static
3569     * @syscap SystemCapability.Utils.Lang
3570     * @atomicservice
3571     * @since 12
3572     */
3573    /**
3574     * Number of bytes occupied by each element in the ArkTS array.
3575     *
3576     * @type { number }
3577     * @readonly
3578     * @static
3579     * @syscap SystemCapability.Utils.Lang
3580     * @crossplatform
3581     * @atomicservice
3582     * @since 18
3583     */
3584    static readonly BYTES_PER_ELEMENT: number;
3585    /**
3586     * Bottom-layer buffer used by an ArkTS array.
3587     *
3588     * @type { ArrayBuffer }
3589     * @readonly
3590     * @syscap SystemCapability.Utils.Lang
3591     * @atomicservice
3592     * @since 12
3593     */
3594    /**
3595     * Bottom-layer buffer used by an ArkTS array.
3596     *
3597     * @type { ArrayBuffer }
3598     * @readonly
3599     * @syscap SystemCapability.Utils.Lang
3600     * @crossplatform
3601     * @atomicservice
3602     * @since 18
3603     */
3604    readonly buffer: ArrayBuffer;
3605    /**
3606     * Number of bytes occupied by the ArkTS array.
3607     *
3608     * @type { number }
3609     * @readonly
3610     * @syscap SystemCapability.Utils.Lang
3611     * @atomicservice
3612     * @since 12
3613     */
3614    /**
3615     * Number of bytes occupied by the ArkTS array.
3616     *
3617     * @type { number }
3618     * @readonly
3619     * @syscap SystemCapability.Utils.Lang
3620     * @crossplatform
3621     * @atomicservice
3622     * @since 18
3623     */
3624    readonly byteLength: number;
3625    /**
3626     * Offset between the ArkTS array and the start position of the ArrayBuffer.
3627     *
3628     * @type { number }
3629     * @readonly
3630     * @syscap SystemCapability.Utils.Lang
3631     * @atomicservice
3632     * @since 12
3633     */
3634    /**
3635     * Offset between the ArkTS array and the start position of the ArrayBuffer.
3636     *
3637     * @type { number }
3638     * @readonly
3639     * @syscap SystemCapability.Utils.Lang
3640     * @crossplatform
3641     * @atomicservice
3642     * @since 18
3643     */
3644    readonly byteOffset: number;
3645    /**
3646     * Number of elements in the ArkTS array.
3647     *
3648     * @type { number }
3649     * @readonly
3650     * @syscap SystemCapability.Utils.Lang
3651     * @atomicservice
3652     * @since 12
3653     */
3654    /**
3655     * Number of elements in the ArkTS array.
3656     *
3657     * @type { number }
3658     * @readonly
3659     * @syscap SystemCapability.Utils.Lang
3660     * @crossplatform
3661     * @atomicservice
3662     * @since 18
3663     */
3664    readonly length: number;
3665    /**
3666     * A constructor used to create an empty ArkTS Uint8ClampedArray.
3667     *
3668     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3669     * @syscap SystemCapability.Utils.Lang
3670     * @atomicservice
3671     * @since 12
3672     */
3673    /**
3674     * A constructor used to create an empty ArkTS Uint8ClampedArray.
3675     *
3676     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3677     * @syscap SystemCapability.Utils.Lang
3678     * @crossplatform
3679     * @atomicservice
3680     * @since 18
3681     */
3682    constructor();
3683    /**
3684     * A constructor used to create an ArkTS Uint8ClampedArray of a given length.
3685     *
3686     * @param { number } length - Length of the ArkTS Uint8ClampedArray.
3687     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3688     * @throws { BusinessError } 401 - Parameter error.
3689     * @syscap SystemCapability.Utils.Lang
3690     * @atomicservice
3691     * @since 12
3692     */
3693    /**
3694     * A constructor used to create an ArkTS Uint8ClampedArray of a given length.
3695     *
3696     * @param { number } length - Length of the ArkTS Uint8ClampedArray.
3697     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3698     * @throws { BusinessError } 401 - Parameter error.
3699     * @syscap SystemCapability.Utils.Lang
3700     * @crossplatform
3701     * @atomicservice
3702     * @since 18
3703     */
3704    constructor(length: number);
3705    /**
3706     * A constructor used to create an Uint8ClampedArray.
3707     *
3708     * @param { Iterable<number> } elements - An iterable object to convert to an Uint8ClampedArray.
3709     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3710     * @throws { BusinessError } 401 - Parameter error.
3711     * @syscap SystemCapability.Utils.Lang
3712     * @atomicservice
3713     * @since 12
3714     */
3715    /**
3716     * A constructor used to create an Uint8ClampedArray.
3717     *
3718     * @param { Iterable<number> } elements - An iterable object to convert to an Uint8ClampedArray.
3719     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3720     * @throws { BusinessError } 401 - Parameter error.
3721     * @syscap SystemCapability.Utils.Lang
3722     * @crossplatform
3723     * @atomicservice
3724     * @since 18
3725     */
3726    constructor(elements: Iterable<number>);
3727    /**
3728     * A constructor that creates an ArkTS Uint8ClampedArray from an array-like object or ArkTS ArrayBuffer.
3729     *
3730     * @param { ArrayLike<number> | ArrayBuffer } array - Object used to construct the ArkTS Uint8ClampedArray.
3731     *     When the parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be
3732     *     an integer multiple of 4.
3733     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3734     * @throws { BusinessError } 401 - Parameter error.
3735     * @syscap SystemCapability.Utils.Lang
3736     * @atomicservice
3737     * @since 12
3738     */
3739    /**
3740     * A constructor that creates an ArkTS Uint8ClampedArray from an array-like object or ArkTS ArrayBuffer.
3741     *
3742     * @param { ArrayLike<number> | ArrayBuffer } array - Object used to construct the ArkTS Uint8ClampedArray.
3743     *     When the parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be
3744     *     an integer multiple of 4.
3745     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3746     * @throws { BusinessError } 401 - Parameter error.
3747     * @syscap SystemCapability.Utils.Lang
3748     * @crossplatform
3749     * @atomicservice
3750     * @since 18
3751     */
3752    constructor(array: ArrayLike<number> | ArrayBuffer);
3753    /**
3754     * A constructor that creates an ArkTS Uint8ClampedArray from an ArrayBuffer.
3755     *
3756     * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Uint8ClampedArray.
3757     *     The number of bytes occupied by the buffer must be an integer multiple of 4.
3758     * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0.
3759     * @param { number } [length] - Length of the ArkTS Uint8ClampedArray. The default value is 0.
3760     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3761     * @throws { BusinessError } 401 - Parameter error.
3762     * @syscap SystemCapability.Utils.Lang
3763     * @atomicservice
3764     * @since 12
3765     */
3766    /**
3767     * A constructor that creates an ArkTS Uint8ClampedArray from an ArrayBuffer.
3768     *
3769     * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Uint8ClampedArray.
3770     *     The number of bytes occupied by the buffer must be an integer multiple of 4.
3771     * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0.
3772     * @param { number } [length] - Length of the ArkTS Uint8ClampedArray. The default value is 0.
3773     * @throws { BusinessError } 10200012 - The Uint8ClampedArray's constructor cannot be directly invoked.
3774     * @throws { BusinessError } 401 - Parameter error.
3775     * @syscap SystemCapability.Utils.Lang
3776     * @crossplatform
3777     * @atomicservice
3778     * @since 18
3779     */
3780    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
3781    /**
3782     * Creates an ArkTS Uint8ClampedArray from an array-like or iterator object.
3783     *
3784     * @param { ArrayLike<number> } arrayLike - Array-like object used to construct the ArkTS Uint8ClampedArray.
3785     * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated.
3786     * @throws { BusinessError } 401 - Parameter error.
3787     * @static
3788     * @syscap SystemCapability.Utils.Lang
3789     * @atomicservice
3790     * @since 12
3791     */
3792    /**
3793     * Creates an ArkTS Uint8ClampedArray from an array-like or iterator object.
3794     *
3795     * @param { ArrayLike<number> } arrayLike - Array-like object used to construct the ArkTS Uint8ClampedArray.
3796     * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated.
3797     * @throws { BusinessError } 401 - Parameter error.
3798     * @static
3799     * @syscap SystemCapability.Utils.Lang
3800     * @crossplatform
3801     * @atomicservice
3802     * @since 18
3803     */
3804    static from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
3805
3806    /**
3807     * Creates an Uint8ClampedArray from an array-like object.
3808     *
3809     * @param { ArrayLike<T> } arrayLike - Array-like object used to construct the ArkTS Uint8ClampedArray.
3810     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
3811     * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated.
3812     * @throws { BusinessError } 401 - Parameter error.
3813     * @static
3814     * @syscap SystemCapability.Utils.Lang
3815     * @atomicservice
3816     * @since 12
3817     */
3818    /**
3819     * Creates an ArkTS Uint8ClampedArray from an array-like object.
3820     *
3821     * @param { ArrayLike<T> } arrayLike - Array-like object used to construct the ArkTS Uint8ClampedArray.
3822     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
3823     * @returns { Uint8ClampedArray } New ArkTS Uint8ClampedArray generated.
3824     * @throws { BusinessError } 401 - Parameter error.
3825     * @static
3826     * @syscap SystemCapability.Utils.Lang
3827     * @crossplatform
3828     * @atomicservice
3829     * @since 18
3830     */
3831    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Uint8ClampedArray;
3832    /**
3833     * Creates an Uint8ClampedArray from an iterable object.
3834     *
3835     * @param { Iterable<number> } arrayLike - Iterator object used to construct the ArkTS Uint8ClampedArray.
3836     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - Mapping function. If no value is passed in,
3837     *     no special processing is conducted on the elements.
3838     * @returns { Uint8ClampedArray } A new Uint8ClampedArray instance
3839     * @throws { BusinessError } 401 - Parameter error.
3840     * @static
3841     * @syscap SystemCapability.Utils.Lang
3842     * @atomicservice
3843     * @since 12
3844     */
3845    /**
3846     * Creates an ArkTS Uint8ClampedArray from an iterator object.
3847     *
3848     * @param { Iterable<number> } arrayLike - Iterator object used to construct the ArkTS Uint8ClampedArray.
3849     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - Mapping function. If no value is passed in,
3850     *     no special processing is conducted on the elements.
3851     * @returns { Uint8ClampedArray } A new Uint8ClampedArray instance
3852     * @throws { BusinessError } 401 - Parameter error.
3853     * @static
3854     * @syscap SystemCapability.Utils.Lang
3855     * @crossplatform
3856     * @atomicservice
3857     * @since 18
3858     */
3859    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Uint8ClampedArray;
3860    /**
3861     * Copies elements within a given range from this ArkTS Uint8ClampedArray to another position in sequence.
3862     *
3863     * @param { number } target - If target is negative, it is treated as length+target where length is the
3864     *     length of the array.
3865     * @param { number } start - Start index of the range.
3866     *     If a negative number is passed in, it refers to the index of start + Uint8ClampedArray.length.
3867     * @param { number } [end] - End index of the range.
3868     *     If a negative number is passed in, it refers to the index of end + Uint8ClampedArray.length.
3869     *     The default value is the length of the ArkTS Uint8ClampedArray.
3870     * @returns { Uint8ClampedArray } ArkTS Uint8ClampedArray after being modified.
3871     * @throws { BusinessError } 401 - Parameter error.
3872     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
3873     * @throws { BusinessError } 10200201 - Concurrent modification error.
3874     * @syscap SystemCapability.Utils.Lang
3875     * @atomicservice
3876     * @since 12
3877     */
3878    /**
3879     * Copies elements within a given range from this ArkTS Uint8ClampedArray to another position in sequence.
3880     *
3881     * @param { number } target - If target is negative, it is treated as length+target where length is the
3882     *     length of the array.
3883     * @param { number } start - Start index of the range.
3884     *     If a negative number is passed in, it refers to the index of start + Uint8ClampedArray.length.
3885     * @param { number } [end] - End index of the range.
3886     *     If a negative number is passed in, it refers to the index of end + Uint8ClampedArray.length.
3887     *     The default value is the length of the ArkTS Uint8ClampedArray.
3888     * @returns { Uint8ClampedArray } ArkTS Uint8ClampedArray after being modified.
3889     * @throws { BusinessError } 401 - Parameter error.
3890     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
3891     * @throws { BusinessError } 10200201 - Concurrent modification error.
3892     * @syscap SystemCapability.Utils.Lang
3893     * @crossplatform
3894     * @atomicservice
3895     * @since 18
3896     */
3897    copyWithin(target: number, start: number, end?: number): Uint8ClampedArray;
3898    /**
3899     * Checks whether all elements in this ArkTS Uint8ClampedArray meet a given condition.
3900     *
3901     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - A function
3902     *     that accepts up to three arguments.
3903     *     The every method calls the predicate function for each element in the array until
3904     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
3905     * @returns { boolean } Check result. The value true is returned if all elements meet the given condition;
3906     *     otherwise, false is returned.
3907     * @throws { BusinessError } 401 - Parameter error.
3908     * @throws { BusinessError } 10200011 - The every method cannot be bound.
3909     * @throws { BusinessError } 10200201 - Concurrent modification error.
3910     * @syscap SystemCapability.Utils.Lang
3911     * @atomicservice
3912     * @since 12
3913     */
3914    /**
3915     * Checks whether all elements in this ArkTS Uint8ClampedArray meet a given condition.
3916     *
3917     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - A function
3918     *     that accepts up to three arguments.
3919     *     The every method calls the predicate function for each element in the array until
3920     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
3921     * @returns { boolean } Check result. The value true is returned if all elements meet the given condition;
3922     *     otherwise, false is returned.
3923     * @throws { BusinessError } 401 - Parameter error.
3924     * @throws { BusinessError } 10200011 - The every method cannot be bound.
3925     * @throws { BusinessError } 10200201 - Concurrent modification error.
3926     * @syscap SystemCapability.Utils.Lang
3927     * @crossplatform
3928     * @atomicservice
3929     * @since 18
3930     */
3931    every(predicate: TypedArrayPredicateFn<number, Uint8ClampedArray>): boolean;
3932    /**
3933     * Fills all elements in a given range in this ArkTS Uint8ClampedArray with a value.
3934     *
3935     * @param { number } value - Value to fill in.
3936     * @param { number } [start] - Start index of the range. If a negative number is passed in,
3937     *     it refers to the index of start + Uint8ClampedArray.length. The default value is 0.
3938     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
3939     *     it refers to the index of end + Uint8ClampedArray.length.
3940     *     The default value is the length of the ArkTS Uint8ClampedArray.
3941     * @returns { Uint8ClampedArray } Filled ArkTS Uint8ClampedArray.
3942     * @throws { BusinessError } 401 - Parameter error.
3943     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
3944     * @throws { BusinessError } 10200201 - Concurrent modification error.
3945     * @syscap SystemCapability.Utils.Lang
3946     * @atomicservice
3947     * @since 12
3948     */
3949    /**
3950     * Fills all elements in a given range in this ArkTS Uint8ClampedArray with a value.
3951     *
3952     * @param { number } value - Value to fill in.
3953     * @param { number } [start] - Start index of the range. If a negative number is passed in,
3954     *     it refers to the index of start + Uint8ClampedArray.length. The default value is 0.
3955     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
3956     *     it refers to the index of end + Uint8ClampedArray.length.
3957     *     The default value is the length of the ArkTS Uint8ClampedArray.
3958     * @returns { Uint8ClampedArray } Filled ArkTS Uint8ClampedArray.
3959     * @throws { BusinessError } 401 - Parameter error.
3960     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
3961     * @throws { BusinessError } 10200201 - Concurrent modification error.
3962     * @syscap SystemCapability.Utils.Lang
3963     * @crossplatform
3964     * @atomicservice
3965     * @since 18
3966     */
3967    fill(value: number, start?: number, end?: number): Uint8ClampedArray;
3968    /**
3969     * Returns the elements of an array that meet the condition specified in a callback function.
3970     *
3971     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - A function
3972     *     that accepts up to three arguments.
3973     *     The filter method calls the predicate function one time for each element in the array.
3974     * @returns { Uint8ClampedArray } The array itself.
3975     * @throws { BusinessError } 401 - Parameter error.
3976     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
3977     * @throws { BusinessError } 10200201 - Concurrent modification error.
3978     * @syscap SystemCapability.Utils.Lang
3979     * @atomicservice
3980     * @since 12
3981     */
3982    /**
3983     * Returns the elements of an array that meet the condition specified in a callback function.
3984     *
3985     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - A function
3986     *     that accepts up to three arguments.
3987     *     The filter method calls the predicate function one time for each element in the array.
3988     * @returns { Uint8ClampedArray } The array itself.
3989     * @throws { BusinessError } 401 - Parameter error.
3990     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
3991     * @throws { BusinessError } 10200201 - Concurrent modification error.
3992     * @syscap SystemCapability.Utils.Lang
3993     * @crossplatform
3994     * @atomicservice
3995     * @since 18
3996     */
3997    filter(predicate: TypedArrayPredicateFn<number, Uint8ClampedArray>): Uint8ClampedArray;
3998    /**
3999     * Returns the value of the first element in the array where predicate is true, and undefined
4000     * otherwise.
4001     *
4002     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - find calls predicate once for
4003     *     each element of the array, in ascending order, until it finds one where predicate returns true.
4004     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
4005     * @returns { number | undefined } The first element in the typed array
4006     *     that satisfies the provided testing function. Otherwise, undefined is returned.
4007     * @throws { BusinessError } 401 - Parameter error.
4008     * @throws { BusinessError } 10200011 - The find method cannot be bound.
4009     * @throws { BusinessError } 10200201 - Concurrent modification error.
4010     * @syscap SystemCapability.Utils.Lang
4011     * @atomicservice
4012     * @since 12
4013     */
4014    /**
4015     * Returns the value of the first element in the array where predicate is true, and undefined
4016     * otherwise.
4017     *
4018     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - find calls predicate once for
4019     *     each element of the array, in ascending order, until it finds one where predicate returns true.
4020     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
4021     * @returns { number | undefined } The first element in the typed array
4022     *     that satisfies the provided testing function. Otherwise, undefined is returned.
4023     * @throws { BusinessError } 401 - Parameter error.
4024     * @throws { BusinessError } 10200011 - The find method cannot be bound.
4025     * @throws { BusinessError } 10200201 - Concurrent modification error.
4026     * @syscap SystemCapability.Utils.Lang
4027     * @crossplatform
4028     * @atomicservice
4029     * @since 18
4030     */
4031    find(predicate: TypedArrayPredicateFn<number, Uint8ClampedArray>): number | undefined;
4032    /**
4033     * Returns the index of the first element in the array where predicate is true, and -1
4034     * otherwise.
4035     *
4036     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - find calls predicate once for
4037     *     each element of the array, in ascending order, until it finds one where predicate returns true.
4038     *     If such an element is found, findIndex immediately returns that element index.
4039     *     Otherwise, findIndex returns -1.
4040     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
4041     * @throws { BusinessError } 401 - Parameter error.
4042     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
4043     * @throws { BusinessError } 10200201 - Concurrent modification error.
4044     * @syscap SystemCapability.Utils.Lang
4045     * @atomicservice
4046     * @since 12
4047     */
4048    /**
4049     * Returns the index of the first element in the array where predicate is true, and -1
4050     * otherwise.
4051     *
4052     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - find calls predicate once for
4053     *     each element of the array, in ascending order, until it finds one where predicate returns true.
4054     *     If such an element is found, findIndex immediately returns that element index.
4055     *     Otherwise, findIndex returns -1.
4056     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
4057     * @throws { BusinessError } 401 - Parameter error.
4058     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
4059     * @throws { BusinessError } 10200201 - Concurrent modification error.
4060     * @syscap SystemCapability.Utils.Lang
4061     * @crossplatform
4062     * @atomicservice
4063     * @since 18
4064     */
4065    findIndex(predicate: TypedArrayPredicateFn<number, Uint8ClampedArray>): number;
4066    /**
4067     * Performs the specified action for each element in an array.
4068     *
4069     * @param { TypedArrayForEachCallback<number, Uint8ClampedArray> } callbackFn -  A function that
4070     *     accepts up to three arguments.
4071     *     forEach calls the callbackfn function one time for each element in the array.
4072     * @throws { BusinessError } 401 - Parameter error.
4073     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
4074     * @throws { BusinessError } 10200201 - Concurrent modification error.
4075     * @syscap SystemCapability.Utils.Lang
4076     * @atomicservice
4077     * @since 12
4078     */
4079    /**
4080     * Performs the specified action for each element in an array.
4081     *
4082     * @param { TypedArrayForEachCallback<number, Uint8ClampedArray> } callbackFn -  A function that
4083     *     accepts up to three arguments.
4084     *     forEach calls the callbackfn function one time for each element in the array.
4085     * @throws { BusinessError } 401 - Parameter error.
4086     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
4087     * @throws { BusinessError } 10200201 - Concurrent modification error.
4088     * @syscap SystemCapability.Utils.Lang
4089     * @crossplatform
4090     * @atomicservice
4091     * @since 18
4092     */
4093    forEach(callbackFn: TypedArrayForEachCallback<number, Uint8ClampedArray>): void;
4094    /**
4095     * Returns the index of the first occurrence of a value in an array.
4096     *
4097     * @param { number } searchElement - The value to locate in the array.
4098     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
4099     *      search starts at index 0.
4100     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
4101     * @throws { BusinessError } 401 - Parameter error.
4102     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
4103     * @throws { BusinessError } 10200201 - Concurrent modification error.
4104     * @syscap SystemCapability.Utils.Lang
4105     * @atomicservice
4106     * @since 12
4107     */
4108    /**
4109     * Returns the index of the first occurrence of a value in an array.
4110     *
4111     * @param { number } searchElement - The value to locate in the array.
4112     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
4113     *      search starts at index 0.
4114     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
4115     * @throws { BusinessError } 401 - Parameter error.
4116     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
4117     * @throws { BusinessError } 10200201 - Concurrent modification error.
4118     * @syscap SystemCapability.Utils.Lang
4119     * @crossplatform
4120     * @atomicservice
4121     * @since 18
4122     */
4123    indexOf(searchElement: number, fromIndex?: number): number;
4124    /**
4125     * Adds all the elements of an array separated by the specified separator string.
4126     * @param { string } [separator] - A string used to separate one element of an array from the next in the
4127     *     resulting String. If omitted, the array elements are separated with a comma.
4128     * @returns { string } A string with all typed array elements joined.
4129     *     If array.length is 0, the empty string is returned.
4130     * @throws { BusinessError } 401 - Parameter error.
4131     * @throws { BusinessError } 10200011 - The join method cannot be bound.
4132     * @throws { BusinessError } 10200201 - Concurrent modification error.
4133     * @syscap SystemCapability.Utils.Lang
4134     * @atomicservice
4135     * @since 12
4136     */
4137    /**
4138     * Adds all the elements of an array separated by the specified separator string.
4139     * @param { string } [separator] - A string used to separate one element of an array from the next in the
4140     *     resulting String. If omitted, the array elements are separated with a comma.
4141     * @returns { string } A string with all typed array elements joined.
4142     *     If array.length is 0, the empty string is returned.
4143     * @throws { BusinessError } 401 - Parameter error.
4144     * @throws { BusinessError } 10200011 - The join method cannot be bound.
4145     * @throws { BusinessError } 10200201 - Concurrent modification error.
4146     * @syscap SystemCapability.Utils.Lang
4147     * @crossplatform
4148     * @atomicservice
4149     * @since 18
4150     */
4151    join(separator?: string): string;
4152    /**
4153     * Calls a defined callback function on each element of an array, and returns an array that
4154     * contains the results.
4155     *
4156     * @param { TypedArrayMapCallback<number, Uint8ClampedArray> } callbackFn - A function that
4157     *     accepts up to three arguments.
4158     *     The map method calls the callbackfn function one time for each element in the array.
4159     * @returns { Uint8ClampedArray } The array itself.
4160     * @throws { BusinessError } 401 - Parameter error.
4161     * @throws { BusinessError } 10200011 - The map method cannot be bound.
4162     * @throws { BusinessError } 10200201 - Concurrent modification error.
4163     * @syscap SystemCapability.Utils.Lang
4164     * @atomicservice
4165     * @since 12
4166     */
4167    /**
4168     * Calls a defined callback function on each element of an array, and returns an array that
4169     * contains the results.
4170     *
4171     * @param { TypedArrayMapCallback<number, Uint8ClampedArray> } callbackFn - A function that
4172     *     accepts up to three arguments.
4173     *     The map method calls the callbackfn function one time for each element in the array.
4174     * @returns { Uint8ClampedArray } The array itself.
4175     * @throws { BusinessError } 401 - Parameter error.
4176     * @throws { BusinessError } 10200011 - The map method cannot be bound.
4177     * @throws { BusinessError } 10200201 - Concurrent modification error.
4178     * @syscap SystemCapability.Utils.Lang
4179     * @crossplatform
4180     * @atomicservice
4181     * @since 18
4182     */
4183    map(callbackFn: TypedArrayMapCallback<number, Uint8ClampedArray>): Uint8ClampedArray;
4184    /**
4185     * Calls the specified callback function for all the elements in an array. The return value of
4186     * the callback function is the accumulated result, and is provided as an argument in the next
4187     * call to the callback function.
4188     *
4189     * @param { TypedArrayReduceCallback<number, number, Uint8ClampedArray> } callbackFn - A function that
4190     *     accepts up to four arguments.
4191     *     The reduce method calls the callbackfn function one time for each element in the array.
4192     * @returns { number } The value that results from running the "reducer" callback function to
4193     *     completion over the entire typed array.
4194     * @throws { BusinessError } 401 - Parameter error.
4195     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
4196     * @throws { BusinessError } 10200201 - Concurrent modification error.
4197     * @syscap SystemCapability.Utils.Lang
4198     * @atomicservice
4199     * @since 12
4200     */
4201    /**
4202     * Calls the specified callback function for all the elements in an array. The return value of
4203     * the callback function is the accumulated result, and is provided as an argument in the next
4204     * call to the callback function.
4205     *
4206     * @param { TypedArrayReduceCallback<number, number, Uint8ClampedArray> } callbackFn - A function that
4207     *     accepts up to four arguments.
4208     *     The reduce method calls the callbackfn function one time for each element in the array.
4209     * @returns { number } The value that results from running the "reducer" callback function to
4210     *     completion over the entire typed array.
4211     * @throws { BusinessError } 401 - Parameter error.
4212     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
4213     * @throws { BusinessError } 10200201 - Concurrent modification error.
4214     * @syscap SystemCapability.Utils.Lang
4215     * @crossplatform
4216     * @atomicservice
4217     * @since 18
4218     */
4219    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint8ClampedArray>): number;
4220    /**
4221     * Calls the specified callback function for all the elements in an array. The return value of
4222     * the callback function is the accumulated result, and is provided as an argument in the next
4223     * call to the callback function.
4224     *
4225     * @param { TypedArrayReduceCallback<U, number, Uint8ClampedArray> } callbackFn - A function that
4226     *     accepts up to four arguments.
4227     *     The reduce method calls the callbackfn function one time for each element in the array.
4228     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
4229     *     the accumulation. The first call to the callbackfn function provides this value as an argument
4230     *     instead of an array value.
4231     * @returns { U } The value that results from running the "reducer" callback function to
4232     *     completion over the entire typed array.
4233     * @throws { BusinessError } 401 - Parameter error.
4234     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
4235     * @throws { BusinessError } 10200201 - Concurrent modification error.
4236     * @syscap SystemCapability.Utils.Lang
4237     * @atomicservice
4238     * @since 12
4239     */
4240    /**
4241     * Calls the specified callback function for all the elements in an array. The return value of
4242     * the callback function is the accumulated result, and is provided as an argument in the next
4243     * call to the callback function.
4244     *
4245     * @param { TypedArrayReduceCallback<U, number, Uint8ClampedArray> } callbackFn - A function that
4246     *     accepts up to four arguments.
4247     *     The reduce method calls the callbackfn function one time for each element in the array.
4248     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
4249     *     the accumulation. The first call to the callbackfn function provides this value as an argument
4250     *     instead of an array value.
4251     * @returns { U } The value that results from running the "reducer" callback function to
4252     *     completion over the entire typed array.
4253     * @throws { BusinessError } 401 - Parameter error.
4254     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
4255     * @throws { BusinessError } 10200201 - Concurrent modification error.
4256     * @syscap SystemCapability.Utils.Lang
4257     * @crossplatform
4258     * @atomicservice
4259     * @since 18
4260     */
4261    reduce<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Uint8ClampedArray>, initialValue: U): U;
4262    /**
4263     * Reverses the elements in an Array.
4264     *
4265     * @returns { Uint8ClampedArray } The reference to the original typed array, now reversed.
4266     *     <br>Note that the typed array is reversed in place, and no copy is made.
4267     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
4268     * @throws { BusinessError } 10200201 - Concurrent modification error.
4269     * @syscap SystemCapability.Utils.Lang
4270     * @atomicservice
4271     * @since 12
4272     */
4273    /**
4274     * Reverses the elements in an Array.
4275     *
4276     * @returns { Uint8ClampedArray } The reference to the original typed array, now reversed.
4277     *     <br>Note that the typed array is reversed in place, and no copy is made.
4278     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
4279     * @throws { BusinessError } 10200201 - Concurrent modification error.
4280     * @syscap SystemCapability.Utils.Lang
4281     * @crossplatform
4282     * @atomicservice
4283     * @since 18
4284     */
4285    reverse(): Uint8ClampedArray;
4286    /**
4287     * Sets a value or an array of values.
4288     *
4289     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
4290     * @param { number } [offset] - The index in the current array at which the values are to be written.
4291     * @throws { BusinessError } 401 - Parameter error.
4292     * @throws { BusinessError } 10200011 - The set method cannot be bound.
4293     * @throws { BusinessError } 10200201 - Concurrent modification error.
4294     * @syscap SystemCapability.Utils.Lang
4295     * @atomicservice
4296     * @since 12
4297     */
4298    /**
4299     * Sets a value or an array of values.
4300     *
4301     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
4302     * @param { number } [offset] - The index in the current array at which the values are to be written.
4303     * @throws { BusinessError } 401 - Parameter error.
4304     * @throws { BusinessError } 10200011 - The set method cannot be bound.
4305     * @throws { BusinessError } 10200201 - Concurrent modification error.
4306     * @syscap SystemCapability.Utils.Lang
4307     * @crossplatform
4308     * @atomicservice
4309     * @since 18
4310     */
4311    set(array: ArrayLike<number>, offset?: number): void;
4312    /**
4313     * Returns a section of an array.
4314     *
4315     * @param { number } [start] - The beginning of the specified portion of the array.
4316     * @param { number } [end] - The end of the specified portion of the array.
4317     *     This is exclusive of the element at the index 'end'.
4318     * @returns { Uint8ClampedArray } A new typed array containing the extracted elements.
4319     * @throws { BusinessError } 401 - Parameter error.
4320     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
4321     * @throws { BusinessError } 10200201 - Concurrent modification error.
4322     * @syscap SystemCapability.Utils.Lang
4323     * @atomicservice
4324     * @since 12
4325     */
4326    /**
4327     * Returns a section of an array.
4328     *
4329     * @param { number } [start] - The beginning of the specified portion of the array.
4330     * @param { number } [end] - The end of the specified portion of the array.
4331     *     This is exclusive of the element at the index 'end'.
4332     * @returns { Uint8ClampedArray } A new typed array containing the extracted elements.
4333     * @throws { BusinessError } 401 - Parameter error.
4334     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
4335     * @throws { BusinessError } 10200201 - Concurrent modification error.
4336     * @syscap SystemCapability.Utils.Lang
4337     * @crossplatform
4338     * @atomicservice
4339     * @since 18
4340     */
4341    slice(start?: number, end?: number): Uint8ClampedArray;
4342    /**
4343     * Determines whether the specified callback function returns true for any element of an array.
4344     *
4345     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - A function
4346     *     that accepts up to three arguments.
4347     *     The some method calls the predicate function for each element in the array until
4348     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
4349     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
4350     *     in which case true is immediately returned.
4351     * @throws { BusinessError } 401 - Parameter error.
4352     * @throws { BusinessError } 10200011 - The some method cannot be bound.
4353     * @throws { BusinessError } 10200201 - Concurrent modification error.
4354     * @syscap SystemCapability.Utils.Lang
4355     * @atomicservice
4356     * @since 12
4357     */
4358    /**
4359     * Determines whether the specified callback function returns true for any element of an array.
4360     *
4361     * @param { TypedArrayPredicateFn<number, Uint8ClampedArray> } predicate - A function
4362     *     that accepts up to three arguments.
4363     *     The some method calls the predicate function for each element in the array until
4364     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
4365     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
4366     *     in which case true is immediately returned.
4367     * @throws { BusinessError } 401 - Parameter error.
4368     * @throws { BusinessError } 10200011 - The some method cannot be bound.
4369     * @throws { BusinessError } 10200201 - Concurrent modification error.
4370     * @syscap SystemCapability.Utils.Lang
4371     * @crossplatform
4372     * @atomicservice
4373     * @since 18
4374     */
4375    some(predicate: TypedArrayPredicateFn<number, Uint8ClampedArray>): boolean;
4376    /**
4377     * Sorts an array.
4378     *
4379     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
4380     *     It is expected to return a negative value if first argument is less than second argument,
4381     *     zero if they're equal and a positive value otherwise.
4382     *     If omitted, the elements are sorted in ascending, ASCII character order.
4383     * @returns { Uint8ClampedArray } The reference to the original typed array, now sorted.
4384     *     Note that the typed array is sorted in place and no copy is made.
4385     * @throws { BusinessError } 401 - Parameter error.
4386     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
4387     * @throws { BusinessError } 10200201 - Concurrent modification error.
4388     * @syscap SystemCapability.Utils.Lang
4389     * @atomicservice
4390     * @since 12
4391     */
4392    /**
4393     * Sorts an array.
4394     *
4395     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
4396     *     It is expected to return a negative value if first argument is less than second argument,
4397     *     zero if they're equal and a positive value otherwise.
4398     *     If omitted, the elements are sorted in ascending, ASCII character order.
4399     * @returns { Uint8ClampedArray } The reference to the original typed array, now sorted.
4400     *     Note that the typed array is sorted in place and no copy is made.
4401     * @throws { BusinessError } 401 - Parameter error.
4402     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
4403     * @throws { BusinessError } 10200201 - Concurrent modification error.
4404     * @syscap SystemCapability.Utils.Lang
4405     * @crossplatform
4406     * @atomicservice
4407     * @since 18
4408     */
4409    sort(compareFn?: TypedArrayCompareFn<number>): Uint8ClampedArray;
4410    /**
4411     * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
4412     * at begin, inclusive, up to end, exclusive.
4413     *
4414     * @param { number } [begin] - The index of the beginning of the array.
4415     * @param { number } [end] - The index of the end of the array.
4416     * @returns { Uint8ClampedArray } A new Uint8ClampedArray object.
4417     * @throws { BusinessError } 401 - Parameter error.
4418     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
4419     * @throws { BusinessError } 10200201 - Concurrent modification error.
4420     * @syscap SystemCapability.Utils.Lang
4421     * @atomicservice
4422     * @since 12
4423     */
4424    /**
4425     * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
4426     * at begin, inclusive, up to end, exclusive.
4427     *
4428     * @param { number } [begin] - The index of the beginning of the array.
4429     * @param { number } [end] - The index of the end of the array.
4430     * @returns { Uint8ClampedArray } A new Uint8ClampedArray object.
4431     * @throws { BusinessError } 401 - Parameter error.
4432     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
4433     * @throws { BusinessError } 10200201 - Concurrent modification error.
4434     * @syscap SystemCapability.Utils.Lang
4435     * @crossplatform
4436     * @atomicservice
4437     * @since 18
4438     */
4439    subarray(begin?: number, end?: number): Uint8ClampedArray;
4440    /**
4441     * Returns the item located at the specified index.
4442     *
4443     * @param { number } index - The zero-based index of the desired code unit.<br/>
4444     *     A negative index will count back from the last item.
4445     * @returns { number | undefined } The element in the array matching the given index.<br/>
4446     *     Always returns undefined if index < -array.length or
4447     *     index >= array.length without attempting to access the corresponding property.
4448     * @throws { BusinessError } 401 - Parameter error.
4449     * @throws { BusinessError } 10200011 - The at method cannot be bound.
4450     * @throws { BusinessError } 10200201 - Concurrent modification error.
4451     * @syscap SystemCapability.Utils.Lang
4452     * @atomicservice
4453     * @since 12
4454     */
4455    /**
4456     * Returns the item located at the specified index.
4457     *
4458     * @param { number } index - The zero-based index of the desired code unit.<br/>
4459     *     A negative index will count back from the last item.
4460     * @returns { number | undefined } The element in the array matching the given index.<br/>
4461     *     Always returns undefined if index < -array.length or
4462     *     index >= array.length without attempting to access the corresponding property.
4463     * @throws { BusinessError } 401 - Parameter error.
4464     * @throws { BusinessError } 10200011 - The at method cannot be bound.
4465     * @throws { BusinessError } 10200201 - Concurrent modification error.
4466     * @syscap SystemCapability.Utils.Lang
4467     * @crossplatform
4468     * @atomicservice
4469     * @since 18
4470     */
4471    at(index: number): number | undefined;
4472    /**
4473     * Returns an iterator that iterates over numbers.
4474     *
4475     * @returns { IterableIterator<number> } Iterator object that yields numbers.
4476     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
4477     * @syscap SystemCapability.Utils.Lang
4478     * @atomicservice
4479     * @since 12
4480     */
4481    /**
4482     * Returns an iterator that iterates over numbers.
4483     *
4484     * @returns { IterableIterator<number> } Iterator object that yields numbers.
4485     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
4486     * @syscap SystemCapability.Utils.Lang
4487     * @crossplatform
4488     * @atomicservice
4489     * @since 18
4490     */
4491    [Symbol.iterator](): IterableIterator<number>;
4492    /**
4493     * Returns an iterable of key, value pairs for every entry in the array
4494     *
4495     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
4496     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
4497     * @throws { BusinessError } 10200201 - Concurrent modification error.
4498     * @syscap SystemCapability.Utils.Lang
4499     * @atomicservice
4500     * @since 12
4501     */
4502    /**
4503     * Returns an iterable of key, value pairs for every entry in the array
4504     *
4505     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
4506     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
4507     * @throws { BusinessError } 10200201 - Concurrent modification error.
4508     * @syscap SystemCapability.Utils.Lang
4509     * @crossplatform
4510     * @atomicservice
4511     * @since 18
4512     */
4513    entries(): IterableIterator<[number, number]>;
4514    /**
4515     * Returns an iterable of keys in the array
4516     *
4517     * @returns { IterableIterator<number> } A new iterable iterator object.
4518     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
4519     * @throws { BusinessError } 10200201 - Concurrent modification error.
4520     * @syscap SystemCapability.Utils.Lang
4521     * @atomicservice
4522     * @since 12
4523     */
4524    /**
4525     * Returns an iterable of keys in the array
4526     *
4527     * @returns { IterableIterator<number> } A new iterable iterator object.
4528     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
4529     * @throws { BusinessError } 10200201 - Concurrent modification error.
4530     * @syscap SystemCapability.Utils.Lang
4531     * @crossplatform
4532     * @atomicservice
4533     * @since 18
4534     */
4535    keys(): IterableIterator<number>;
4536    /**
4537     * Returns an iterable of values in the array
4538     *
4539     * @returns { IterableIterator<number> } A new iterable iterator object.
4540     * @throws { BusinessError } 10200011 - The values method cannot be bound.
4541     * @throws { BusinessError } 10200201 - Concurrent modification error.
4542     * @syscap SystemCapability.Utils.Lang
4543     * @atomicservice
4544     * @since 12
4545     */
4546    /**
4547     * Returns an iterable of values in the array
4548     *
4549     * @returns { IterableIterator<number> } A new iterable iterator object.
4550     * @throws { BusinessError } 10200011 - The values method cannot be bound.
4551     * @throws { BusinessError } 10200201 - Concurrent modification error.
4552     * @syscap SystemCapability.Utils.Lang
4553     * @crossplatform
4554     * @atomicservice
4555     * @since 18
4556     */
4557    values(): IterableIterator<number>;
4558    /**
4559     * Determines whether an array includes a certain element, returning true or false as appropriate.
4560     *
4561     * @param { number } searchElement - The element to search for.
4562     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
4563     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
4564     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
4565     * @throws { BusinessError } 401 - Parameter error.
4566     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
4567     * @throws { BusinessError } 10200201 - Concurrent modification error.
4568     * @syscap SystemCapability.Utils.Lang
4569     * @atomicservice
4570     * @since 12
4571     */
4572    /**
4573     * Determines whether an array includes a certain element, returning true or false as appropriate.
4574     *
4575     * @param { number } searchElement - The element to search for.
4576     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
4577     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
4578     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
4579     * @throws { BusinessError } 401 - Parameter error.
4580     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
4581     * @throws { BusinessError } 10200201 - Concurrent modification error.
4582     * @syscap SystemCapability.Utils.Lang
4583     * @crossplatform
4584     * @atomicservice
4585     * @since 18
4586     */
4587    includes(searchElement: number, fromIndex?: number): boolean;
4588    /**
4589     * Returns the item at that index.
4590     *
4591     * @syscap SystemCapability.Utils.Lang
4592     * @atomicservice
4593     * @since 12
4594     */
4595    /**
4596     * Returns the item at that index.
4597     *
4598     * @syscap SystemCapability.Utils.Lang
4599     * @crossplatform
4600     * @atomicservice
4601     * @since 18
4602     */
4603    [index: number]: number;
4604    /**
4605     * Find the last occurrence of a specified element in an Uint8ClampedArray.
4606     *
4607     * @param { number } searchElement - Element to search for in the Uint8ClampedArray..
4608     * @param { number } fromIndex - The index at which to start the search. If provided:
4609     *	   <br>If this index is negative, it is treated as Uint8ClampedArray.length + fromIndex.
4610     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
4611     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
4612     * @throws { BusinessError } 10200201 - Concurrent modification error.
4613     * @syscap SystemCapability.Utils.Lang
4614     * @atomicservice
4615     * @since 18
4616     */
4617    lastIndexOf(searchElement: number, fromIndex?: number): number;
4618    /**
4619     * Reduce elements in an Uint8ClampedArray from right to left.
4620     *
4621     * @param { TypedArrayReduceCallback<U, number, Uint8ClampedArray> } callbackFn - A function that is called for
4622     * each element in the Uint8ClampedArray.
4623     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
4624     *     <br>If no initial value is provided, the last element of the Uint8ClampedArray will be used,
4625     *     <br>and the callback will start with the second-to-last element.
4626     * @returns { U } Returns the single value that results from the reduction.
4627     * @throws { BusinessError } 401 - Parameter error. Possible causes:
4628     *                                    1.Mandatory parameters are left unspecified.
4629     *                                    2.Incorrect parameter types.
4630     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
4631     * @throws { BusinessError } 10200201 - Concurrent modification error.
4632     * @syscap SystemCapability.Utils.Lang
4633     * @atomicservice
4634     * @since 18
4635     */
4636    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Uint8ClampedArray>, initialValue: U): U;
4637    /**
4638     * Reduce elements in an Uint8ClampedArray from right to left.
4639     *
4640     * @param { TypedArrayReduceCallback<number, number, Uint8ClampedArray> } callbackFn - A function that is called for
4641     * each element in the Uint8ClampedArray.
4642     * @returns { number } Returns the single value that results from the reduction.
4643     * @throws { BusinessError } 401 - Parameter error. Possible causes:
4644     *                                    1.Mandatory parameters are left unspecified.
4645     *                                    2.Incorrect parameter types.
4646     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
4647     * @throws { BusinessError } 10200201 - Concurrent modification error.
4648     * @syscap SystemCapability.Utils.Lang
4649     * @atomicservice
4650     * @since 18
4651     */
4652    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Uint8ClampedArray>): number;
4653    /**
4654     * Convert an Uint8ClampedArray to a string.
4655     *
4656     * @returns { string } Returns a string representing the specified Uint8ClampedArray and its elements,
4657     * separated by commas.
4658     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
4659     * @throws { BusinessError } 10200201 - Concurrent modification error.
4660     * @syscap SystemCapability.Utils.Lang
4661     * @atomicservice
4662     * @since 18
4663     */
4664    toString(): string;
4665    /**
4666     * Convert an Uint8ClampedArray to a string, The elements are converted to string using their
4667     * toLocaleString methods.
4668     *
4669     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
4670     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
4671     * @throws { BusinessError } 10200201 - Concurrent modification error.
4672     * @syscap SystemCapability.Utils.Lang
4673     * @atomicservice
4674     * @since 18
4675     */
4676    toLocaleString(): string;
4677    /**
4678     * Create an Uint8ClampedArray containing these parameters.
4679     *
4680     * @param { number[] } items - A variable number of arguments that will be used as the elements of the
4681     * Uint8ClampedArray.
4682     * @returns { Uint8ClampedArray } Returns a new Uint8ClampedArray instance containing the specified elements.
4683     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
4684     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
4685     * @static
4686     * @syscap SystemCapability.Utils.Lang
4687     * @atomicservice
4688     * @since 18
4689     */
4690    static of(...items: number[]): Uint8ClampedArray;
4691 }
4692
4693  /**
4694   * A typed array of 8-bit unsigned integer values. The contents are initialized to 0.
4695   * If multiple threads access a Uint8Array instance concurrently,
4696   * and at least one of the threads modifies the array structurally,
4697   * it must be synchronized externally.
4698   *
4699   * @syscap SystemCapability.Utils.Lang
4700   * @atomicservice
4701   * @since 12
4702   */
4703  /**
4704   * A typed array of 8-bit unsigned integer values. The contents are initialized to 0.
4705   * If multiple threads access a Uint8Array instance concurrently,
4706   * and at least one of the threads modifies the array structurally,
4707   * it must be synchronized externally.
4708   *
4709   * @syscap SystemCapability.Utils.Lang
4710   * @crossplatform
4711   * @atomicservice
4712   * @since 18
4713   */
4714  @Sendable
4715  class Uint8Array {
4716    /**
4717     * The size in bytes of each element in the array.
4718     *
4719     * @type { number }
4720     * @readonly
4721     * @static
4722     * @syscap SystemCapability.Utils.Lang
4723     * @atomicservice
4724     * @since 12
4725     */
4726    /**
4727     * The size in bytes of each element in the array.
4728     *
4729     * @type { number }
4730     * @readonly
4731     * @static
4732     * @syscap SystemCapability.Utils.Lang
4733     * @crossplatform
4734     * @atomicservice
4735     * @since 18
4736     */
4737    static readonly BYTES_PER_ELEMENT: number;
4738    /**
4739     * The ArrayBuffer instance referenced by the array.
4740     *
4741     * @type { ArrayBuffer }
4742     * @readonly
4743     * @syscap SystemCapability.Utils.Lang
4744     * @atomicservice
4745     * @since 12
4746     */
4747    /**
4748     * The ArrayBuffer instance referenced by the array.
4749     *
4750     * @type { ArrayBuffer }
4751     * @readonly
4752     * @syscap SystemCapability.Utils.Lang
4753     * @crossplatform
4754     * @atomicservice
4755     * @since 18
4756     */
4757    readonly buffer: ArrayBuffer;
4758    /**
4759     * The length in bytes of the array.
4760     *
4761     * @type { number }
4762     * @readonly
4763     * @syscap SystemCapability.Utils.Lang
4764     * @atomicservice
4765     * @since 12
4766     */
4767    /**
4768     * The length in bytes of the array.
4769     *
4770     * @type { number }
4771     * @readonly
4772     * @syscap SystemCapability.Utils.Lang
4773     * @crossplatform
4774     * @atomicservice
4775     * @since 18
4776     */
4777    readonly byteLength: number;
4778    /**
4779     * The offset in bytes of the array.
4780     *
4781     * @type { number }
4782     * @readonly
4783     * @syscap SystemCapability.Utils.Lang
4784     * @atomicservice
4785     * @since 12
4786     */
4787    /**
4788     * The offset in bytes of the array.
4789     *
4790     * @type { number }
4791     * @readonly
4792     * @syscap SystemCapability.Utils.Lang
4793     * @crossplatform
4794     * @atomicservice
4795     * @since 18
4796     */
4797    readonly byteOffset: number;
4798    /**
4799     * The length of the array.
4800     *
4801     * @type { number }
4802     * @readonly
4803     * @syscap SystemCapability.Utils.Lang
4804     * @atomicservice
4805     * @since 12
4806     */
4807    /**
4808     * The length of the array.
4809     *
4810     * @type { number }
4811     * @readonly
4812     * @syscap SystemCapability.Utils.Lang
4813     * @crossplatform
4814     * @atomicservice
4815     * @since 18
4816     */
4817    readonly length: number;
4818    /**
4819     * A constructor used to create an Uint8Array.
4820     *
4821     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4822     * @syscap SystemCapability.Utils.Lang
4823     * @atomicservice
4824     * @since 12
4825     */
4826    /**
4827     * A constructor used to create an Uint8Array.
4828     *
4829     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4830     * @syscap SystemCapability.Utils.Lang
4831     * @crossplatform
4832     * @atomicservice
4833     * @since 18
4834     */
4835    constructor();
4836    /**
4837     * A constructor used to create an Uint8Array.
4838     *
4839     * @param { number } length - The length of the array
4840     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4841     * @throws { BusinessError } 401 - Parameter error.
4842     * @syscap SystemCapability.Utils.Lang
4843     * @atomicservice
4844     * @since 12
4845     */
4846    /**
4847     * A constructor used to create an Uint8Array.
4848     *
4849     * @param { number } length - The length of the array
4850     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4851     * @throws { BusinessError } 401 - Parameter error.
4852     * @syscap SystemCapability.Utils.Lang
4853     * @crossplatform
4854     * @atomicservice
4855     * @since 18
4856     */
4857    constructor(length: number);
4858    /**
4859     * A constructor used to create an Uint8Array.
4860     *
4861     * @param { Iterable<number> } elements - An iterable object to convert to an Uint8Array.
4862     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4863     * @throws { BusinessError } 401 - Parameter error.
4864     * @syscap SystemCapability.Utils.Lang
4865     * @atomicservice
4866     * @since 12
4867     */
4868    /**
4869     * A constructor used to create an Uint8Array.
4870     *
4871     * @param { Iterable<number> } elements - An iterable object to convert to an Uint8Array.
4872     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4873     * @throws { BusinessError } 401 - Parameter error.
4874     * @syscap SystemCapability.Utils.Lang
4875     * @crossplatform
4876     * @atomicservice
4877     * @since 18
4878     */
4879    constructor(elements: Iterable<number>);
4880    /**
4881     * A constructor used to create an Uint8Array.
4882     *
4883     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
4884     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4885     * @throws { BusinessError } 401 - Parameter error.
4886     * @syscap SystemCapability.Utils.Lang
4887     * @atomicservice
4888     * @since 12
4889     */
4890    /**
4891     * A constructor used to create an Uint8Array.
4892     *
4893     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
4894     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4895     * @throws { BusinessError } 401 - Parameter error.
4896     * @syscap SystemCapability.Utils.Lang
4897     * @crossplatform
4898     * @atomicservice
4899     * @since 18
4900     */
4901    constructor(array: ArrayLike<number> | ArrayBuffer);
4902    /**
4903     * A constructor used to create an Uint8Array.
4904     *
4905     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
4906     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
4907     *     that will be exposed by the typed array view.
4908     * @param { number } [length] - The length parameter specifies the memory range
4909     *     that will be exposed by the typed array view.
4910     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4911     * @throws { BusinessError } 401 - Parameter error.
4912     * @syscap SystemCapability.Utils.Lang
4913     * @atomicservice
4914     * @since 12
4915     */
4916    /**
4917     * A constructor used to create an Uint8Array.
4918     *
4919     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
4920     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
4921     *     that will be exposed by the typed array view.
4922     * @param { number } [length] - The length parameter specifies the memory range
4923     *     that will be exposed by the typed array view.
4924     * @throws { BusinessError } 10200012 - The Uint8Array's constructor cannot be directly invoked.
4925     * @throws { BusinessError } 401 - Parameter error.
4926     * @syscap SystemCapability.Utils.Lang
4927     * @crossplatform
4928     * @atomicservice
4929     * @since 18
4930     */
4931    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
4932    /**
4933     * Creates an Uint8Array from an array-like object.
4934     *
4935     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Uint8Array.
4936     * @returns { Uint8Array } A new Uint8Array instance
4937     * @throws { BusinessError } 401 - Parameter error.
4938     * @static
4939     * @syscap SystemCapability.Utils.Lang
4940     * @atomicservice
4941     * @since 12
4942     */
4943    /**
4944     * Creates an Uint8Array from an array-like object.
4945     *
4946     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Uint8Array.
4947     * @returns { Uint8Array } A new Uint8Array instance
4948     * @throws { BusinessError } 401 - Parameter error.
4949     * @static
4950     * @syscap SystemCapability.Utils.Lang
4951     * @crossplatform
4952     * @atomicservice
4953     * @since 18
4954     */
4955    static from(arrayLike: ArrayLike<number>): Uint8Array;
4956    /**
4957     * Creates an Uint8Array from an array-like object.
4958     *
4959     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Uint8Array.
4960     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
4961     * @returns { Uint8Array } A new Uint8Array instance
4962     * @throws { BusinessError } 401 - Parameter error.
4963     * @static
4964     * @syscap SystemCapability.Utils.Lang
4965     * @atomicservice
4966     * @since 12
4967     */
4968    /**
4969     * Creates an Uint8Array from an array-like object.
4970     *
4971     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Uint8Array.
4972     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
4973     * @returns { Uint8Array } A new Uint8Array instance
4974     * @throws { BusinessError } 401 - Parameter error.
4975     * @static
4976     * @syscap SystemCapability.Utils.Lang
4977     * @crossplatform
4978     * @atomicservice
4979     * @since 18
4980     */
4981    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Uint8Array;
4982    /**
4983     * Creates an Uint8Array from an iterable object.
4984     *
4985     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Uint8Array.
4986     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
4987     * call on every element of the array.
4988     * @returns { Uint8Array } A new Uint8Array instance
4989     * @throws { BusinessError } 401 - Parameter error.
4990     * @static
4991     * @syscap SystemCapability.Utils.Lang
4992     * @atomicservice
4993     * @since 12
4994     */
4995    /**
4996     * Creates an Uint8Array from an iterable object.
4997     *
4998     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Uint8Array.
4999     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
5000     * call on every element of the array.
5001     * @returns { Uint8Array } A new Uint8Array instance
5002     * @throws { BusinessError } 401 - Parameter error.
5003     * @static
5004     * @syscap SystemCapability.Utils.Lang
5005     * @crossplatform
5006     * @atomicservice
5007     * @since 18
5008     */
5009    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Uint8Array;
5010    /**
5011     * Returns the this object after copying a section of the array identified by start and end
5012     * to the same array starting at position target.
5013     *
5014     * @param { number } target - If target is negative, it is treated as length+target where length is the
5015     *     length of the array.
5016     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
5017     *     is treated as length+end.
5018     * @param { number } [end] - If not specified, length of the this object is used as its default value.
5019     * @returns { Uint8Array } The array itself.
5020     * @throws { BusinessError } 401 - Parameter error.
5021     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
5022     * @throws { BusinessError } 10200201 - Concurrent modification error.
5023     * @syscap SystemCapability.Utils.Lang
5024     * @atomicservice
5025     * @since 12
5026     */
5027    /**
5028     * Returns the this object after copying a section of the array identified by start and end
5029     * to the same array starting at position target.
5030     *
5031     * @param { number } target - If target is negative, it is treated as length+target where length is the
5032     *     length of the array.
5033     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
5034     *     is treated as length+end.
5035     * @param { number } [end] - If not specified, length of the this object is used as its default value.
5036     * @returns { Uint8Array } The array itself.
5037     * @throws { BusinessError } 401 - Parameter error.
5038     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
5039     * @throws { BusinessError } 10200201 - Concurrent modification error.
5040     * @syscap SystemCapability.Utils.Lang
5041     * @crossplatform
5042     * @atomicservice
5043     * @since 18
5044     */
5045    copyWithin(target: number, start: number, end?: number): Uint8Array;
5046    /**
5047     * Determines whether all the members of an array satisfy the specified test.
5048     *
5049     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - A function that accepts up to three arguments.
5050     *     The every method calls the predicate function for each element in the array until
5051     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
5052     * @returns { boolean } true unless predicate returns a false value for a typed array element,
5053     *     in which case false is immediately returned.
5054     * @throws { BusinessError } 401 - Parameter error.
5055     * @throws { BusinessError } 10200011 - The every method cannot be bound.
5056     * @throws { BusinessError } 10200201 - Concurrent modification error.
5057     * @syscap SystemCapability.Utils.Lang
5058     * @atomicservice
5059     * @since 12
5060     */
5061    /**
5062     * Determines whether all the members of an array satisfy the specified test.
5063     *
5064     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - A function that accepts up to three arguments.
5065     *     The every method calls the predicate function for each element in the array until
5066     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
5067     * @returns { boolean } true unless predicate returns a false value for a typed array element,
5068     *     in which case false is immediately returned.
5069     * @throws { BusinessError } 401 - Parameter error.
5070     * @throws { BusinessError } 10200011 - The every method cannot be bound.
5071     * @throws { BusinessError } 10200201 - Concurrent modification error.
5072     * @syscap SystemCapability.Utils.Lang
5073     * @crossplatform
5074     * @atomicservice
5075     * @since 18
5076     */
5077    every(predicate: TypedArrayPredicateFn<number, Uint8Array>): boolean;
5078    /**
5079     * Returns the this object after filling the section identified by start and end with value.
5080     *
5081     * @param { number } value - value to fill array section with.
5082     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
5083     *     length+start where length is the length of the array.
5084     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
5085     *     length+end.
5086     * @returns { Uint8Array } The array itself.
5087     * @throws { BusinessError } 401 - Parameter error.
5088     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
5089     * @throws { BusinessError } 10200201 - Concurrent modification error.
5090     * @syscap SystemCapability.Utils.Lang
5091     * @atomicservice
5092     * @since 12
5093     */
5094    /**
5095     * Returns the this object after filling the section identified by start and end with value.
5096     *
5097     * @param { number } value - value to fill array section with.
5098     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
5099     *     length+start where length is the length of the array.
5100     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
5101     *     length+end.
5102     * @returns { Uint8Array } The array itself.
5103     * @throws { BusinessError } 401 - Parameter error.
5104     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
5105     * @throws { BusinessError } 10200201 - Concurrent modification error.
5106     * @syscap SystemCapability.Utils.Lang
5107     * @crossplatform
5108     * @atomicservice
5109     * @since 18
5110     */
5111    fill(value: number, start?: number, end?: number): Uint8Array;
5112    /**
5113     * Returns the elements of an array that meet the condition specified in a callback function.
5114     *
5115     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - A function that accepts up to three arguments.
5116     *     The filter method calls the predicate function one time for each element in the array.
5117     * @returns { Uint8Array } The array itself.
5118     * @throws { BusinessError } 401 - Parameter error.
5119     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
5120     * @throws { BusinessError } 10200201 - Concurrent modification error.
5121     * @syscap SystemCapability.Utils.Lang
5122     * @atomicservice
5123     * @since 12
5124     */
5125    /**
5126     * Returns the elements of an array that meet the condition specified in a callback function.
5127     *
5128     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - A function that accepts up to three arguments.
5129     *     The filter method calls the predicate function one time for each element in the array.
5130     * @returns { Uint8Array } The array itself.
5131     * @throws { BusinessError } 401 - Parameter error.
5132     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
5133     * @throws { BusinessError } 10200201 - Concurrent modification error.
5134     * @syscap SystemCapability.Utils.Lang
5135     * @crossplatform
5136     * @atomicservice
5137     * @since 18
5138     */
5139    filter(predicate: TypedArrayPredicateFn<number, Uint8Array>): Uint8Array;
5140    /**
5141     * Returns the value of the first element in the array where predicate is true, and undefined
5142     * otherwise.
5143     *
5144     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - find calls predicate once for each element of
5145     *     the array, in ascending order, until it finds one where predicate returns true.
5146     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
5147     * @returns { number | undefined } The first element in the typed array
5148     *      that satisfies the provided testing function. Otherwise, undefined is returned.
5149     * @throws { BusinessError } 401 - Parameter error.
5150     * @throws { BusinessError } 10200011 - The find method cannot be bound.
5151     * @throws { BusinessError } 10200201 - Concurrent modification error.
5152     * @syscap SystemCapability.Utils.Lang
5153     * @atomicservice
5154     * @since 12
5155     */
5156    /**
5157     * Returns the value of the first element in the array where predicate is true, and undefined
5158     * otherwise.
5159     *
5160     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - find calls predicate once for each element of
5161     *     the array, in ascending order, until it finds one where predicate returns true.
5162     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
5163     * @returns { number | undefined } The first element in the typed array
5164     *      that satisfies the provided testing function. Otherwise, undefined is returned.
5165     * @throws { BusinessError } 401 - Parameter error.
5166     * @throws { BusinessError } 10200011 - The find method cannot be bound.
5167     * @throws { BusinessError } 10200201 - Concurrent modification error.
5168     * @syscap SystemCapability.Utils.Lang
5169     * @crossplatform
5170     * @atomicservice
5171     * @since 18
5172     */
5173    find(predicate: TypedArrayPredicateFn<number, Uint8Array>): number | undefined;
5174    /**
5175     * Returns the index of the first element in the array where predicate is true, and -1
5176     * otherwise.
5177     *
5178     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - find calls predicate once for each element of
5179     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
5180     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
5181     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
5182     * @throws { BusinessError } 401 - Parameter error.
5183     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
5184     * @throws { BusinessError } 10200201 - Concurrent modification error.
5185     * @syscap SystemCapability.Utils.Lang
5186     * @atomicservice
5187     * @since 12
5188     */
5189    /**
5190     * Returns the index of the first element in the array where predicate is true, and -1
5191     * otherwise.
5192     *
5193     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - find calls predicate once for each element of
5194     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
5195     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
5196     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
5197     * @throws { BusinessError } 401 - Parameter error.
5198     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
5199     * @throws { BusinessError } 10200201 - Concurrent modification error.
5200     * @syscap SystemCapability.Utils.Lang
5201     * @crossplatform
5202     * @atomicservice
5203     * @since 18
5204     */
5205    findIndex(predicate: TypedArrayPredicateFn<number, Uint8Array>): number;
5206    /**
5207     * Performs the specified action for each element in an array.
5208     *
5209     * @param { TypedArrayForEachCallback<number, Uint8Array> } callbackFn -  A function that
5210     *     accepts up to three arguments.
5211     *     forEach calls the callbackfn function one time for each element in the array.
5212     * @throws { BusinessError } 401 - Parameter error.
5213     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
5214     * @throws { BusinessError } 10200201 - Concurrent modification error.
5215     * @syscap SystemCapability.Utils.Lang
5216     * @atomicservice
5217     * @since 12
5218     */
5219    /**
5220     * Performs the specified action for each element in an array.
5221     *
5222     * @param { TypedArrayForEachCallback<number, Uint8Array> } callbackFn -  A function that
5223     *     accepts up to three arguments.
5224     *     forEach calls the callbackfn function one time for each element in the array.
5225     * @throws { BusinessError } 401 - Parameter error.
5226     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
5227     * @throws { BusinessError } 10200201 - Concurrent modification error.
5228     * @syscap SystemCapability.Utils.Lang
5229     * @crossplatform
5230     * @atomicservice
5231     * @since 18
5232     */
5233    forEach(callbackFn: TypedArrayForEachCallback<number, Uint8Array>): void;
5234    /**
5235     * Returns the index of the first occurrence of a value in an array.
5236     *
5237     * @param { number } searchElement - The value to locate in the array.
5238     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
5239     *      search starts at index 0.
5240     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
5241     * @throws { BusinessError } 401 - Parameter error.
5242     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
5243     * @throws { BusinessError } 10200201 - Concurrent modification error.
5244     * @syscap SystemCapability.Utils.Lang
5245     * @atomicservice
5246     * @since 12
5247     */
5248    /**
5249     * Returns the index of the first occurrence of a value in an array.
5250     *
5251     * @param { number } searchElement - The value to locate in the array.
5252     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
5253     *      search starts at index 0.
5254     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
5255     * @throws { BusinessError } 401 - Parameter error.
5256     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
5257     * @throws { BusinessError } 10200201 - Concurrent modification error.
5258     * @syscap SystemCapability.Utils.Lang
5259     * @crossplatform
5260     * @atomicservice
5261     * @since 18
5262     */
5263    indexOf(searchElement: number, fromIndex?: number): number;
5264    /**
5265     * Adds all the elements of an array separated by the specified separator string.
5266     * @param { string } [separator] - A string used to separate one element of an array from the next in the
5267     *     resulting String. If omitted, the array elements are separated with a comma.
5268     * @returns { string } A string with all typed array elements joined.
5269     *     If array.length is 0, the empty string is returned.
5270     * @throws { BusinessError } 401 - Parameter error.
5271     * @throws { BusinessError } 10200011 - The join method cannot be bound.
5272     * @throws { BusinessError } 10200201 - Concurrent modification error.
5273     * @syscap SystemCapability.Utils.Lang
5274     * @atomicservice
5275     * @since 12
5276     */
5277    /**
5278     * Adds all the elements of an array separated by the specified separator string.
5279     * @param { string } [separator] - A string used to separate one element of an array from the next in the
5280     *     resulting String. If omitted, the array elements are separated with a comma.
5281     * @returns { string } A string with all typed array elements joined.
5282     *     If array.length is 0, the empty string is returned.
5283     * @throws { BusinessError } 401 - Parameter error.
5284     * @throws { BusinessError } 10200011 - The join method cannot be bound.
5285     * @throws { BusinessError } 10200201 - Concurrent modification error.
5286     * @syscap SystemCapability.Utils.Lang
5287     * @crossplatform
5288     * @atomicservice
5289     * @since 18
5290     */
5291    join(separator?: string): string;
5292    /**
5293     * Calls a defined callback function on each element of an array, and returns an array that
5294     * contains the results.
5295     *
5296     * @param { TypedArrayMapCallback<number, Uint8Array> } callbackFn - A function that
5297     *     accepts up to three arguments.
5298     *     The map method calls the callbackfn function one time for each element in the array.
5299     * @returns { Uint8Array } The array itself.
5300     * @throws { BusinessError } 401 - Parameter error.
5301     * @throws { BusinessError } 10200011 - The map method cannot be bound.
5302     * @throws { BusinessError } 10200201 - Concurrent modification error.
5303     * @syscap SystemCapability.Utils.Lang
5304     * @atomicservice
5305     * @since 12
5306     */
5307    /**
5308     * Calls a defined callback function on each element of an array, and returns an array that
5309     * contains the results.
5310     *
5311     * @param { TypedArrayMapCallback<number, Uint8Array> } callbackFn - A function that
5312     *     accepts up to three arguments.
5313     *     The map method calls the callbackfn function one time for each element in the array.
5314     * @returns { Uint8Array } The array itself.
5315     * @throws { BusinessError } 401 - Parameter error.
5316     * @throws { BusinessError } 10200011 - The map method cannot be bound.
5317     * @throws { BusinessError } 10200201 - Concurrent modification error.
5318     * @syscap SystemCapability.Utils.Lang
5319     * @crossplatform
5320     * @atomicservice
5321     * @since 18
5322     */
5323    map(callbackFn: TypedArrayMapCallback<number, Uint8Array>): Uint8Array;
5324    /**
5325     * Calls the specified callback function for all the elements in an array. The return value of
5326     * the callback function is the accumulated result, and is provided as an argument in the next
5327     * call to the callback function.
5328     *
5329     * @param { TypedArrayReduceCallback<number, number, Uint8Array> } callbackFn - A function that
5330     *     accepts up to four arguments.
5331     *     The reduce method calls the callbackfn function one time for each element in the array.
5332     * @returns { number } The value that results from running the "reducer" callback function to
5333     *     completion over the entire typed array.
5334     * @throws { BusinessError } 401 - Parameter error.
5335     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
5336     * @throws { BusinessError } 10200201 - Concurrent modification error.
5337     * @syscap SystemCapability.Utils.Lang
5338     * @atomicservice
5339     * @since 12
5340     */
5341    /**
5342     * Calls the specified callback function for all the elements in an array. The return value of
5343     * the callback function is the accumulated result, and is provided as an argument in the next
5344     * call to the callback function.
5345     *
5346     * @param { TypedArrayReduceCallback<number, number, Uint8Array> } callbackFn - A function that
5347     *     accepts up to four arguments.
5348     *     The reduce method calls the callbackfn function one time for each element in the array.
5349     * @returns { number } The value that results from running the "reducer" callback function to
5350     *     completion over the entire typed array.
5351     * @throws { BusinessError } 401 - Parameter error.
5352     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
5353     * @throws { BusinessError } 10200201 - Concurrent modification error.
5354     * @syscap SystemCapability.Utils.Lang
5355     * @crossplatform
5356     * @atomicservice
5357     * @since 18
5358     */
5359    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint8Array>): number;
5360    /**
5361     * Calls the specified callback function for all the elements in an array. The return value of
5362     * the callback function is the accumulated result, and is provided as an argument in the next
5363     * call to the callback function.
5364     *
5365     * @param { TypedArrayReduceCallback<number, number, Uint8Array> } callbackFn - A function that
5366     *     accepts up to four arguments.
5367     *     The reduce method calls the callbackfn function one time for each element in the array.
5368     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
5369     *     the accumulation. The first call to the callbackfn function provides this value as an argument
5370     *     instead of an array value.
5371     * @returns { number } The value that results from running the "reducer" callback function to
5372     *     completion over the entire typed array.
5373     * @throws { BusinessError } 401 - Parameter error.
5374     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
5375     * @throws { BusinessError } 10200201 - Concurrent modification error.
5376     * @syscap SystemCapability.Utils.Lang
5377     * @atomicservice
5378     * @since 12
5379     */
5380    /**
5381     * Calls the specified callback function for all the elements in an array. The return value of
5382     * the callback function is the accumulated result, and is provided as an argument in the next
5383     * call to the callback function.
5384     *
5385     * @param { TypedArrayReduceCallback<number, number, Uint8Array> } callbackFn - A function that
5386     *     accepts up to four arguments.
5387     *     The reduce method calls the callbackfn function one time for each element in the array.
5388     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
5389     *     the accumulation. The first call to the callbackfn function provides this value as an argument
5390     *     instead of an array value.
5391     * @returns { number } The value that results from running the "reducer" callback function to
5392     *     completion over the entire typed array.
5393     * @throws { BusinessError } 401 - Parameter error.
5394     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
5395     * @throws { BusinessError } 10200201 - Concurrent modification error.
5396     * @syscap SystemCapability.Utils.Lang
5397     * @crossplatform
5398     * @atomicservice
5399     * @since 18
5400     */
5401    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint8Array>, initialValue: number): number;
5402    /**
5403     * Calls the specified callback function for all the elements in an array. The return value of
5404     * the callback function is the accumulated result, and is provided as an argument in the next
5405     * call to the callback function.
5406     *
5407     * @param { TypedArrayReduceCallback<U, number, Uint8Array> } callbackFn - A function that
5408     *     accepts up to four arguments.
5409     *     The reduce method calls the callbackfn function one time for each element in the array.
5410     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
5411     *     the accumulation. The first call to the callbackfn function provides this value as an argument
5412     *     instead of an array value.
5413     * @returns { U } The value that results from running the "reducer" callback function to
5414     *     completion over the entire typed array.
5415     * @throws { BusinessError } 401 - Parameter error.
5416     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
5417     * @throws { BusinessError } 10200201 - Concurrent modification error.
5418     * @syscap SystemCapability.Utils.Lang
5419     * @atomicservice
5420     * @since 12
5421     */
5422    /**
5423     * Calls the specified callback function for all the elements in an array. The return value of
5424     * the callback function is the accumulated result, and is provided as an argument in the next
5425     * call to the callback function.
5426     *
5427     * @param { TypedArrayReduceCallback<U, number, Uint8Array> } callbackFn - A function that
5428     *     accepts up to four arguments.
5429     *     The reduce method calls the callbackfn function one time for each element in the array.
5430     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
5431     *     the accumulation. The first call to the callbackfn function provides this value as an argument
5432     *     instead of an array value.
5433     * @returns { U } The value that results from running the "reducer" callback function to
5434     *     completion over the entire typed array.
5435     * @throws { BusinessError } 401 - Parameter error.
5436     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
5437     * @throws { BusinessError } 10200201 - Concurrent modification error.
5438     * @syscap SystemCapability.Utils.Lang
5439     * @crossplatform
5440     * @atomicservice
5441     * @since 18
5442     */
5443    reduce<U>(callbackFn: TypedArrayReduceCallback<U, number, Uint8Array>, initialValue: U): U;
5444    /**
5445     * Reverses the elements in an Array.
5446     *
5447     * @returns { Uint8Array } The reference to the original typed array, now reversed.
5448     *     <br>Note that the typed array is reversed in place, and no copy is made.
5449     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
5450     * @throws { BusinessError } 10200201 - Concurrent modification error.
5451     * @syscap SystemCapability.Utils.Lang
5452     * @atomicservice
5453     * @since 12
5454     */
5455    /**
5456     * Reverses the elements in an Array.
5457     *
5458     * @returns { Uint8Array } The reference to the original typed array, now reversed.
5459     *     <br>Note that the typed array is reversed in place, and no copy is made.
5460     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
5461     * @throws { BusinessError } 10200201 - Concurrent modification error.
5462     * @syscap SystemCapability.Utils.Lang
5463     * @crossplatform
5464     * @atomicservice
5465     * @since 18
5466     */
5467    reverse(): Uint8Array;
5468    /**
5469     * Sets a value or an array of values.
5470     *
5471     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
5472     * @param { number } [offset] - The index in the current array at which the values are to be written.
5473     * @throws { BusinessError } 401 - Parameter error.
5474     * @throws { BusinessError } 10200011 - The set method cannot be bound.
5475     * @throws { BusinessError } 10200201 - Concurrent modification error.
5476     * @syscap SystemCapability.Utils.Lang
5477     * @atomicservice
5478     * @since 12
5479     */
5480    /**
5481     * Sets a value or an array of values.
5482     *
5483     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
5484     * @param { number } [offset] - The index in the current array at which the values are to be written.
5485     * @throws { BusinessError } 401 - Parameter error.
5486     * @throws { BusinessError } 10200011 - The set method cannot be bound.
5487     * @throws { BusinessError } 10200201 - Concurrent modification error.
5488     * @syscap SystemCapability.Utils.Lang
5489     * @crossplatform
5490     * @atomicservice
5491     * @since 18
5492     */
5493    set(array: ArrayLike<number>, offset?: number): void;
5494    /**
5495     * Returns a section of an array.
5496     *
5497     * @param { number } [start] - The beginning of the specified portion of the array.
5498     * @param { number } [end] - The end of the specified portion of the array.
5499     *     This is exclusive of the element at the index 'end'.
5500     * @returns { Uint8Array } A new typed array containing the extracted elements.
5501     * @throws { BusinessError } 401 - Parameter error.
5502     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
5503     * @throws { BusinessError } 10200201 - Concurrent modification error.
5504     * @syscap SystemCapability.Utils.Lang
5505     * @atomicservice
5506     * @since 12
5507     */
5508    /**
5509     * Returns a section of an array.
5510     *
5511     * @param { number } [start] - The beginning of the specified portion of the array.
5512     * @param { number } [end] - The end of the specified portion of the array.
5513     *     This is exclusive of the element at the index 'end'.
5514     * @returns { Uint8Array } A new typed array containing the extracted elements.
5515     * @throws { BusinessError } 401 - Parameter error.
5516     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
5517     * @throws { BusinessError } 10200201 - Concurrent modification error.
5518     * @syscap SystemCapability.Utils.Lang
5519     * @crossplatform
5520     * @atomicservice
5521     * @since 18
5522     */
5523    slice(start?: number, end?: number): Uint8Array;
5524    /**
5525     * Determines whether the specified callback function returns true for any element of an array.
5526     *
5527     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - A function that accepts up to three arguments.
5528     *     The some method calls the predicate function for each element in the array until
5529     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
5530     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
5531     *     in which case true is immediately returned.
5532     * @throws { BusinessError } 401 - Parameter error.
5533     * @throws { BusinessError } 10200011 - The some method cannot be bound.
5534     * @throws { BusinessError } 10200201 - Concurrent modification error.
5535     * @syscap SystemCapability.Utils.Lang
5536     * @atomicservice
5537     * @since 12
5538     */
5539    /**
5540     * Determines whether the specified callback function returns true for any element of an array.
5541     *
5542     * @param { TypedArrayPredicateFn<number, Uint8Array> } predicate - A function that accepts up to three arguments.
5543     *     The some method calls the predicate function for each element in the array until
5544     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
5545     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
5546     *     in which case true is immediately returned.
5547     * @throws { BusinessError } 401 - Parameter error.
5548     * @throws { BusinessError } 10200011 - The some method cannot be bound.
5549     * @throws { BusinessError } 10200201 - Concurrent modification error.
5550     * @syscap SystemCapability.Utils.Lang
5551     * @crossplatform
5552     * @atomicservice
5553     * @since 18
5554     */
5555    some(predicate: TypedArrayPredicateFn<number, Uint8Array>): boolean;
5556    /**
5557     * Sorts an array.
5558     *
5559     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
5560     *     It is expected to return a negative value if first argument is less than second argument,
5561     *     zero if they're equal and a positive value otherwise.
5562     *     If omitted, the elements are sorted in ascending, ASCII character order.
5563     * @returns { Uint8Array } The reference to the original typed array, now sorted.
5564     *     Note that the typed array is sorted in place and no copy is made.
5565     * @throws { BusinessError } 401 - Parameter error.
5566     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
5567     * @throws { BusinessError } 10200201 - Concurrent modification error.
5568     * @syscap SystemCapability.Utils.Lang
5569     * @atomicservice
5570     * @since 12
5571     */
5572    /**
5573     * Sorts an array.
5574     *
5575     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
5576     *     It is expected to return a negative value if first argument is less than second argument,
5577     *     zero if they're equal and a positive value otherwise.
5578     *     If omitted, the elements are sorted in ascending, ASCII character order.
5579     * @returns { Uint8Array } The reference to the original typed array, now sorted.
5580     *     Note that the typed array is sorted in place and no copy is made.
5581     * @throws { BusinessError } 401 - Parameter error.
5582     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
5583     * @throws { BusinessError } 10200201 - Concurrent modification error.
5584     * @syscap SystemCapability.Utils.Lang
5585     * @crossplatform
5586     * @atomicservice
5587     * @since 18
5588     */
5589    sort(compareFn?: TypedArrayCompareFn<number>): Uint8Array;
5590    /**
5591     * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
5592     * at begin, inclusive, up to end, exclusive.
5593     *
5594     * @param { number } [begin] - The index of the beginning of the array.
5595     * @param { number } [end] - The index of the end of the array.
5596     * @returns { Uint8Array } A new Uint8Array object.
5597     * @throws { BusinessError } 401 - Parameter error.
5598     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
5599     * @throws { BusinessError } 10200201 - Concurrent modification error.
5600     * @syscap SystemCapability.Utils.Lang
5601     * @atomicservice
5602     * @since 12
5603     */
5604    /**
5605     * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
5606     * at begin, inclusive, up to end, exclusive.
5607     *
5608     * @param { number } [begin] - The index of the beginning of the array.
5609     * @param { number } [end] - The index of the end of the array.
5610     * @returns { Uint8Array } A new Uint8Array object.
5611     * @throws { BusinessError } 401 - Parameter error.
5612     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
5613     * @throws { BusinessError } 10200201 - Concurrent modification error.
5614     * @syscap SystemCapability.Utils.Lang
5615     * @crossplatform
5616     * @atomicservice
5617     * @since 18
5618     */
5619    subarray(begin?: number, end?: number): Uint8Array;
5620    /**
5621     * Returns the item located at the specified index.
5622     *
5623     * @param { number } index - The zero-based index of the desired code unit.<br/>
5624     *     A negative index will count back from the last item.
5625     * @returns { number | undefined } The element in the array matching the given index.<br/>
5626     *     Always returns undefined if index < -array.length or
5627     *     index >= array.length without attempting to access the corresponding property.
5628     * @throws { BusinessError } 401 - Parameter error.
5629     * @throws { BusinessError } 10200011 - The at method cannot be bound.
5630     * @throws { BusinessError } 10200201 - Concurrent modification error.
5631     * @syscap SystemCapability.Utils.Lang
5632     * @atomicservice
5633     * @since 12
5634     */
5635    /**
5636     * Returns the item located at the specified index.
5637     *
5638     * @param { number } index - The zero-based index of the desired code unit.<br/>
5639     *     A negative index will count back from the last item.
5640     * @returns { number | undefined } The element in the array matching the given index.<br/>
5641     *     Always returns undefined if index < -array.length or
5642     *     index >= array.length without attempting to access the corresponding property.
5643     * @throws { BusinessError } 401 - Parameter error.
5644     * @throws { BusinessError } 10200011 - The at method cannot be bound.
5645     * @throws { BusinessError } 10200201 - Concurrent modification error.
5646     * @syscap SystemCapability.Utils.Lang
5647     * @crossplatform
5648     * @atomicservice
5649     * @since 18
5650     */
5651    at(index: number): number | undefined;
5652    /**
5653     * Returns an iterator that iterates over numbers.
5654     *
5655     * @returns { IterableIterator<number> } Iterator object that yields numbers.
5656     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
5657     * @syscap SystemCapability.Utils.Lang
5658     * @atomicservice
5659     * @since 12
5660     */
5661    /**
5662     * Returns an iterator that iterates over numbers.
5663     *
5664     * @returns { IterableIterator<number> } Iterator object that yields numbers.
5665     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
5666     * @syscap SystemCapability.Utils.Lang
5667     * @crossplatform
5668     * @atomicservice
5669     * @since 18
5670     */
5671    [Symbol.iterator](): IterableIterator<number>;
5672    /**
5673     * Returns an iterable of key, value pairs for every entry in the array
5674     *
5675     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
5676     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
5677     * @throws { BusinessError } 10200201 - Concurrent modification error.
5678     * @syscap SystemCapability.Utils.Lang
5679     * @atomicservice
5680     * @since 12
5681     */
5682    /**
5683     * Returns an iterable of key, value pairs for every entry in the array
5684     *
5685     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
5686     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
5687     * @throws { BusinessError } 10200201 - Concurrent modification error.
5688     * @syscap SystemCapability.Utils.Lang
5689     * @crossplatform
5690     * @atomicservice
5691     * @since 18
5692     */
5693    entries(): IterableIterator<[number, number]>;
5694    /**
5695     * Returns an iterable of keys in the array
5696     *
5697     * @returns { IterableIterator<number> } A new iterable iterator object.
5698     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
5699     * @throws { BusinessError } 10200201 - Concurrent modification error.
5700     * @syscap SystemCapability.Utils.Lang
5701     * @atomicservice
5702     * @since 12
5703     */
5704    /**
5705     * Returns an iterable of keys in the array
5706     *
5707     * @returns { IterableIterator<number> } A new iterable iterator object.
5708     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
5709     * @throws { BusinessError } 10200201 - Concurrent modification error.
5710     * @syscap SystemCapability.Utils.Lang
5711     * @crossplatform
5712     * @atomicservice
5713     * @since 18
5714     */
5715    keys(): IterableIterator<number>;
5716    /**
5717     * Returns an iterable of values in the array
5718     *
5719     * @returns { IterableIterator<number> } A new iterable iterator object.
5720     * @throws { BusinessError } 10200011 - The values method cannot be bound.
5721     * @throws { BusinessError } 10200201 - Concurrent modification error.
5722     * @syscap SystemCapability.Utils.Lang
5723     * @atomicservice
5724     * @since 12
5725     */
5726    /**
5727     * Returns an iterable of values in the array
5728     *
5729     * @returns { IterableIterator<number> } A new iterable iterator object.
5730     * @throws { BusinessError } 10200011 - The values method cannot be bound.
5731     * @throws { BusinessError } 10200201 - Concurrent modification error.
5732     * @syscap SystemCapability.Utils.Lang
5733     * @crossplatform
5734     * @atomicservice
5735     * @since 18
5736     */
5737    values(): IterableIterator<number>;
5738    /**
5739     * Determines whether an array includes a certain element, returning true or false as appropriate.
5740     *
5741     * @param { number } searchElement - The element to search for.
5742     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
5743     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
5744     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
5745     * @throws { BusinessError } 401 - Parameter error.
5746     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
5747     * @throws { BusinessError } 10200201 - Concurrent modification error.
5748     * @syscap SystemCapability.Utils.Lang
5749     * @atomicservice
5750     * @since 12
5751     */
5752    /**
5753     * Determines whether an array includes a certain element, returning true or false as appropriate.
5754     *
5755     * @param { number } searchElement - The element to search for.
5756     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
5757     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
5758     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
5759     * @throws { BusinessError } 401 - Parameter error.
5760     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
5761     * @throws { BusinessError } 10200201 - Concurrent modification error.
5762     * @syscap SystemCapability.Utils.Lang
5763     * @crossplatform
5764     * @atomicservice
5765     * @since 18
5766     */
5767    includes(searchElement: number, fromIndex?: number): boolean;
5768    /**
5769     * Returns the item at that index.
5770     *
5771     * @syscap SystemCapability.Utils.Lang
5772     * @atomicservice
5773     * @since 12
5774     */
5775    /**
5776     * Returns the item at that index.
5777     *
5778     * @syscap SystemCapability.Utils.Lang
5779     * @crossplatform
5780     * @atomicservice
5781     * @since 18
5782     */
5783    [index: number]: number;
5784    /**
5785     * Find the last occurrence of a specified element in an Uint8Array.
5786     *
5787     * @param { number } searchElement - Element to search for in the Uint8Array..
5788     * @param { number } fromIndex - The index at which to start the search. If provided:
5789     *	   <br>If this index is negative, it is treated as Uint8Array.length + fromIndex.
5790     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
5791     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
5792     * @throws { BusinessError } 10200201 - Concurrent modification error.
5793     * @syscap SystemCapability.Utils.Lang
5794     * @atomicservice
5795     * @since 18
5796     */
5797    lastIndexOf(searchElement: number, fromIndex?: number): number;
5798    /**
5799     * Reduce elements in an Uint8Array from right to left.
5800     *
5801     * @param { TypedArrayReduceCallback<U, number, Uint8Array> } callbackFn - A function that is called for
5802     * each element in the Uint8Array.
5803     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
5804     *     <br>If no initial value is provided, the last element of the Uint8Array will be used,
5805     *     <br>and the callback will start with the second-to-last element.
5806     * @returns { U } Returns the single value that results from the reduction.
5807     * @throws { BusinessError } 401 - Parameter error. Possible causes:
5808     *                                    1.Mandatory parameters are left unspecified.
5809     *                                    2.Incorrect parameter types.
5810     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
5811     * @throws { BusinessError } 10200201 - Concurrent modification error.
5812     * @syscap SystemCapability.Utils.Lang
5813     * @atomicservice
5814     * @since 18
5815     */
5816    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Uint8Array>, initialValue: U): U;
5817    /**
5818     * Reduce elements in an Uint8Array from right to left.
5819     *
5820     * @param { TypedArrayReduceCallback<number, number, Uint8Array> } callbackFn - A function that is called for
5821     * each element in the Uint8Array.
5822     * @returns { number } Returns the single value that results from the reduction.
5823     * @throws { BusinessError } 401 - Parameter error. Possible causes:
5824     *                                    1.Mandatory parameters are left unspecified.
5825     *                                    2.Incorrect parameter types.
5826     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
5827     * @throws { BusinessError } 10200201 - Concurrent modification error.
5828     * @syscap SystemCapability.Utils.Lang
5829     * @atomicservice
5830     * @since 18
5831     */
5832    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Uint8Array>): number;
5833    /**
5834     * Convert an Uint8Array to a string.
5835     *
5836     * @returns { string } Returns a string representing the specified Uint8Array and its elements,
5837     * separated by commas.
5838     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
5839     * @throws { BusinessError } 10200201 - Concurrent modification error.
5840     * @syscap SystemCapability.Utils.Lang
5841     * @atomicservice
5842     * @since 18
5843     */
5844    toString(): string;
5845    /**
5846     * Convert an Uint8Array to a string, The elements are converted to string using their toLocaleString methods.
5847     *
5848     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
5849     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
5850     * @throws { BusinessError } 10200201 - Concurrent modification error.
5851     * @syscap SystemCapability.Utils.Lang
5852     * @atomicservice
5853     * @since 18
5854     */
5855    toLocaleString(): string;
5856    /**
5857     * Create an Uint8Array containing these parameters.
5858     *
5859     * @param { number[] } items - A variable number of arguments that will be used as the elements of the Uint8Array.
5860     * @returns { Uint8Array } Returns a new Uint8Array instance containing the specified elements.
5861     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
5862     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
5863     * @static
5864     * @syscap SystemCapability.Utils.Lang
5865     * @atomicservice
5866     * @since 18
5867     */
5868    static of(...items: number[]): Uint8Array;
5869 }
5870
5871  /**
5872   * A typed array of 16-bit integer values. The contents are initialized to 0.
5873   * If multiple threads access a Int16Array instance concurrently,
5874   * and at least one of the threads modifies the array structurally,
5875   * it must be synchronized externally.
5876   *
5877   * @syscap SystemCapability.Utils.Lang
5878   * @atomicservice
5879   * @since 12
5880   */
5881  /**
5882   * A typed array of 16-bit integer values. The contents are initialized to 0.
5883   * If multiple threads access a Int16Array instance concurrently,
5884   * and at least one of the threads modifies the array structurally,
5885   * it must be synchronized externally.
5886   *
5887   * @syscap SystemCapability.Utils.Lang
5888   * @crossplatform
5889   * @atomicservice
5890   * @since 18
5891   */
5892  @Sendable
5893  class Int16Array {
5894    /**
5895     * Number of bytes occupied by each element in the ArkTS array.
5896     *
5897     * @type { number }
5898     * @readonly
5899     * @static
5900     * @syscap SystemCapability.Utils.Lang
5901     * @atomicservice
5902     * @since 12
5903     */
5904    /**
5905     * Number of bytes occupied by each element in the ArkTS array.
5906     *
5907     * @type { number }
5908     * @readonly
5909     * @static
5910     * @syscap SystemCapability.Utils.Lang
5911     * @crossplatform
5912     * @atomicservice
5913     * @since 18
5914     */
5915    static readonly BYTES_PER_ELEMENT: number;
5916    /**
5917     * Bottom-layer buffer used by an ArkTS array.
5918     *
5919     * @type { ArrayBuffer }
5920     * @readonly
5921     * @syscap SystemCapability.Utils.Lang
5922     * @atomicservice
5923     * @since 12
5924     */
5925    /**
5926     * Bottom-layer buffer used by an ArkTS array.
5927     *
5928     * @type { ArrayBuffer }
5929     * @readonly
5930     * @syscap SystemCapability.Utils.Lang
5931     * @crossplatform
5932     * @atomicservice
5933     * @since 18
5934     */
5935    readonly buffer: ArrayBuffer;
5936    /**
5937     * Number of bytes occupied by the ArkTS array.
5938     *
5939     * @type { number }
5940     * @readonly
5941     * @syscap SystemCapability.Utils.Lang
5942     * @atomicservice
5943     * @since 12
5944     */
5945    /**
5946     * Number of bytes occupied by the ArkTS array.
5947     *
5948     * @type { number }
5949     * @readonly
5950     * @syscap SystemCapability.Utils.Lang
5951     * @crossplatform
5952     * @atomicservice
5953     * @since 18
5954     */
5955    readonly byteLength: number;
5956    /**
5957     * Offset between the ArkTS array and the start position of the ArrayBuffer.
5958     *
5959     * @type { number }
5960     * @readonly
5961     * @syscap SystemCapability.Utils.Lang
5962     * @atomicservice
5963     * @since 12
5964     */
5965    /**
5966     * Offset between the ArkTS array and the start position of the ArrayBuffer.
5967     *
5968     * @type { number }
5969     * @readonly
5970     * @syscap SystemCapability.Utils.Lang
5971     * @crossplatform
5972     * @atomicservice
5973     * @since 18
5974     */
5975    readonly byteOffset: number;
5976    /**
5977     * Number of elements in the ArkTS array.
5978     *
5979     * @type { number }
5980     * @readonly
5981     * @syscap SystemCapability.Utils.Lang
5982     * @atomicservice
5983     * @since 12
5984     */
5985    /**
5986     * Number of elements in the ArkTS array.
5987     *
5988     * @type { number }
5989     * @readonly
5990     * @syscap SystemCapability.Utils.Lang
5991     * @crossplatform
5992     * @atomicservice
5993     * @since 18
5994     */
5995    readonly length: number;
5996    /**
5997     * A constructor used to create an empty ArkTS Int16Array.
5998     *
5999     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6000     * @syscap SystemCapability.Utils.Lang
6001     * @atomicservice
6002     * @since 12
6003     */
6004    /**
6005     * A constructor used to create an empty ArkTS Int16Array.
6006     *
6007     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6008     * @syscap SystemCapability.Utils.Lang
6009     * @crossplatform
6010     * @atomicservice
6011     * @since 18
6012     */
6013    constructor();
6014    /**
6015     * A constructor used to create an ArkTS Int16Array of a given length.
6016     *
6017     * @param { number } length - Length of the ArkTS Int16Array.
6018     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6019     * @throws { BusinessError } 401 - Parameter error.
6020     * @syscap SystemCapability.Utils.Lang
6021     * @atomicservice
6022     * @since 12
6023     */
6024    /**
6025     * A constructor used to create an ArkTS Int16Array of a given length.
6026     *
6027     * @param { number } length - Length of the ArkTS Int16Array.
6028     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6029     * @throws { BusinessError } 401 - Parameter error.
6030     * @syscap SystemCapability.Utils.Lang
6031     * @crossplatform
6032     * @atomicservice
6033     * @since 18
6034     */
6035    constructor(length: number);
6036    /**
6037     * A constructor used to create an Int16Array.
6038     *
6039     * @param { Iterable<number> } elements - An iterable object to convert to an Int16Array.
6040     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6041     * @throws { BusinessError } 401 - Parameter error.
6042     * @syscap SystemCapability.Utils.Lang
6043     * @atomicservice
6044     * @since 12
6045     */
6046    /**
6047     * A constructor used to create an Int16Array.
6048     *
6049     * @param { Iterable<number> } elements - An iterable object to convert to an Int16Array.
6050     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6051     * @throws { BusinessError } 401 - Parameter error.
6052     * @syscap SystemCapability.Utils.Lang
6053     * @crossplatform
6054     * @atomicservice
6055     * @since 18
6056     */
6057    constructor(elements: Iterable<number>);
6058    /**
6059     * A constructor that creates an ArkTS Int16Array from an array-like object or ArkTS ArrayBuffer.
6060     *
6061     * @param { ArrayLike<number> | ArrayBuffer } array - Object used to construct the ArkTS Int16Array. When the
6062     *      parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4.
6063     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6064     * @throws { BusinessError } 401 - Parameter error.
6065     * @syscap SystemCapability.Utils.Lang
6066     * @atomicservice
6067     * @since 12
6068     */
6069    /**
6070     * A constructor that creates an ArkTS Int16Array from an array-like object or ArkTS ArrayBuffer.
6071     *
6072     * @param { ArrayLike<number> | ArrayBuffer } array - Object used to construct the ArkTS Int16Array. When the
6073     *      parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4.
6074     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6075     * @throws { BusinessError } 401 - Parameter error.
6076     * @syscap SystemCapability.Utils.Lang
6077     * @crossplatform
6078     * @atomicservice
6079     * @since 18
6080     */
6081    constructor(array: ArrayLike<number> | ArrayBuffer);
6082    /**
6083     * A constructor that creates an ArkTS Int16Array from an ArrayBuffer.
6084     *
6085     * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Int16Array.
6086     *     The number of bytes occupied by the buffer must be an integer multiple of 4.
6087     * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0.
6088     * @param { number } [length] - Length of the ArkTS Int16Array. The default value is 0.
6089     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6090     * @throws { BusinessError } 401 - Parameter error.
6091     * @syscap SystemCapability.Utils.Lang
6092     * @atomicservice
6093     * @since 12
6094     */
6095    /**
6096     * A constructor that creates an ArkTS Int16Array from an ArrayBuffer.
6097     *
6098     * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Int16Array.
6099     *     The number of bytes occupied by the buffer must be an integer multiple of 4.
6100     * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0.
6101     * @param { number } [length] - Length of the ArkTS Int16Array. The default value is 0.
6102     * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked.
6103     * @throws { BusinessError } 401 - Parameter error.
6104     * @syscap SystemCapability.Utils.Lang
6105     * @crossplatform
6106     * @atomicservice
6107     * @since 18
6108     */
6109    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
6110    /**
6111     * Creates an ArkTS Int16Array from an array-like or iterator object.
6112     *
6113     * @param { ArrayLike<number> } arrayLike - Array-like object used to construct the ArkTS Int16Array.
6114     * @returns { Int16Array } New ArkTS Int16Array generated.
6115     * @throws { BusinessError } 401 - Parameter error.
6116     * @static
6117     * @syscap SystemCapability.Utils.Lang
6118     * @atomicservice
6119     * @since 12
6120     */
6121    /**
6122     * Creates an ArkTS Int16Array from an array-like or iterator object.
6123     *
6124     * @param { ArrayLike<number> } arrayLike - Array-like object used to construct the ArkTS Int16Array.
6125     * @returns { Int16Array } New ArkTS Int16Array generated.
6126     * @throws { BusinessError } 401 - Parameter error.
6127     * @static
6128     * @syscap SystemCapability.Utils.Lang
6129     * @crossplatform
6130     * @atomicservice
6131     * @since 18
6132     */
6133    static from(arrayLike: ArrayLike<number>): Int16Array;
6134
6135    /**
6136     * Creates an ArkTS Int16Array from an array-like object.
6137     *
6138     * @param { ArrayLike<T> } arrayLike - Array-like object used to construct the ArkTS Int16Array.
6139     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
6140     * @returns { Int16Array } New ArkTS Int16Array generated.
6141     * @throws { BusinessError } 401 - Parameter error.
6142     * @static
6143     * @syscap SystemCapability.Utils.Lang
6144     * @atomicservice
6145     * @since 12
6146     */
6147    /**
6148     * Creates an ArkTS Int16Array from an array-like object.
6149     *
6150     * @param { ArrayLike<T> } arrayLike - Array-like object used to construct the ArkTS Int16Array.
6151     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
6152     * @returns { Int16Array } New ArkTS Int16Array generated.
6153     * @throws { BusinessError } 401 - Parameter error.
6154     * @static
6155     * @syscap SystemCapability.Utils.Lang
6156     * @crossplatform
6157     * @atomicservice
6158     * @since 18
6159     */
6160    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Int16Array;
6161    /**
6162     * Creates an ArkTS Int16Array from an iterator object.
6163     *
6164     * @param { Iterable<number> } arrayLike - Iterator object used to construct the ArkTS Int16Array.
6165     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - Mapping function. If no value is passed in,
6166     *     no special processing is conducted on the elements.
6167     * @returns { Int16Array } A new Int16Array instance
6168     * @throws { BusinessError } 401 - Parameter error.
6169     * @static
6170     * @syscap SystemCapability.Utils.Lang
6171     * @atomicservice
6172     * @since 12
6173     */
6174    /**
6175     * Creates an ArkTS Int16Array from an iterator object.
6176     *
6177     * @param { Iterable<number> } arrayLike - Iterator object used to construct the ArkTS Int16Array.
6178     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - Mapping function. If no value is passed in,
6179     *     no special processing is conducted on the elements.
6180     * @returns { Int16Array } A new Int16Array instance
6181     * @throws { BusinessError } 401 - Parameter error.
6182     * @static
6183     * @syscap SystemCapability.Utils.Lang
6184     * @crossplatform
6185     * @atomicservice
6186     * @since 18
6187     */
6188    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Int16Array;
6189    /**
6190     * Copies elements within a given range from this ArkTS Int16Array to another position in sequence.
6191     *
6192     * @param { number } target - If target is negative, it is treated as length+target where length is the
6193     *     length of the array.
6194     * @param { number } start - Start index of the range.
6195     *     If a negative number is passed in, it refers to the index of start + Int16Array.length.
6196     * @param { number } [end] - End index of the range.
6197     *     If a negative number is passed in, it refers to the index of end + Int16Array.length.
6198     *     The default value is the length of the ArkTS Int16Array.
6199     * @returns { Int16Array } ArkTS Int16Array after being modified.
6200     * @throws { BusinessError } 401 - Parameter error.
6201     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
6202     * @throws { BusinessError } 10200201 - Concurrent modification error.
6203     * @syscap SystemCapability.Utils.Lang
6204     * @atomicservice
6205     * @since 12
6206     */
6207    /**
6208     * Copies elements within a given range from this ArkTS Int16Array to another position in sequence.
6209     *
6210     * @param { number } target - If target is negative, it is treated as length+target where length is the
6211     *     length of the array.
6212     * @param { number } start - Start index of the range.
6213     *     If a negative number is passed in, it refers to the index of start + Int16Array.length.
6214     * @param { number } [end] - End index of the range.
6215     *     If a negative number is passed in, it refers to the index of end + Int16Array.length.
6216     *     The default value is the length of the ArkTS Int16Array.
6217     * @returns { Int16Array } ArkTS Int16Array after being modified.
6218     * @throws { BusinessError } 401 - Parameter error.
6219     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
6220     * @throws { BusinessError } 10200201 - Concurrent modification error.
6221     * @syscap SystemCapability.Utils.Lang
6222     * @crossplatform
6223     * @atomicservice
6224     * @since 18
6225     */
6226    copyWithin(target: number, start: number, end?: number): Int16Array;
6227    /**
6228     * Checks whether all elements in this ArkTS Int16Array meet a given condition.
6229     *
6230     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - A function that accepts up to three arguments.
6231     *     The every method calls the predicate function for each element in the array until
6232     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
6233     * @returns { boolean } Check result. The value true is returned if all elements meet the given condition;
6234     *     otherwise, false is returned.
6235     * @throws { BusinessError } 401 - Parameter error.
6236     * @throws { BusinessError } 10200011 - The every method cannot be bound.
6237     * @throws { BusinessError } 10200201 - Concurrent modification error.
6238     * @syscap SystemCapability.Utils.Lang
6239     * @atomicservice
6240     * @since 12
6241     */
6242    /**
6243     * Checks whether all elements in this ArkTS Int16Array meet a given condition.
6244     *
6245     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - A function that accepts up to three arguments.
6246     *     The every method calls the predicate function for each element in the array until
6247     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
6248     * @returns { boolean } Check result. The value true is returned if all elements meet the given condition;
6249     *     otherwise, false is returned.
6250     * @throws { BusinessError } 401 - Parameter error.
6251     * @throws { BusinessError } 10200011 - The every method cannot be bound.
6252     * @throws { BusinessError } 10200201 - Concurrent modification error.
6253     * @syscap SystemCapability.Utils.Lang
6254     * @crossplatform
6255     * @atomicservice
6256     * @since 18
6257     */
6258    every(predicate: TypedArrayPredicateFn<number, Int16Array>): boolean;
6259    /**
6260     * Fills all elements in a given range in this ArkTS Int16Array with a value.
6261     *
6262     * @param { number } value - Value to fill in.
6263     * @param { number } [start] - Start index of the range. If a negative number is passed in,
6264     *     it refers to the index of start + Int16Array.length. The default value is 0.
6265     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
6266     *     it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array.
6267     * @returns { Int16Array } Filled ArkTS Int16Array.
6268     * @throws { BusinessError } 401 - Parameter error.
6269     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
6270     * @throws { BusinessError } 10200201 - Concurrent modification error.
6271     * @syscap SystemCapability.Utils.Lang
6272     * @atomicservice
6273     * @since 12
6274     */
6275    /**
6276     * Fills all elements in a given range in this ArkTS Int16Array with a value.
6277     *
6278     * @param { number } value - Value to fill in.
6279     * @param { number } [start] - Start index of the range. If a negative number is passed in,
6280     *     it refers to the index of start + Int16Array.length. The default value is 0.
6281     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
6282     *     it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array.
6283     * @returns { Int16Array } Filled ArkTS Int16Array.
6284     * @throws { BusinessError } 401 - Parameter error.
6285     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
6286     * @throws { BusinessError } 10200201 - Concurrent modification error.
6287     * @syscap SystemCapability.Utils.Lang
6288     * @crossplatform
6289     * @atomicservice
6290     * @since 18
6291     */
6292    fill(value: number, start?: number, end?: number): Int16Array;
6293    /**
6294     * Returns a new ArkTS Int16Array that contains all elements that meet the given condition.
6295     *
6296     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - A function that accepts up to three arguments.
6297     *     The filter method calls the predicate function one time for each element in the array.
6298     * @returns { Int16Array } Filtered ArkTS Int16Array.
6299     * @throws { BusinessError } 401 - Parameter error.
6300     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
6301     * @throws { BusinessError } 10200201 - Concurrent modification error.
6302     * @syscap SystemCapability.Utils.Lang
6303     * @atomicservice
6304     * @since 12
6305     */
6306    /**
6307     * Returns a new ArkTS Int16Array that contains all elements that meet the given condition.
6308     *
6309     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - A function that accepts up to three arguments.
6310     *     The filter method calls the predicate function one time for each element in the array.
6311     * @returns { Int16Array } Filtered ArkTS Int16Array.
6312     * @throws { BusinessError } 401 - Parameter error.
6313     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
6314     * @throws { BusinessError } 10200201 - Concurrent modification error.
6315     * @syscap SystemCapability.Utils.Lang
6316     * @crossplatform
6317     * @atomicservice
6318     * @since 18
6319     */
6320    filter(predicate: TypedArrayPredicateFn<number, Int16Array>): Int16Array;
6321    /**
6322     * Returns the value of the first element that passes a test provided by a callback function.
6323     * If none of the elements pass the test, undefined is returned.
6324     *
6325     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - find calls predicate once for each element of
6326     *     the array, in ascending order, until it finds one where predicate returns true.
6327     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
6328     * @returns { number | undefined } Value of the first element that passes the test.
6329     *     If none of the elements pass the test, undefined is returned.
6330     * @throws { BusinessError } 401 - Parameter error.
6331     * @throws { BusinessError } 10200011 - The find method cannot be bound.
6332     * @throws { BusinessError } 10200201 - Concurrent modification error.
6333     * @syscap SystemCapability.Utils.Lang
6334     * @atomicservice
6335     * @since 12
6336     */
6337    /**
6338     * Returns the value of the first element that passes a test provided by a callback function.
6339     * If none of the elements pass the test, undefined is returned.
6340     *
6341     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - find calls predicate once for each element of
6342     *     the array, in ascending order, until it finds one where predicate returns true.
6343     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
6344     * @returns { number | undefined } Value of the first element that passes the test.
6345     *     If none of the elements pass the test, undefined is returned.
6346     * @throws { BusinessError } 401 - Parameter error.
6347     * @throws { BusinessError } 10200011 - The find method cannot be bound.
6348     * @throws { BusinessError } 10200201 - Concurrent modification error.
6349     * @syscap SystemCapability.Utils.Lang
6350     * @crossplatform
6351     * @atomicservice
6352     * @since 18
6353     */
6354    find(predicate: TypedArrayPredicateFn<number, Int16Array>): number | undefined;
6355    /**
6356     * Returns the index of the first element that passes a test provided by a callback function.
6357     * If none of the elements pass the test, -1 is returned.
6358     *
6359     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - find calls predicate once for each element of
6360     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
6361     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
6362     * @returns { number } Index of the first element that passes the test.
6363     *     If none of the elements pass the test, -1 is returned.
6364     * @throws { BusinessError } 401 - Parameter error.
6365     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
6366     * @throws { BusinessError } 10200201 - Concurrent modification error.
6367     * @syscap SystemCapability.Utils.Lang
6368     * @atomicservice
6369     * @since 12
6370     */
6371    /**
6372     * Returns the index of the first element that passes a test provided by a callback function.
6373     * If none of the elements pass the test, -1 is returned.
6374     *
6375     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - find calls predicate once for each element of
6376     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
6377     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
6378     * @returns { number } Index of the first element that passes the test.
6379     *     If none of the elements pass the test, -1 is returned.
6380     * @throws { BusinessError } 401 - Parameter error.
6381     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
6382     * @throws { BusinessError } 10200201 - Concurrent modification error.
6383     * @syscap SystemCapability.Utils.Lang
6384     * @crossplatform
6385     * @atomicservice
6386     * @since 18
6387     */
6388    findIndex(predicate: TypedArrayPredicateFn<number, Int16Array>): number;
6389    /**
6390     * Calls a callback function for each element in this ArkTS Int16Array.
6391     *
6392     * @param { TypedArrayForEachCallback<number, Int16Array> } callbackFn -  A function that
6393     *     accepts up to three arguments.
6394     *     forEach calls the callbackfn function one time for each element in the array.
6395     * @throws { BusinessError } 401 - Parameter error.
6396     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
6397     * @throws { BusinessError } 10200201 - Concurrent modification error.
6398     * @syscap SystemCapability.Utils.Lang
6399     * @atomicservice
6400     * @since 12
6401     */
6402    /**
6403     * Calls a callback function for each element in this ArkTS Int16Array.
6404     *
6405     * @param { TypedArrayForEachCallback<number, Int16Array> } callbackFn -  A function that
6406     *     accepts up to three arguments.
6407     *     forEach calls the callbackfn function one time for each element in the array.
6408     * @throws { BusinessError } 401 - Parameter error.
6409     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
6410     * @throws { BusinessError } 10200201 - Concurrent modification error.
6411     * @syscap SystemCapability.Utils.Lang
6412     * @crossplatform
6413     * @atomicservice
6414     * @since 18
6415     */
6416    forEach(callbackFn: TypedArrayForEachCallback<number, Int16Array>): void;
6417    /**
6418     * Returns the index of the first occurrence of a value in this ArkTS Int16Array.
6419     * If the value is not found, -1 is returned.
6420     *
6421     * @param { number } searchElement - Value to search for.
6422     * @param { number } [fromIndex] - Index from which the search starts. The default value is 0.
6423     *     If the index is greater than or equal to the length of the ArkTS Int16Array, -1 is returned.
6424     *     If a negative number is passed in, the search starts from the end of the ArkTS Int16Array.
6425     * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned.
6426     * @throws { BusinessError } 401 - Parameter error.
6427     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
6428     * @throws { BusinessError } 10200201 - Concurrent modification error.
6429     * @syscap SystemCapability.Utils.Lang
6430     * @atomicservice
6431     * @since 12
6432     */
6433    /**
6434     * Returns the index of the first occurrence of a value in this ArkTS Int16Array.
6435     * If the value is not found, -1 is returned.
6436     *
6437     * @param { number } searchElement - Value to search for.
6438     * @param { number } [fromIndex] - Index from which the search starts. The default value is 0.
6439     *     If the index is greater than or equal to the length of the ArkTS Int16Array, -1 is returned.
6440     *     If a negative number is passed in, the search starts from the end of the ArkTS Int16Array.
6441     * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned.
6442     * @throws { BusinessError } 401 - Parameter error.
6443     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
6444     * @throws { BusinessError } 10200201 - Concurrent modification error.
6445     * @syscap SystemCapability.Utils.Lang
6446     * @crossplatform
6447     * @atomicservice
6448     * @since 18
6449     */
6450    indexOf(searchElement: number, fromIndex?: number): number;
6451    /**
6452     * Concatenates all elements in this ArkTS Int16Array into a string, with a given separator.
6453     * @param { string } [separator] - Separator to be used.
6454     *     If no value is passed in, a comma (,) is used as the separator.
6455     * @returns { string } String obtained. If the array is empty, an empty string is returned.
6456     * @throws { BusinessError } 401 - Parameter error.
6457     * @throws { BusinessError } 10200011 - The join method cannot be bound.
6458     * @throws { BusinessError } 10200201 - Concurrent modification error.
6459     * @syscap SystemCapability.Utils.Lang
6460     * @atomicservice
6461     * @since 12
6462     */
6463    /**
6464     * Concatenates all elements in this ArkTS Int16Array into a string, with a given separator.
6465     * @param { string } [separator] - Separator to be used.
6466     *     If no value is passed in, a comma (,) is used as the separator.
6467     * @returns { string } String obtained. If the array is empty, an empty string is returned.
6468     * @throws { BusinessError } 401 - Parameter error.
6469     * @throws { BusinessError } 10200011 - The join method cannot be bound.
6470     * @throws { BusinessError } 10200201 - Concurrent modification error.
6471     * @syscap SystemCapability.Utils.Lang
6472     * @crossplatform
6473     * @atomicservice
6474     * @since 18
6475     */
6476    join(separator?: string): string;
6477    /**
6478     * Applies a callback function to each element in this ArkTS Int16Array
6479     * and uses the result to create an ArkTS Int16Array.
6480     *
6481     * @param { TypedArrayMapCallback<number, Int16Array> } callbackFn - A function that
6482     *     accepts up to three arguments.
6483     *     The map method calls the callbackfn function one time for each element in the array.
6484     * @returns { Int16Array } New ArkTS Int16Array generated.
6485     * @throws { BusinessError } 401 - Parameter error.
6486     * @throws { BusinessError } 10200011 - The map method cannot be bound.
6487     * @throws { BusinessError } 10200201 - Concurrent modification error.
6488     * @syscap SystemCapability.Utils.Lang
6489     * @atomicservice
6490     * @since 12
6491     */
6492    /**
6493     * Applies a callback function to each element in this ArkTS Int16Array
6494     * and uses the result to create an ArkTS Int16Array.
6495     *
6496     * @param { TypedArrayMapCallback<number, Int16Array> } callbackFn - A function that
6497     *     accepts up to three arguments.
6498     *     The map method calls the callbackfn function one time for each element in the array.
6499     * @returns { Int16Array } New ArkTS Int16Array generated.
6500     * @throws { BusinessError } 401 - Parameter error.
6501     * @throws { BusinessError } 10200011 - The map method cannot be bound.
6502     * @throws { BusinessError } 10200201 - Concurrent modification error.
6503     * @syscap SystemCapability.Utils.Lang
6504     * @crossplatform
6505     * @atomicservice
6506     * @since 18
6507     */
6508    map(callbackFn: TypedArrayMapCallback<number, Int16Array>): Int16Array;
6509    /**
6510     * Calls the specified callback function for all the elements in an array. The return value of
6511     * the callback function is the accumulated result, and is provided as an argument in the next
6512     * call to the callback function.
6513     *
6514     * @param { TypedArrayReduceCallback<number, number, Int16Array> } callbackFn - A function that
6515     *     accepts up to four arguments.
6516     *     The reduce method calls the callbackfn function one time for each element in the array.
6517     * @returns { number } The value that results from running the "reducer" callback function to
6518     *     completion over the entire typed array.
6519     * @throws { BusinessError } 401 - Parameter error.
6520     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
6521     * @throws { BusinessError } 10200201 - Concurrent modification error.
6522     * @syscap SystemCapability.Utils.Lang
6523     * @atomicservice
6524     * @since 12
6525     */
6526    /**
6527     * Calls the specified callback function for all the elements in an array. The return value of
6528     * the callback function is the accumulated result, and is provided as an argument in the next
6529     * call to the callback function.
6530     *
6531     * @param { TypedArrayReduceCallback<number, number, Int16Array> } callbackFn - A function that
6532     *     accepts up to four arguments.
6533     *     The reduce method calls the callbackfn function one time for each element in the array.
6534     * @returns { number } The value that results from running the "reducer" callback function to
6535     *     completion over the entire typed array.
6536     * @throws { BusinessError } 401 - Parameter error.
6537     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
6538     * @throws { BusinessError } 10200201 - Concurrent modification error.
6539     * @syscap SystemCapability.Utils.Lang
6540     * @crossplatform
6541     * @atomicservice
6542     * @since 18
6543     */
6544    reduce(callbackFn: TypedArrayReduceCallback<number, number, Int16Array>): number;
6545    /**
6546     * Calls the specified callback function for all the elements in an array. The return value of
6547     * the callback function is the accumulated result, and is provided as an argument in the next
6548     * call to the callback function.
6549     *
6550     * @param { TypedArrayReduceCallback<number, number, Int16Array> } callbackFn - A function that
6551     *     accepts up to four arguments.
6552     *     The reduce method calls the callbackfn function one time for each element in the array.
6553     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
6554     *     the accumulation. The first call to the callbackfn function provides this value as an argument
6555     *     instead of an array value.
6556     * @returns { number } The value that results from running the "reducer" callback function to
6557     *     completion over the entire typed array.
6558     * @throws { BusinessError } 401 - Parameter error.
6559     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
6560     * @throws { BusinessError } 10200201 - Concurrent modification error.
6561     * @syscap SystemCapability.Utils.Lang
6562     * @atomicservice
6563     * @since 12
6564     */
6565    /**
6566     * Calls the specified callback function for all the elements in an array. The return value of
6567     * the callback function is the accumulated result, and is provided as an argument in the next
6568     * call to the callback function.
6569     *
6570     * @param { TypedArrayReduceCallback<number, number, Int16Array> } callbackFn - A function that
6571     *     accepts up to four arguments.
6572     *     The reduce method calls the callbackfn function one time for each element in the array.
6573     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
6574     *     the accumulation. The first call to the callbackfn function provides this value as an argument
6575     *     instead of an array value.
6576     * @returns { number } The value that results from running the "reducer" callback function to
6577     *     completion over the entire typed array.
6578     * @throws { BusinessError } 401 - Parameter error.
6579     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
6580     * @throws { BusinessError } 10200201 - Concurrent modification error.
6581     * @syscap SystemCapability.Utils.Lang
6582     * @crossplatform
6583     * @atomicservice
6584     * @since 18
6585     */
6586    reduce(callbackFn: TypedArrayReduceCallback<number, number, Int16Array>, initialValue: number): number;
6587    /**
6588     * Calls the specified callback function for all the elements in an array. The return value of
6589     * the callback function is the accumulated result, and is provided as an argument in the next
6590     * call to the callback function.
6591     *
6592     * @param { TypedArrayReduceCallback<U, number, Int16Array> } callbackFn - A function that
6593     *     accepts up to four arguments.
6594     *     The reduce method calls the callbackfn function one time for each element in the array.
6595     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
6596     *     the accumulation. The first call to the callbackfn function provides this value as an argument
6597     *     instead of an array value.
6598     * @returns { U } The value that results from running the "reducer" callback function to
6599     *     completion over the entire typed array.
6600     * @throws { BusinessError } 401 - Parameter error.
6601     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
6602     * @throws { BusinessError } 10200201 - Concurrent modification error.
6603     * @syscap SystemCapability.Utils.Lang
6604     * @atomicservice
6605     * @since 12
6606     */
6607    /**
6608     * Calls the specified callback function for all the elements in an array. The return value of
6609     * the callback function is the accumulated result, and is provided as an argument in the next
6610     * call to the callback function.
6611     *
6612     * @param { TypedArrayReduceCallback<U, number, Int16Array> } callbackFn - A function that
6613     *     accepts up to four arguments.
6614     *     The reduce method calls the callbackfn function one time for each element in the array.
6615     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
6616     *     the accumulation. The first call to the callbackfn function provides this value as an argument
6617     *     instead of an array value.
6618     * @returns { U } The value that results from running the "reducer" callback function to
6619     *     completion over the entire typed array.
6620     * @throws { BusinessError } 401 - Parameter error.
6621     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
6622     * @throws { BusinessError } 10200201 - Concurrent modification error.
6623     * @syscap SystemCapability.Utils.Lang
6624     * @crossplatform
6625     * @atomicservice
6626     * @since 18
6627     */
6628    reduce<U>(callbackFn: TypedArrayReduceCallback<U, number, Int16Array>, initialValue: U): U;
6629    /**
6630     * Reverses this ArkTS Int16Array.
6631     *
6632     * @returns { Int16Array } The reference to the original typed array, now reversed.
6633     *     <br>Note that the typed array is reversed in place, and no copy is made.
6634     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
6635     * @throws { BusinessError } 10200201 - Concurrent modification error.
6636     * @syscap SystemCapability.Utils.Lang
6637     * @atomicservice
6638     * @since 12
6639     */
6640    /**
6641     * Reverses this ArkTS Int16Array.
6642     *
6643     * @returns { Int16Array } The reference to the original typed array, now reversed.
6644     *     <br>Note that the typed array is reversed in place, and no copy is made.
6645     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
6646     * @throws { BusinessError } 10200201 - Concurrent modification error.
6647     * @syscap SystemCapability.Utils.Lang
6648     * @crossplatform
6649     * @atomicservice
6650     * @since 18
6651     */
6652    reverse(): Int16Array;
6653    /**
6654     * Writes the elements in an array-like object to the given start position in sequence.
6655     *
6656     * @param { ArrayLike<number> } array - Array-like object whose elements will be written.
6657     * @param { number } [offset] - Start position for writing data. The default value is 0.
6658     * @throws { BusinessError } 401 - Parameter error.
6659     * @throws { BusinessError } 10200011 - The set method cannot be bound.
6660     * @throws { BusinessError } 10200201 - Concurrent modification error.
6661     * @syscap SystemCapability.Utils.Lang
6662     * @atomicservice
6663     * @since 12
6664     */
6665    /**
6666     * Writes the elements in an array-like object to the given start position in sequence.
6667     *
6668     * @param { ArrayLike<number> } array - Array-like object whose elements will be written.
6669     * @param { number } [offset] - Start position for writing data. The default value is 0.
6670     * @throws { BusinessError } 401 - Parameter error.
6671     * @throws { BusinessError } 10200011 - The set method cannot be bound.
6672     * @throws { BusinessError } 10200201 - Concurrent modification error.
6673     * @syscap SystemCapability.Utils.Lang
6674     * @crossplatform
6675     * @atomicservice
6676     * @since 18
6677     */
6678    set(array: ArrayLike<number>, offset?: number): void;
6679    /**
6680     * Selects a range of elements in this ArkTS Int16Array to create an ArkTS Int16Array.
6681     *
6682     * @param { number } [start] - Start index of the range. If a negative number is passed in,
6683     *     it refers to the index of start + Int16Array.length. The default value is 0.
6684     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
6685     *     it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array.
6686     * @returns { Int16Array } New ArkTS Int16Array generated.
6687     * @throws { BusinessError } 401 - Parameter error.
6688     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
6689     * @throws { BusinessError } 10200201 - Concurrent modification error.
6690     * @syscap SystemCapability.Utils.Lang
6691     * @atomicservice
6692     * @since 12
6693     */
6694    /**
6695     * Selects a range of elements in this ArkTS Int16Array to create an ArkTS Int16Array.
6696     *
6697     * @param { number } [start] - Start index of the range. If a negative number is passed in,
6698     *     it refers to the index of start + Int16Array.length. The default value is 0.
6699     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
6700     *     it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array.
6701     * @returns { Int16Array } New ArkTS Int16Array generated.
6702     * @throws { BusinessError } 401 - Parameter error.
6703     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
6704     * @throws { BusinessError } 10200201 - Concurrent modification error.
6705     * @syscap SystemCapability.Utils.Lang
6706     * @crossplatform
6707     * @atomicservice
6708     * @since 18
6709     */
6710    slice(start?: number, end?: number): Int16Array;
6711    /**
6712     * Checks whether any element in this ArkTS Int16Array meets a given condition.
6713     *
6714     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - A function that accepts up to three arguments.
6715     *     The some method calls the predicate function for each element in the array until
6716     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
6717     * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists;
6718     *     otherwise, false is returned.
6719     * @throws { BusinessError } 401 - Parameter error.
6720     * @throws { BusinessError } 10200011 - The some method cannot be bound.
6721     * @throws { BusinessError } 10200201 - Concurrent modification error.
6722     * @syscap SystemCapability.Utils.Lang
6723     * @atomicservice
6724     * @since 12
6725     */
6726    /**
6727     * Checks whether any element in this ArkTS Int16Array meets a given condition.
6728     *
6729     * @param { TypedArrayPredicateFn<number, Int16Array> } predicate - A function that accepts up to three arguments.
6730     *     The some method calls the predicate function for each element in the array until
6731     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
6732     * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists;
6733     *     otherwise, false is returned.
6734     * @throws { BusinessError } 401 - Parameter error.
6735     * @throws { BusinessError } 10200011 - The some method cannot be bound.
6736     * @throws { BusinessError } 10200201 - Concurrent modification error.
6737     * @syscap SystemCapability.Utils.Lang
6738     * @crossplatform
6739     * @atomicservice
6740     * @since 18
6741     */
6742    some(predicate: TypedArrayPredicateFn<number, Int16Array>): boolean;
6743    /**
6744     * Sorts elements in this ArkTS Int16Array and returns the sorted ArkTS Int16Array.
6745     *
6746     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
6747     *     It is expected to return a negative value if first argument is less than second argument,
6748     *     zero if they're equal and a positive value otherwise.
6749     *     If omitted, the elements are sorted in ascending, ASCII character order.
6750     * @returns { Int16Array } The reference to the original typed array, now sorted.
6751     *     Note that the typed array is sorted in place and no copy is made.
6752     * @throws { BusinessError } 401 - Parameter error.
6753     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
6754     * @throws { BusinessError } 10200201 - Concurrent modification error.
6755     * @syscap SystemCapability.Utils.Lang
6756     * @atomicservice
6757     * @since 12
6758     */
6759    /**
6760     * Sorts elements in this ArkTS Int16Array and returns the sorted ArkTS Int16Array.
6761     *
6762     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
6763     *     It is expected to return a negative value if first argument is less than second argument,
6764     *     zero if they're equal and a positive value otherwise.
6765     *     If omitted, the elements are sorted in ascending, ASCII character order.
6766     * @returns { Int16Array } The reference to the original typed array, now sorted.
6767     *     Note that the typed array is sorted in place and no copy is made.
6768     * @throws { BusinessError } 401 - Parameter error.
6769     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
6770     * @throws { BusinessError } 10200201 - Concurrent modification error.
6771     * @syscap SystemCapability.Utils.Lang
6772     * @crossplatform
6773     * @atomicservice
6774     * @since 18
6775     */
6776    sort(compareFn?: TypedArrayCompareFn<number>): Int16Array;
6777    /**
6778     * Returns a new ArkTS Int16Array based on the same ArkTS ArrayBuffer.
6779     *
6780     * @param { number } [begin] - Start index of the range. If a negative number is passed in,
6781     *     it refers to the index of begin + Int16Array.length. The default value is 0.
6782     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
6783     *     it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array.
6784     * @returns { Int16Array } New ArkTS Int16Array generated.
6785     * @throws { BusinessError } 401 - Parameter error.
6786     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
6787     * @throws { BusinessError } 10200201 - Concurrent modification error.
6788     * @syscap SystemCapability.Utils.Lang
6789     * @atomicservice
6790     * @since 12
6791     */
6792    /**
6793     * Returns a new ArkTS Int16Array based on the same ArkTS ArrayBuffer.
6794     *
6795     * @param { number } [begin] - Start index of the range. If a negative number is passed in,
6796     *     it refers to the index of begin + Int16Array.length. The default value is 0.
6797     * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in,
6798     *     it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array.
6799     * @returns { Int16Array } New ArkTS Int16Array generated.
6800     * @throws { BusinessError } 401 - Parameter error.
6801     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
6802     * @throws { BusinessError } 10200201 - Concurrent modification error.
6803     * @syscap SystemCapability.Utils.Lang
6804     * @crossplatform
6805     * @atomicservice
6806     * @since 18
6807     */
6808    subarray(begin?: number, end?: number): Int16Array;
6809    /**
6810     * Returns the element at the given index. If no element is found, undefined is returned.
6811     *
6812     * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer.
6813     *     If a negative number is passed in, it refers to the index of index + Int16Array.length.
6814     * @returns { number | undefined } The element in the array matching the given index.<br/>
6815     *     Always returns undefined if index < -array.length or
6816     *     index >= array.length without attempting to access the corresponding property.
6817     * @throws { BusinessError } 401 - Parameter error.
6818     * @throws { BusinessError } 10200011 - The at method cannot be bound.
6819     * @throws { BusinessError } 10200201 - Concurrent modification error.
6820     * @syscap SystemCapability.Utils.Lang
6821     * @atomicservice
6822     * @since 12
6823     */
6824    /**
6825     * Returns the element at the given index. If no element is found, undefined is returned.
6826     *
6827     * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer.
6828     *     If a negative number is passed in, it refers to the index of index + Int16Array.length.
6829     * @returns { number | undefined } The element in the array matching the given index.<br/>
6830     *     Always returns undefined if index < -array.length or
6831     *     index >= array.length without attempting to access the corresponding property.
6832     * @throws { BusinessError } 401 - Parameter error.
6833     * @throws { BusinessError } 10200011 - The at method cannot be bound.
6834     * @throws { BusinessError } 10200201 - Concurrent modification error.
6835     * @syscap SystemCapability.Utils.Lang
6836     * @crossplatform
6837     * @atomicservice
6838     * @since 18
6839     */
6840    at(index: number): number | undefined;
6841    /**
6842     * Returns an iterator, each item of which is a JavaScript object.
6843     * NOTE:
6844     * This API cannot be used in .ets files.
6845     *
6846     * @returns { IterableIterator<number> } Iterator object that yields numbers.
6847     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
6848     * @syscap SystemCapability.Utils.Lang
6849     * @atomicservice
6850     * @since 12
6851     */
6852    /**
6853     * Returns an iterator, each item of which is a JavaScript object.
6854     * NOTE:
6855     * This API cannot be used in .ets files.
6856     *
6857     * @returns { IterableIterator<number> } Iterator object that yields numbers.
6858     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
6859     * @syscap SystemCapability.Utils.Lang
6860     * @crossplatform
6861     * @atomicservice
6862     * @since 18
6863     */
6864    [Symbol.iterator](): IterableIterator<number>;
6865    /**
6866     * Returns an iterator object that contains the key-value pair of each element in this ArkTS Int16Array.
6867     *
6868     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
6869     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
6870     * @throws { BusinessError } 10200201 - Concurrent modification error.
6871     * @syscap SystemCapability.Utils.Lang
6872     * @atomicservice
6873     * @since 12
6874     */
6875    /**
6876     * Returns an iterator object that contains the key-value pair of each element in this ArkTS Int16Array.
6877     *
6878     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
6879     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
6880     * @throws { BusinessError } 10200201 - Concurrent modification error.
6881     * @syscap SystemCapability.Utils.Lang
6882     * @crossplatform
6883     * @atomicservice
6884     * @since 18
6885     */
6886    entries(): IterableIterator<[number, number]>;
6887    /**
6888     * Returns an iterator object that contains the key (index) of each element in this ArkTS Int16Array.
6889     *
6890     * @returns { IterableIterator<number> } A new iterable iterator object.
6891     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
6892     * @throws { BusinessError } 10200201 - Concurrent modification error.
6893     * @syscap SystemCapability.Utils.Lang
6894     * @atomicservice
6895     * @since 12
6896     */
6897    /**
6898     * Returns an iterator object that contains the key (index) of each element in this ArkTS Int16Array.
6899     *
6900     * @returns { IterableIterator<number> } A new iterable iterator object.
6901     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
6902     * @throws { BusinessError } 10200201 - Concurrent modification error.
6903     * @syscap SystemCapability.Utils.Lang
6904     * @crossplatform
6905     * @atomicservice
6906     * @since 18
6907     */
6908    keys(): IterableIterator<number>;
6909    /**
6910     * Returns an iterator object that contains the value of each element in this ArkTS Int16Array.
6911     *
6912     * @returns { IterableIterator<number> } A new iterable iterator object.
6913     * @throws { BusinessError } 10200011 - The values method cannot be bound.
6914     * @throws { BusinessError } 10200201 - Concurrent modification error.
6915     * @syscap SystemCapability.Utils.Lang
6916     * @atomicservice
6917     * @since 12
6918     */
6919    /**
6920     * Returns an iterator object that contains the value of each element in this ArkTS Int16Array.
6921     *
6922     * @returns { IterableIterator<number> } A new iterable iterator object.
6923     * @throws { BusinessError } 10200011 - The values method cannot be bound.
6924     * @throws { BusinessError } 10200201 - Concurrent modification error.
6925     * @syscap SystemCapability.Utils.Lang
6926     * @crossplatform
6927     * @atomicservice
6928     * @since 18
6929     */
6930    values(): IterableIterator<number>;
6931    /**
6932     * Checks whether elements are contained in this ArkTS Int16Array.
6933     *
6934     * @param { number } searchElement - Element to search for.
6935     * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in,
6936     *     it refers to the index of fromIndex + Int16Array.length. The default value is 0.
6937     * @returns { boolean } Check result. The value true is returned if the element exists;
6938     *     otherwise, false is returned.
6939     * @throws { BusinessError } 401 - Parameter error.
6940     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
6941     * @throws { BusinessError } 10200201 - Concurrent modification error.
6942     * @syscap SystemCapability.Utils.Lang
6943     * @atomicservice
6944     * @since 12
6945     */
6946    /**
6947     * Checks whether elements are contained in this ArkTS Int16Array.
6948     *
6949     * @param { number } searchElement - Element to search for.
6950     * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in,
6951     *     it refers to the index of fromIndex + Int16Array.length. The default value is 0.
6952     * @returns { boolean } Check result. The value true is returned if the element exists;
6953     *     otherwise, false is returned.
6954     * @throws { BusinessError } 401 - Parameter error.
6955     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
6956     * @throws { BusinessError } 10200201 - Concurrent modification error.
6957     * @syscap SystemCapability.Utils.Lang
6958     * @crossplatform
6959     * @atomicservice
6960     * @since 18
6961     */
6962    includes(searchElement: number, fromIndex?: number): boolean;
6963    /**
6964     * Returns the element at a given index in this Int16Array.
6965     *
6966     * @syscap SystemCapability.Utils.Lang
6967     * @atomicservice
6968     * @since 12
6969     */
6970    /**
6971     * Returns the element at a given index in this Int16Array.
6972     *
6973     * @syscap SystemCapability.Utils.Lang
6974     * @crossplatform
6975     * @atomicservice
6976     * @since 18
6977     */
6978    [index: number]: number;
6979    /**
6980     * Obtains the index of the last occurrence of the specified value in this ArkTS Int16Array.
6981     *
6982     * @param { number } searchElement - Element to search for in the Int16Array..
6983     * @param { number } fromIndex - Index from which the search starts. The default value is 0.
6984     *     If the index is greater than or equal to the length of the ArkTS Int16Array, -1 is returned.
6985     *     If a negative number is passed in, the search starts from the end of the ArkTS Int16Array.
6986     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
6987     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
6988     * @throws { BusinessError } 10200201 - Concurrent modification error.
6989     * @syscap SystemCapability.Utils.Lang
6990     * @atomicservice
6991     * @since 18
6992     */
6993    lastIndexOf(searchElement: number, fromIndex?: number): number;
6994    /**
6995     * Reduce elements in an Int16Array from right to left.
6996     *
6997     * @param { TypedArrayReduceCallback<U, number, Int16Array> } callbackFn - A function that is called for
6998     * each element in the Int16Array.
6999     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
7000     *     <br>If no initial value is provided, the last element of the Int16Array will be used,
7001     *     <br>and the callback will start with the second-to-last element.
7002     * @returns { U } Returns the single value that results from the reduction.
7003     * @throws { BusinessError } 401 - Parameter error. Possible causes:
7004     *                                    1.Mandatory parameters are left unspecified.
7005     *                                    2.Incorrect parameter types.
7006     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
7007     * @throws { BusinessError } 10200201 - Concurrent modification error.
7008     * @syscap SystemCapability.Utils.Lang
7009     * @atomicservice
7010     * @since 18
7011     */
7012    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Int16Array>, initialValue: U): U;
7013    /**
7014     * Reduce elements in an Int16Array from right to left.
7015     *
7016     * @param { TypedArrayReduceCallback<number, number, Int16Array> } callbackFn - A function that is called for
7017     * each element in the Int16Array.
7018     * @returns { number } Returns the single value that results from the reduction.
7019     * @throws { BusinessError } 401 - Parameter error. Possible causes:
7020     *                                    1.Mandatory parameters are left unspecified.
7021     *                                    2.Incorrect parameter types.
7022     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
7023     * @throws { BusinessError } 10200201 - Concurrent modification error.
7024     * @syscap SystemCapability.Utils.Lang
7025     * @atomicservice
7026     * @since 18
7027     */
7028    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Int16Array>): number;
7029    /**
7030     * Convert an Int16Array to a string.
7031     *
7032     * @returns { string } Returns a string representing the specified Int16Array and its elements,
7033     * separated by commas.
7034     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
7035     * @throws { BusinessError } 10200201 - Concurrent modification error.
7036     * @syscap SystemCapability.Utils.Lang
7037     * @atomicservice
7038     * @since 18
7039     */
7040    toString(): string;
7041    /**
7042     * Convert an Int16Array to a string, The elements are converted to string using their toLocaleString methods.
7043     *
7044     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
7045     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
7046     * @throws { BusinessError } 10200201 - Concurrent modification error.
7047     * @syscap SystemCapability.Utils.Lang
7048     * @atomicservice
7049     * @since 18
7050     */
7051    toLocaleString(): string;
7052    /**
7053     * Create an Int16Array containing these parameters.
7054     *
7055     * @param { number[] } items - A variable number of arguments that will be used as the elements of the Int16Array.
7056     * @returns { Int16Array } Returns a new Int16Array instance containing the specified elements.
7057     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
7058     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
7059     * @static
7060     * @syscap SystemCapability.Utils.Lang
7061     * @atomicservice
7062     * @since 18
7063     */
7064    static of(...items: number[]): Int16Array;
7065 }
7066
7067  /**
7068   * A typed array of 16-bit unsigned integer values. The contents are initialized to 0.
7069   * If multiple threads access a Uint16Array instance concurrently,
7070   * and at least one of the threads modifies the array structurally,
7071   * it must be synchronized externally.
7072   *
7073   * @syscap SystemCapability.Utils.Lang
7074   * @atomicservice
7075   * @since 12
7076   */
7077  /**
7078   * A typed array of 16-bit unsigned integer values. The contents are initialized to 0.
7079   * If multiple threads access a Uint16Array instance concurrently,
7080   * and at least one of the threads modifies the array structurally,
7081   * it must be synchronized externally.
7082   *
7083   * @syscap SystemCapability.Utils.Lang
7084   * @crossplatform
7085   * @atomicservice
7086   * @since 18
7087   */
7088  @Sendable
7089  class Uint16Array {
7090    /**
7091     * The size in bytes of each element in the array.
7092     *
7093     * @type { number }
7094     * @readonly
7095     * @static
7096     * @syscap SystemCapability.Utils.Lang
7097     * @atomicservice
7098     * @since 12
7099     */
7100    /**
7101     * The size in bytes of each element in the array.
7102     *
7103     * @type { number }
7104     * @readonly
7105     * @static
7106     * @syscap SystemCapability.Utils.Lang
7107     * @crossplatform
7108     * @atomicservice
7109     * @since 18
7110     */
7111    static readonly BYTES_PER_ELEMENT: number;
7112    /**
7113     * The ArrayBuffer instance referenced by the array.
7114     *
7115     * @type { ArrayBuffer }
7116     * @readonly
7117     * @syscap SystemCapability.Utils.Lang
7118     * @atomicservice
7119     * @since 12
7120     */
7121    /**
7122     * The ArrayBuffer instance referenced by the array.
7123     *
7124     * @type { ArrayBuffer }
7125     * @readonly
7126     * @syscap SystemCapability.Utils.Lang
7127     * @crossplatform
7128     * @atomicservice
7129     * @since 18
7130     */
7131    readonly buffer: ArrayBuffer;
7132    /**
7133     * The length in bytes of the array.
7134     *
7135     * @type { number }
7136     * @readonly
7137     * @syscap SystemCapability.Utils.Lang
7138     * @atomicservice
7139     * @since 12
7140     */
7141    /**
7142     * The length in bytes of the array.
7143     *
7144     * @type { number }
7145     * @readonly
7146     * @syscap SystemCapability.Utils.Lang
7147     * @crossplatform
7148     * @atomicservice
7149     * @since 18
7150     */
7151    readonly byteLength: number;
7152    /**
7153     * The offset in bytes of the array.
7154     *
7155     * @type { number }
7156     * @readonly
7157     * @syscap SystemCapability.Utils.Lang
7158     * @atomicservice
7159     * @since 12
7160     */
7161    /**
7162     * The offset in bytes of the array.
7163     *
7164     * @type { number }
7165     * @readonly
7166     * @syscap SystemCapability.Utils.Lang
7167     * @crossplatform
7168     * @atomicservice
7169     * @since 18
7170     */
7171    readonly byteOffset: number;
7172    /**
7173     * The length of the array.
7174     *
7175     * @type { number }
7176     * @readonly
7177     * @syscap SystemCapability.Utils.Lang
7178     * @atomicservice
7179     * @since 12
7180     */
7181    /**
7182     * The length of the array.
7183     *
7184     * @type { number }
7185     * @readonly
7186     * @syscap SystemCapability.Utils.Lang
7187     * @crossplatform
7188     * @atomicservice
7189     * @since 18
7190     */
7191    readonly length: number;
7192    /**
7193     * A constructor used to create an Uint16Array.
7194     *
7195     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7196     * @syscap SystemCapability.Utils.Lang
7197     * @atomicservice
7198     * @since 12
7199     */
7200    /**
7201     * A constructor used to create an Uint16Array.
7202     *
7203     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7204     * @syscap SystemCapability.Utils.Lang
7205     * @crossplatform
7206     * @atomicservice
7207     * @since 18
7208     */
7209    constructor();
7210    /**
7211     * A constructor used to create an Uint16Array.
7212     *
7213     * @param { number } length - The length of the array
7214     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7215     * @throws { BusinessError } 401 - Parameter error.
7216     * @syscap SystemCapability.Utils.Lang
7217     * @atomicservice
7218     * @since 12
7219     */
7220    /**
7221     * A constructor used to create an Uint16Array.
7222     *
7223     * @param { number } length - The length of the array
7224     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7225     * @throws { BusinessError } 401 - Parameter error.
7226     * @syscap SystemCapability.Utils.Lang
7227     * @crossplatform
7228     * @atomicservice
7229     * @since 18
7230     */
7231    constructor(length: number);
7232    /**
7233     * A constructor used to create an Uint16Array.
7234     *
7235     * @param { Iterable<number> } elements - An iterable object to convert to an Uint16Array.
7236     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7237     * @throws { BusinessError } 401 - Parameter error.
7238     * @syscap SystemCapability.Utils.Lang
7239     * @atomicservice
7240     * @since 12
7241     */
7242    /**
7243     * A constructor used to create an Uint16Array.
7244     *
7245     * @param { Iterable<number> } elements - An iterable object to convert to an Uint16Array.
7246     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7247     * @throws { BusinessError } 401 - Parameter error.
7248     * @syscap SystemCapability.Utils.Lang
7249     * @crossplatform
7250     * @atomicservice
7251     * @since 18
7252     */
7253    constructor(elements: Iterable<number>);
7254    /**
7255     * A constructor used to create an Uint16Array.
7256     *
7257     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
7258     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7259     * @throws { BusinessError } 401 - Parameter error.
7260     * @syscap SystemCapability.Utils.Lang
7261     * @atomicservice
7262     * @since 12
7263     */
7264    /**
7265     * A constructor used to create an Uint16Array.
7266     *
7267     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
7268     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7269     * @throws { BusinessError } 401 - Parameter error.
7270     * @syscap SystemCapability.Utils.Lang
7271     * @crossplatform
7272     * @atomicservice
7273     * @since 18
7274     */
7275    constructor(array: ArrayLike<number> | ArrayBuffer);
7276    /**
7277     * A constructor used to create an Uint16Array.
7278     *
7279     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
7280     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
7281     *     that will be exposed by the typed array view.
7282     * @param { number } [length] - The length parameter specifies the memory range
7283     *     that will be exposed by the typed array view.
7284     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7285     * @throws { BusinessError } 401 - Parameter error.
7286     * @syscap SystemCapability.Utils.Lang
7287     * @atomicservice
7288     * @since 12
7289     */
7290    /**
7291     * A constructor used to create an Uint16Array.
7292     *
7293     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
7294     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
7295     *     that will be exposed by the typed array view.
7296     * @param { number } [length] - The length parameter specifies the memory range
7297     *     that will be exposed by the typed array view.
7298     * @throws { BusinessError } 10200012 - The Uint16Array's constructor cannot be directly invoked.
7299     * @throws { BusinessError } 401 - Parameter error.
7300     * @syscap SystemCapability.Utils.Lang
7301     * @crossplatform
7302     * @atomicservice
7303     * @since 18
7304     */
7305    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
7306    /**
7307     * Creates an Uint16Array from an array-like object.
7308     *
7309     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Uint16Array.
7310     * @returns { Uint16Array } A new Uint16Array instance
7311     * @throws { BusinessError } 401 - Parameter error.
7312     * @static
7313     * @syscap SystemCapability.Utils.Lang
7314     * @atomicservice
7315     * @since 12
7316     */
7317    /**
7318     * Creates an Uint16Array from an array-like object.
7319     *
7320     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Uint16Array.
7321     * @returns { Uint16Array } A new Uint16Array instance
7322     * @throws { BusinessError } 401 - Parameter error.
7323     * @static
7324     * @syscap SystemCapability.Utils.Lang
7325     * @crossplatform
7326     * @atomicservice
7327     * @since 18
7328     */
7329    static from(arrayLike: ArrayLike<number>): Uint16Array;
7330    /**
7331     * Creates an Uint16Array from an array-like object.
7332     *
7333     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Uint16Array.
7334     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
7335     * @returns { Uint16Array } A new Uint16Array instance
7336     * @throws { BusinessError } 401 - Parameter error.
7337     * @static
7338     * @syscap SystemCapability.Utils.Lang
7339     * @atomicservice
7340     * @since 12
7341     */
7342    /**
7343     * Creates an Uint16Array from an array-like object.
7344     *
7345     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Uint16Array.
7346     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
7347     * @returns { Uint16Array } A new Uint16Array instance
7348     * @throws { BusinessError } 401 - Parameter error.
7349     * @static
7350     * @syscap SystemCapability.Utils.Lang
7351     * @crossplatform
7352     * @atomicservice
7353     * @since 18
7354     */
7355    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Uint16Array;
7356    /**
7357     * Creates an Uint16Array from an iterable object.
7358     *
7359     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Uint16Array.
7360     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
7361     *     call on every element of the array.
7362     * @returns { Uint16Array } A new Uint16Array instance
7363     * @throws { BusinessError } 401 - Parameter error.
7364     * @static
7365     * @syscap SystemCapability.Utils.Lang
7366     * @atomicservice
7367     * @since 12
7368     */
7369    /**
7370     * Creates an Uint16Array from an iterable object.
7371     *
7372     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Uint16Array.
7373     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
7374     *     call on every element of the array.
7375     * @returns { Uint16Array } A new Uint16Array instance
7376     * @throws { BusinessError } 401 - Parameter error.
7377     * @static
7378     * @syscap SystemCapability.Utils.Lang
7379     * @crossplatform
7380     * @atomicservice
7381     * @since 18
7382     */
7383    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Uint16Array;
7384    /**
7385     * Returns the this object after copying a section of the array identified by start and end
7386     * to the same array starting at position target.
7387     *
7388     * @param { number } target - If target is negative, it is treated as length+target where length is the
7389     *     length of the array.
7390     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
7391     *     is treated as length+end.
7392     * @param { number } [end] - If not specified, length of the this object is used as its default value.
7393     * @returns { Uint16Array } The array itself.
7394     * @throws { BusinessError } 401 - Parameter error.
7395     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
7396     * @throws { BusinessError } 10200201 - Concurrent modification error.
7397     * @syscap SystemCapability.Utils.Lang
7398     * @atomicservice
7399     * @since 12
7400     */
7401    /**
7402     * Returns the this object after copying a section of the array identified by start and end
7403     * to the same array starting at position target.
7404     *
7405     * @param { number } target - If target is negative, it is treated as length+target where length is the
7406     *     length of the array.
7407     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
7408     *     is treated as length+end.
7409     * @param { number } [end] - If not specified, length of the this object is used as its default value.
7410     * @returns { Uint16Array } The array itself.
7411     * @throws { BusinessError } 401 - Parameter error.
7412     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
7413     * @throws { BusinessError } 10200201 - Concurrent modification error.
7414     * @syscap SystemCapability.Utils.Lang
7415     * @crossplatform
7416     * @atomicservice
7417     * @since 18
7418     */
7419    copyWithin(target: number, start: number, end?: number): Uint16Array;
7420    /**
7421     * Determines whether all the members of an array satisfy the specified test.
7422     *
7423     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - A function that accepts up to three arguments.
7424     *     The every method calls the predicate function for each element in the array until
7425     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
7426     * @returns { boolean } true unless predicate returns a false value for a typed array element,
7427     *     in which case false is immediately returned.
7428     * @throws { BusinessError } 401 - Parameter error.
7429     * @throws { BusinessError } 10200011 - The every method cannot be bound.
7430     * @throws { BusinessError } 10200201 - Concurrent modification error.
7431     * @syscap SystemCapability.Utils.Lang
7432     * @atomicservice
7433     * @since 12
7434     */
7435    /**
7436     * Determines whether all the members of an array satisfy the specified test.
7437     *
7438     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - A function that accepts up to three arguments.
7439     *     The every method calls the predicate function for each element in the array until
7440     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
7441     * @returns { boolean } true unless predicate returns a false value for a typed array element,
7442     *     in which case false is immediately returned.
7443     * @throws { BusinessError } 401 - Parameter error.
7444     * @throws { BusinessError } 10200011 - The every method cannot be bound.
7445     * @throws { BusinessError } 10200201 - Concurrent modification error.
7446     * @syscap SystemCapability.Utils.Lang
7447     * @crossplatform
7448     * @atomicservice
7449     * @since 18
7450     */
7451    every(predicate: TypedArrayPredicateFn<number, Uint16Array>): boolean;
7452    /**
7453     * Returns the this object after filling the section identified by start and end with value.
7454     *
7455     * @param { number } value - value to fill array section with.
7456     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
7457     *     length+start where length is the length of the array.
7458     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
7459     *     length+end.
7460     * @returns { Uint16Array } The array itself.
7461     * @throws { BusinessError } 401 - Parameter error.
7462     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
7463     * @throws { BusinessError } 10200201 - Concurrent modification error.
7464     * @syscap SystemCapability.Utils.Lang
7465     * @atomicservice
7466     * @since 12
7467     */
7468    /**
7469     * Returns the this object after filling the section identified by start and end with value.
7470     *
7471     * @param { number } value - value to fill array section with.
7472     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
7473     *     length+start where length is the length of the array.
7474     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
7475     *     length+end.
7476     * @returns { Uint16Array } The array itself.
7477     * @throws { BusinessError } 401 - Parameter error.
7478     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
7479     * @throws { BusinessError } 10200201 - Concurrent modification error.
7480     * @syscap SystemCapability.Utils.Lang
7481     * @crossplatform
7482     * @atomicservice
7483     * @since 18
7484     */
7485    fill(value: number, start?: number, end?: number): Uint16Array;
7486    /**
7487     * Returns the elements of an array that meet the condition specified in a callback function.
7488     *
7489     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - A function that accepts up to three arguments.
7490     *     The filter method calls the predicate function one time for each element in the array.
7491     * @returns { Uint16Array } The array itself.
7492     * @throws { BusinessError } 401 - Parameter error.
7493     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
7494     * @throws { BusinessError } 10200201 - Concurrent modification error.
7495     * @syscap SystemCapability.Utils.Lang
7496     * @atomicservice
7497     * @since 12
7498     */
7499    /**
7500     * Returns the elements of an array that meet the condition specified in a callback function.
7501     *
7502     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - A function that accepts up to three arguments.
7503     *     The filter method calls the predicate function one time for each element in the array.
7504     * @returns { Uint16Array } The array itself.
7505     * @throws { BusinessError } 401 - Parameter error.
7506     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
7507     * @throws { BusinessError } 10200201 - Concurrent modification error.
7508     * @syscap SystemCapability.Utils.Lang
7509     * @crossplatform
7510     * @atomicservice
7511     * @since 18
7512     */
7513    filter(predicate: TypedArrayPredicateFn<number, Uint16Array>): Uint16Array;
7514    /**
7515     * Returns the value of the first element in the array where predicate is true, and undefined
7516     * otherwise.
7517     *
7518     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - find calls predicate once for each element of
7519     *     the array, in ascending order, until it finds one where predicate returns true.
7520     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
7521     * @returns { number | undefined } The first element in the typed array
7522     *     that satisfies the provided testing function. Otherwise, undefined is returned.
7523     * @throws { BusinessError } 401 - Parameter error.
7524     * @throws { BusinessError } 10200011 - The find method cannot be bound.
7525     * @throws { BusinessError } 10200201 - Concurrent modification error.
7526     * @syscap SystemCapability.Utils.Lang
7527     * @atomicservice
7528     * @since 12
7529     */
7530    /**
7531     * Returns the value of the first element in the array where predicate is true, and undefined
7532     * otherwise.
7533     *
7534     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - find calls predicate once for each element of
7535     *     the array, in ascending order, until it finds one where predicate returns true.
7536     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
7537     * @returns { number | undefined } The first element in the typed array
7538     *     that satisfies the provided testing function. Otherwise, undefined is returned.
7539     * @throws { BusinessError } 401 - Parameter error.
7540     * @throws { BusinessError } 10200011 - The find method cannot be bound.
7541     * @throws { BusinessError } 10200201 - Concurrent modification error.
7542     * @syscap SystemCapability.Utils.Lang
7543     * @crossplatform
7544     * @atomicservice
7545     * @since 18
7546     */
7547    find(predicate: TypedArrayPredicateFn<number, Uint16Array>): number | undefined;
7548    /**
7549     * Returns the index of the first element in the array where predicate is true, and -1
7550     * otherwise.
7551     *
7552     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - find calls predicate once for each element of
7553     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
7554     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
7555     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
7556     * @throws { BusinessError } 401 - Parameter error.
7557     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
7558     * @throws { BusinessError } 10200201 - Concurrent modification error.
7559     * @syscap SystemCapability.Utils.Lang
7560     * @atomicservice
7561     * @since 12
7562     */
7563    /**
7564     * Returns the index of the first element in the array where predicate is true, and -1
7565     * otherwise.
7566     *
7567     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - find calls predicate once for each element of
7568     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
7569     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
7570     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
7571     * @throws { BusinessError } 401 - Parameter error.
7572     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
7573     * @throws { BusinessError } 10200201 - Concurrent modification error.
7574     * @syscap SystemCapability.Utils.Lang
7575     * @crossplatform
7576     * @atomicservice
7577     * @since 18
7578     */
7579    findIndex(predicate: TypedArrayPredicateFn<number, Uint16Array>): number;
7580    /**
7581     * Performs the specified action for each element in an array.
7582     *
7583     * @param { TypedArrayForEachCallback<number, Uint16Array> } callbackFn -  A function that
7584     *     accepts up to three arguments.
7585     *     forEach calls the callbackfn function one time for each element in the array.
7586     * @throws { BusinessError } 401 - Parameter error.
7587     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
7588     * @throws { BusinessError } 10200201 - Concurrent modification error.
7589     * @syscap SystemCapability.Utils.Lang
7590     * @atomicservice
7591     * @since 12
7592     */
7593    /**
7594     * Performs the specified action for each element in an array.
7595     *
7596     * @param { TypedArrayForEachCallback<number, Uint16Array> } callbackFn -  A function that
7597     *     accepts up to three arguments.
7598     *     forEach calls the callbackfn function one time for each element in the array.
7599     * @throws { BusinessError } 401 - Parameter error.
7600     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
7601     * @throws { BusinessError } 10200201 - Concurrent modification error.
7602     * @syscap SystemCapability.Utils.Lang
7603     * @crossplatform
7604     * @atomicservice
7605     * @since 18
7606     */
7607    forEach(callbackFn: TypedArrayForEachCallback<number, Uint16Array>): void;
7608    /**
7609     * Returns the index of the first occurrence of a value in an array.
7610     *
7611     * @param { number } searchElement - The value to locate in the array.
7612     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
7613     *      search starts at index 0.
7614     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
7615     * @throws { BusinessError } 401 - Parameter error.
7616     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
7617     * @throws { BusinessError } 10200201 - Concurrent modification error.
7618     * @syscap SystemCapability.Utils.Lang
7619     * @atomicservice
7620     * @since 12
7621     */
7622    /**
7623     * Returns the index of the first occurrence of a value in an array.
7624     *
7625     * @param { number } searchElement - The value to locate in the array.
7626     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
7627     *      search starts at index 0.
7628     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
7629     * @throws { BusinessError } 401 - Parameter error.
7630     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
7631     * @throws { BusinessError } 10200201 - Concurrent modification error.
7632     * @syscap SystemCapability.Utils.Lang
7633     * @crossplatform
7634     * @atomicservice
7635     * @since 18
7636     */
7637    indexOf(searchElement: number, fromIndex?: number): number;
7638    /**
7639     * Adds all the elements of an array separated by the specified separator string.
7640     * @param { string } [separator] - A string used to separate one element of an array from the next in the
7641     *     resulting String. If omitted, the array elements are separated with a comma.
7642     * @returns { string } A string with all typed array elements joined.
7643     *     If array.length is 0, the empty string is returned.
7644     * @throws { BusinessError } 401 - Parameter error.
7645     * @throws { BusinessError } 10200011 - The join method cannot be bound.
7646     * @throws { BusinessError } 10200201 - Concurrent modification error.
7647     * @syscap SystemCapability.Utils.Lang
7648     * @atomicservice
7649     * @since 12
7650     */
7651    /**
7652     * Adds all the elements of an array separated by the specified separator string.
7653     * @param { string } [separator] - A string used to separate one element of an array from the next in the
7654     *     resulting String. If omitted, the array elements are separated with a comma.
7655     * @returns { string } A string with all typed array elements joined.
7656     *     If array.length is 0, the empty string is returned.
7657     * @throws { BusinessError } 401 - Parameter error.
7658     * @throws { BusinessError } 10200011 - The join method cannot be bound.
7659     * @throws { BusinessError } 10200201 - Concurrent modification error.
7660     * @syscap SystemCapability.Utils.Lang
7661     * @crossplatform
7662     * @atomicservice
7663     * @since 18
7664     */
7665    join(separator?: string): string;
7666    /**
7667     * Calls a defined callback function on each element of an array, and returns an array that
7668     * contains the results.
7669     *
7670     * @param { TypedArrayMapCallback<number, Uint16Array> } callbackFn - A function that accepts up to
7671     *     three arguments. The map method calls the callbackfn function one time for each element in the array.
7672     * @returns { Uint16Array } The array itself.
7673     * @throws { BusinessError } 401 - Parameter error.
7674     * @throws { BusinessError } 10200011 - The map method cannot be bound.
7675     * @throws { BusinessError } 10200201 - Concurrent modification error.
7676     * @syscap SystemCapability.Utils.Lang
7677     * @atomicservice
7678     * @since 12
7679     */
7680    /**
7681     * Calls a defined callback function on each element of an array, and returns an array that
7682     * contains the results.
7683     *
7684     * @param { TypedArrayMapCallback<number, Uint16Array> } callbackFn - A function that accepts up to
7685     *     three arguments. The map method calls the callbackfn function one time for each element in the array.
7686     * @returns { Uint16Array } The array itself.
7687     * @throws { BusinessError } 401 - Parameter error.
7688     * @throws { BusinessError } 10200011 - The map method cannot be bound.
7689     * @throws { BusinessError } 10200201 - Concurrent modification error.
7690     * @syscap SystemCapability.Utils.Lang
7691     * @crossplatform
7692     * @atomicservice
7693     * @since 18
7694     */
7695    map(callbackFn: TypedArrayMapCallback<number, Uint16Array>): Uint16Array;
7696    /**
7697     * Calls the specified callback function for all the elements in an array. The return value of
7698     * the callback function is the accumulated result, and is provided as an argument in the next
7699     * call to the callback function.
7700     *
7701     * @param { TypedArrayReduceCallback<number, number, Uint16Array> } callbackFn - A function that
7702     *     accepts up to four arguments.
7703     *     The reduce method calls the callbackfn function one time for each element in the array.
7704     * @returns { number } The value that results from running the "reducer" callback function to
7705     *     completion over the entire typed array.
7706     * @throws { BusinessError } 401 - Parameter error.
7707     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
7708     * @throws { BusinessError } 10200201 - Concurrent modification error.
7709     * @syscap SystemCapability.Utils.Lang
7710     * @atomicservice
7711     * @since 12
7712     */
7713    /**
7714     * Calls the specified callback function for all the elements in an array. The return value of
7715     * the callback function is the accumulated result, and is provided as an argument in the next
7716     * call to the callback function.
7717     *
7718     * @param { TypedArrayReduceCallback<number, number, Uint16Array> } callbackFn - A function that
7719     *     accepts up to four arguments.
7720     *     The reduce method calls the callbackfn function one time for each element in the array.
7721     * @returns { number } The value that results from running the "reducer" callback function to
7722     *     completion over the entire typed array.
7723     * @throws { BusinessError } 401 - Parameter error.
7724     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
7725     * @throws { BusinessError } 10200201 - Concurrent modification error.
7726     * @syscap SystemCapability.Utils.Lang
7727     * @crossplatform
7728     * @atomicservice
7729     * @since 18
7730     */
7731    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint16Array>): number;
7732    /**
7733     * Calls the specified callback function for all the elements in an array. The return value of
7734     * the callback function is the accumulated result, and is provided as an argument in the next
7735     * call to the callback function.
7736     *
7737     * @param { TypedArrayReduceCallback<number, number, Uint16Array> } callbackFn - A function that
7738     *     accepts up to four arguments.
7739     *     The reduce method calls the callbackfn function one time for each element in the array.
7740     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
7741     *     the accumulation. The first call to the callbackfn function provides this value as an argument
7742     *     instead of an array value.
7743     * @returns { number } The value that results from running the "reducer" callback function to
7744     *     completion over the entire typed array.
7745     * @throws { BusinessError } 401 - Parameter error.
7746     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
7747     * @throws { BusinessError } 10200201 - Concurrent modification error.
7748     * @syscap SystemCapability.Utils.Lang
7749     * @atomicservice
7750     * @since 12
7751     */
7752    /**
7753     * Calls the specified callback function for all the elements in an array. The return value of
7754     * the callback function is the accumulated result, and is provided as an argument in the next
7755     * call to the callback function.
7756     *
7757     * @param { TypedArrayReduceCallback<number, number, Uint16Array> } callbackFn - A function that
7758     *     accepts up to four arguments.
7759     *     The reduce method calls the callbackfn function one time for each element in the array.
7760     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
7761     *     the accumulation. The first call to the callbackfn function provides this value as an argument
7762     *     instead of an array value.
7763     * @returns { number } The value that results from running the "reducer" callback function to
7764     *     completion over the entire typed array.
7765     * @throws { BusinessError } 401 - Parameter error.
7766     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
7767     * @throws { BusinessError } 10200201 - Concurrent modification error.
7768     * @syscap SystemCapability.Utils.Lang
7769     * @crossplatform
7770     * @atomicservice
7771     * @since 18
7772     */
7773    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint16Array>, initialValue: number): number;
7774    /**
7775     * Calls the specified callback function for all the elements in an array. The return value of
7776     * the callback function is the accumulated result, and is provided as an argument in the next
7777     * call to the callback function.
7778     *
7779     * @param { TypedArrayReduceCallback<U, number, Uint16Array> } callbackFn - A function that
7780     *     accepts up to four arguments.
7781     *     The reduce method calls the callbackfn function one time for each element in the array.
7782     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
7783     *     the accumulation. The first call to the callbackfn function provides this value as an argument
7784     *     instead of an array value.
7785     * @returns { U } The value that results from running the "reducer" callback function to
7786     *     completion over the entire typed array.
7787     * @throws { BusinessError } 401 - Parameter error.
7788     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
7789     * @throws { BusinessError } 10200201 - Concurrent modification error.
7790     * @syscap SystemCapability.Utils.Lang
7791     * @atomicservice
7792     * @since 12
7793     */
7794    /**
7795     * Calls the specified callback function for all the elements in an array. The return value of
7796     * the callback function is the accumulated result, and is provided as an argument in the next
7797     * call to the callback function.
7798     *
7799     * @param { TypedArrayReduceCallback<U, number, Uint16Array> } callbackFn - A function that
7800     *     accepts up to four arguments.
7801     *     The reduce method calls the callbackfn function one time for each element in the array.
7802     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
7803     *     the accumulation. The first call to the callbackfn function provides this value as an argument
7804     *     instead of an array value.
7805     * @returns { U } The value that results from running the "reducer" callback function to
7806     *     completion over the entire typed array.
7807     * @throws { BusinessError } 401 - Parameter error.
7808     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
7809     * @throws { BusinessError } 10200201 - Concurrent modification error.
7810     * @syscap SystemCapability.Utils.Lang
7811     * @crossplatform
7812     * @atomicservice
7813     * @since 18
7814     */
7815    reduce<U>(callbackFn: TypedArrayReduceCallback<U, number, Uint16Array>, initialValue: U): U;
7816    /**
7817     * Reverses the elements in an Array.
7818     *
7819     * @returns { Uint16Array } The reference to the original typed array, now reversed.
7820     *     <br/>Note that the typed array is reversed in place, and no copy is made.
7821     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
7822     * @throws { BusinessError } 10200201 - Concurrent modification error.
7823     * @syscap SystemCapability.Utils.Lang
7824     * @atomicservice
7825     * @since 12
7826     */
7827    /**
7828     * Reverses the elements in an Array.
7829     *
7830     * @returns { Uint16Array } The reference to the original typed array, now reversed.
7831     *     <br/>Note that the typed array is reversed in place, and no copy is made.
7832     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
7833     * @throws { BusinessError } 10200201 - Concurrent modification error.
7834     * @syscap SystemCapability.Utils.Lang
7835     * @crossplatform
7836     * @atomicservice
7837     * @since 18
7838     */
7839    reverse(): Uint16Array;
7840    /**
7841     * Sets a value or an array of values.
7842     *
7843     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
7844     * @param { number } [offset] - The index in the current array at which the values are to be written.
7845     * @throws { BusinessError } 401 - Parameter error.
7846     * @throws { BusinessError } 10200011 - The set method cannot be bound.
7847     * @throws { BusinessError } 10200201 - Concurrent modification error.
7848     * @syscap SystemCapability.Utils.Lang
7849     * @atomicservice
7850     * @since 12
7851     */
7852    /**
7853     * Sets a value or an array of values.
7854     *
7855     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
7856     * @param { number } [offset] - The index in the current array at which the values are to be written.
7857     * @throws { BusinessError } 401 - Parameter error.
7858     * @throws { BusinessError } 10200011 - The set method cannot be bound.
7859     * @throws { BusinessError } 10200201 - Concurrent modification error.
7860     * @syscap SystemCapability.Utils.Lang
7861     * @crossplatform
7862     * @atomicservice
7863     * @since 18
7864     */
7865    set(array: ArrayLike<number>, offset?: number): void;
7866    /**
7867     * Returns a section of an array.
7868     *
7869     * @param { number } [start] - The beginning of the specified portion of the array.
7870     * @param { number } [end] - The end of the specified portion of the array.
7871     *     This is exclusive of the element at the index 'end'.
7872     * @returns { Uint16Array } A new typed array containing the extracted elements.
7873     * @throws { BusinessError } 401 - Parameter error.
7874     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
7875     * @throws { BusinessError } 10200201 - Concurrent modification error.
7876     * @syscap SystemCapability.Utils.Lang
7877     * @atomicservice
7878     * @since 12
7879     */
7880    /**
7881     * Returns a section of an array.
7882     *
7883     * @param { number } [start] - The beginning of the specified portion of the array.
7884     * @param { number } [end] - The end of the specified portion of the array.
7885     *     This is exclusive of the element at the index 'end'.
7886     * @returns { Uint16Array } A new typed array containing the extracted elements.
7887     * @throws { BusinessError } 401 - Parameter error.
7888     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
7889     * @throws { BusinessError } 10200201 - Concurrent modification error.
7890     * @syscap SystemCapability.Utils.Lang
7891     * @crossplatform
7892     * @atomicservice
7893     * @since 18
7894     */
7895    slice(start?: number, end?: number): Uint16Array;
7896    /**
7897     * Determines whether the specified callback function returns true for any element of an array.
7898     *
7899     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - A function that accepts up to three arguments.
7900     *     The some method calls the predicate function for each element in the array until
7901     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
7902     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
7903     *     in which case true is immediately returned.
7904     * @throws { BusinessError } 401 - Parameter error.
7905     * @throws { BusinessError } 10200011 - The some method cannot be bound.
7906     * @throws { BusinessError } 10200201 - Concurrent modification error.
7907     * @syscap SystemCapability.Utils.Lang
7908     * @atomicservice
7909     * @since 12
7910     */
7911    /**
7912     * Determines whether the specified callback function returns true for any element of an array.
7913     *
7914     * @param { TypedArrayPredicateFn<number, Uint16Array> } predicate - A function that accepts up to three arguments.
7915     *     The some method calls the predicate function for each element in the array until
7916     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
7917     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
7918     *     in which case true is immediately returned.
7919     * @throws { BusinessError } 401 - Parameter error.
7920     * @throws { BusinessError } 10200011 - The some method cannot be bound.
7921     * @throws { BusinessError } 10200201 - Concurrent modification error.
7922     * @syscap SystemCapability.Utils.Lang
7923     * @crossplatform
7924     * @atomicservice
7925     * @since 18
7926     */
7927    some(predicate: TypedArrayPredicateFn<number, Uint16Array>): boolean;
7928    /**
7929     * Sorts an array.
7930     *
7931     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
7932     *     It is expected to return a negative value if first argument is less than second argument,
7933     *     zero if they're equal and a positive value otherwise.
7934     *     If omitted, the elements are sorted in ascending, ASCII character order.
7935     * @returns { Uint16Array } The reference to the original typed array, now sorted.
7936     *     Note that the typed array is sorted in place and no copy is made.
7937     * @throws { BusinessError } 401 - Parameter error.
7938     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
7939     * @throws { BusinessError } 10200201 - Concurrent modification error.
7940     * @syscap SystemCapability.Utils.Lang
7941     * @atomicservice
7942     * @since 12
7943     */
7944    /**
7945     * Sorts an array.
7946     *
7947     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
7948     *     It is expected to return a negative value if first argument is less than second argument,
7949     *     zero if they're equal and a positive value otherwise.
7950     *     If omitted, the elements are sorted in ascending, ASCII character order.
7951     * @returns { Uint16Array } The reference to the original typed array, now sorted.
7952     *     Note that the typed array is sorted in place and no copy is made.
7953     * @throws { BusinessError } 401 - Parameter error.
7954     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
7955     * @throws { BusinessError } 10200201 - Concurrent modification error.
7956     * @syscap SystemCapability.Utils.Lang
7957     * @crossplatform
7958     * @atomicservice
7959     * @since 18
7960     */
7961    sort(compareFn?: TypedArrayCompareFn<number>): Uint16Array;
7962    /**
7963     * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
7964     * at begin, inclusive, up to end, exclusive.
7965     *
7966     * @param { number } [begin] - The index of the beginning of the array.
7967     * @param { number } [end] - The index of the end of the array.
7968     * @returns { Uint16Array } A new Uint16Array object.
7969     * @throws { BusinessError } 401 - Parameter error.
7970     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
7971     * @throws { BusinessError } 10200201 - Concurrent modification error.
7972     * @syscap SystemCapability.Utils.Lang
7973     * @atomicservice
7974     * @since 12
7975     */
7976    /**
7977     * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
7978     * at begin, inclusive, up to end, exclusive.
7979     *
7980     * @param { number } [begin] - The index of the beginning of the array.
7981     * @param { number } [end] - The index of the end of the array.
7982     * @returns { Uint16Array } A new Uint16Array object.
7983     * @throws { BusinessError } 401 - Parameter error.
7984     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
7985     * @throws { BusinessError } 10200201 - Concurrent modification error.
7986     * @syscap SystemCapability.Utils.Lang
7987     * @crossplatform
7988     * @atomicservice
7989     * @since 18
7990     */
7991    subarray(begin?: number, end?: number): Uint16Array;
7992    /**
7993     * Returns the item located at the specified index.
7994     *
7995     * @param { number } index - The zero-based index of the desired code unit.<br/>
7996     *     A negative index will count back from the last item.
7997     * @returns { number | undefined } The element in the array matching the given index.<br/>
7998     *     Always returns undefined if index < -array.length or
7999     *     index >= array.length without attempting to access the corresponding property.
8000     * @throws { BusinessError } 401 - Parameter error.
8001     * @throws { BusinessError } 10200011 - The at method cannot be bound.
8002     * @throws { BusinessError } 10200201 - Concurrent modification error.
8003     * @syscap SystemCapability.Utils.Lang
8004     * @atomicservice
8005     * @since 12
8006     */
8007    /**
8008     * Returns the item located at the specified index.
8009     *
8010     * @param { number } index - The zero-based index of the desired code unit.<br/>
8011     *     A negative index will count back from the last item.
8012     * @returns { number | undefined } The element in the array matching the given index.<br/>
8013     *     Always returns undefined if index < -array.length or
8014     *     index >= array.length without attempting to access the corresponding property.
8015     * @throws { BusinessError } 401 - Parameter error.
8016     * @throws { BusinessError } 10200011 - The at method cannot be bound.
8017     * @throws { BusinessError } 10200201 - Concurrent modification error.
8018     * @syscap SystemCapability.Utils.Lang
8019     * @crossplatform
8020     * @atomicservice
8021     * @since 18
8022     */
8023    at(index: number): number | undefined;
8024    /**
8025     * Returns an iterator that iterates over numbers.
8026     *
8027     * @returns { IterableIterator<number> } Iterator object that yields numbers.
8028     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
8029     * @syscap SystemCapability.Utils.Lang
8030     * @atomicservice
8031     * @since 12
8032     */
8033    /**
8034     * Returns an iterator that iterates over numbers.
8035     *
8036     * @returns { IterableIterator<number> } Iterator object that yields numbers.
8037     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
8038     * @syscap SystemCapability.Utils.Lang
8039     * @crossplatform
8040     * @atomicservice
8041     * @since 18
8042     */
8043    [Symbol.iterator](): IterableIterator<number>;
8044    /**
8045     * Returns an iterable of key, value pairs for every entry in the array
8046     *
8047     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
8048     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
8049     * @throws { BusinessError } 10200201 - Concurrent modification error.
8050     * @syscap SystemCapability.Utils.Lang
8051     * @atomicservice
8052     * @since 12
8053     */
8054    /**
8055     * Returns an iterable of key, value pairs for every entry in the array
8056     *
8057     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
8058     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
8059     * @throws { BusinessError } 10200201 - Concurrent modification error.
8060     * @syscap SystemCapability.Utils.Lang
8061     * @crossplatform
8062     * @atomicservice
8063     * @since 18
8064     */
8065    entries(): IterableIterator<[number, number]>;
8066    /**
8067     * Returns an iterable of keys in the array
8068     *
8069     * @returns { IterableIterator<number> } A new iterable iterator object.
8070     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
8071     * @throws { BusinessError } 10200201 - Concurrent modification error.
8072     * @syscap SystemCapability.Utils.Lang
8073     * @atomicservice
8074     * @since 12
8075     */
8076    /**
8077     * Returns an iterable of keys in the array
8078     *
8079     * @returns { IterableIterator<number> } A new iterable iterator object.
8080     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
8081     * @throws { BusinessError } 10200201 - Concurrent modification error.
8082     * @syscap SystemCapability.Utils.Lang
8083     * @crossplatform
8084     * @atomicservice
8085     * @since 18
8086     */
8087    keys(): IterableIterator<number>;
8088    /**
8089     * Returns an iterable of values in the array
8090     *
8091     * @returns { IterableIterator<number> } A new iterable iterator object.
8092     * @throws { BusinessError } 10200011 - The values method cannot be bound.
8093     * @throws { BusinessError } 10200201 - Concurrent modification error.
8094     * @syscap SystemCapability.Utils.Lang
8095     * @atomicservice
8096     * @since 12
8097     */
8098    /**
8099     * Returns an iterable of values in the array
8100     *
8101     * @returns { IterableIterator<number> } A new iterable iterator object.
8102     * @throws { BusinessError } 10200011 - The values method cannot be bound.
8103     * @throws { BusinessError } 10200201 - Concurrent modification error.
8104     * @syscap SystemCapability.Utils.Lang
8105     * @crossplatform
8106     * @atomicservice
8107     * @since 18
8108     */
8109    values(): IterableIterator<number>;
8110    /**
8111     * Determines whether an array includes a certain element, returning true or false as appropriate.
8112     *
8113     * @param { number } searchElement - The element to search for.
8114     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
8115     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
8116     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
8117     * @throws { BusinessError } 401 - Parameter error.
8118     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
8119     * @throws { BusinessError } 10200201 - Concurrent modification error.
8120     * @syscap SystemCapability.Utils.Lang
8121     * @atomicservice
8122     * @since 12
8123     */
8124    /**
8125     * Determines whether an array includes a certain element, returning true or false as appropriate.
8126     *
8127     * @param { number } searchElement - The element to search for.
8128     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
8129     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
8130     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
8131     * @throws { BusinessError } 401 - Parameter error.
8132     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
8133     * @throws { BusinessError } 10200201 - Concurrent modification error.
8134     * @syscap SystemCapability.Utils.Lang
8135     * @crossplatform
8136     * @atomicservice
8137     * @since 18
8138     */
8139    includes(searchElement: number, fromIndex?: number): boolean;
8140    /**
8141     * Returns the item at that index.
8142     *
8143     * @syscap SystemCapability.Utils.Lang
8144     * @atomicservice
8145     * @since 12
8146     */
8147    /**
8148     * Returns the item at that index.
8149     *
8150     * @syscap SystemCapability.Utils.Lang
8151     * @crossplatform
8152     * @atomicservice
8153     * @since 18
8154     */
8155    [index: number]: number;
8156    /**
8157     * Find the last occurrence of a specified element in an Uint16Array.
8158     *
8159     * @param { number } searchElement - Element to search for in the Uint16Array..
8160     * @param { number } fromIndex - The index at which to start the search. If provided:
8161     *	   <br>If this index is negative, it is treated as Uint16Array.length + fromIndex.
8162     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
8163     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
8164     * @throws { BusinessError } 10200201 - Concurrent modification error.
8165     * @syscap SystemCapability.Utils.Lang
8166     * @atomicservice
8167     * @since 18
8168     */
8169    lastIndexOf(searchElement: number, fromIndex?: number): number;
8170    /**
8171     * Reduce elements in an Uint16Array from right to left.
8172     *
8173     * @param { TypedArrayReduceCallback<U, number, Uint16Array> } callbackFn - A function that is called for
8174     * each element in the Uint16Array.
8175     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
8176     *     <br>If no initial value is provided, the last element of the Uint16Array will be used,
8177     *     <br>and the callback will start with the second-to-last element.
8178     * @returns { U } Returns the single value that results from the reduction.
8179     * @throws { BusinessError } 401 - Parameter error. Possible causes:
8180     *                                    1.Mandatory parameters are left unspecified.
8181     *                                    2.Incorrect parameter types.
8182     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
8183     * @throws { BusinessError } 10200201 - Concurrent modification error.
8184     * @syscap SystemCapability.Utils.Lang
8185     * @atomicservice
8186     * @since 18
8187     */
8188    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Uint16Array>, initialValue: U): U;
8189    /**
8190     * Reduce elements in an Uint16Array from right to left.
8191     *
8192     * @param { TypedArrayReduceCallback<number, number, Uint16Array> } callbackFn - A function that is called for
8193     * each element in the Uint16Array.
8194     * @returns { number } Returns the single value that results from the reduction.
8195     * @throws { BusinessError } 401 - Parameter error. Possible causes:
8196     *                                    1.Mandatory parameters are left unspecified.
8197     *                                    2.Incorrect parameter types.
8198     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
8199     * @throws { BusinessError } 10200201 - Concurrent modification error.
8200     * @syscap SystemCapability.Utils.Lang
8201     * @atomicservice
8202     * @since 18
8203     */
8204    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Uint16Array>): number;
8205    /**
8206     * Convert an Uint16Array to a string.
8207     *
8208     * @returns { string } Returns a string representing the specified Uint16Array and its elements,
8209     * separated by commas.
8210     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
8211     * @throws { BusinessError } 10200201 - Concurrent modification error.
8212     * @syscap SystemCapability.Utils.Lang
8213     * @atomicservice
8214     * @since 18
8215     */
8216    toString(): string;
8217    /**
8218     * Convert an Uint16Array to a string, The elements are converted to string using their toLocaleString methods.
8219     *
8220     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
8221     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
8222     * @throws { BusinessError } 10200201 - Concurrent modification error.
8223     * @syscap SystemCapability.Utils.Lang
8224     * @atomicservice
8225     * @since 18
8226     */
8227    toLocaleString(): string;
8228    /**
8229     * Create an Uint16Array containing these parameters.
8230     *
8231     * @param { number[] } items - A variable number of arguments that will be used as the elements of the Uint16Array.
8232     * @returns { Uint16Array } Returns a new Uint16Array instance containing the specified elements.
8233     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
8234     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
8235     * @static
8236     * @syscap SystemCapability.Utils.Lang
8237     * @atomicservice
8238     * @since 18
8239     */
8240    static of(...items: number[]): Uint16Array;
8241 }
8242
8243  /**
8244   * A typed array of 32-bit integer values. The contents are initialized to 0.
8245   * If multiple threads access a Int32Array instance concurrently,
8246   * and at least one of the threads modifies the array structurally,
8247   * it must be synchronized externally.
8248   *
8249   * @syscap SystemCapability.Utils.Lang
8250   * @atomicservice
8251   * @since 12
8252   */
8253  /**
8254   * A typed array of 32-bit integer values. The contents are initialized to 0.
8255   * If multiple threads access a Int32Array instance concurrently,
8256   * and at least one of the threads modifies the array structurally,
8257   * it must be synchronized externally.
8258   *
8259   * @syscap SystemCapability.Utils.Lang
8260   * @crossplatform
8261   * @atomicservice
8262   * @since 18
8263   */
8264  @Sendable
8265  class Int32Array {
8266    /**
8267     * The size in bytes of each element in the array.
8268     *
8269     * @type { number }
8270     * @readonly
8271     * @static
8272     * @syscap SystemCapability.Utils.Lang
8273     * @atomicservice
8274     * @since 12
8275     */
8276    /**
8277     * The size in bytes of each element in the array.
8278     *
8279     * @type { number }
8280     * @readonly
8281     * @static
8282     * @syscap SystemCapability.Utils.Lang
8283     * @crossplatform
8284     * @atomicservice
8285     * @since 18
8286     */
8287    static readonly BYTES_PER_ELEMENT: number;
8288    /**
8289     * The ArrayBuffer instance referenced by the array.
8290     *
8291     * @type { ArrayBuffer }
8292     * @readonly
8293     * @syscap SystemCapability.Utils.Lang
8294     * @atomicservice
8295     * @since 12
8296     */
8297    /**
8298     * The ArrayBuffer instance referenced by the array.
8299     *
8300     * @type { ArrayBuffer }
8301     * @readonly
8302     * @syscap SystemCapability.Utils.Lang
8303     * @crossplatform
8304     * @atomicservice
8305     * @since 18
8306     */
8307    readonly buffer: ArrayBuffer;
8308    /**
8309     * The length in bytes of the array.
8310     *
8311     * @type { number }
8312     * @readonly
8313     * @syscap SystemCapability.Utils.Lang
8314     * @atomicservice
8315     * @since 12
8316     */
8317    /**
8318     * The length in bytes of the array.
8319     *
8320     * @type { number }
8321     * @readonly
8322     * @syscap SystemCapability.Utils.Lang
8323     * @crossplatform
8324     * @atomicservice
8325     * @since 18
8326     */
8327    readonly byteLength: number;
8328    /**
8329     * The offset in bytes of the array.
8330     *
8331     * @type { number }
8332     * @readonly
8333     * @syscap SystemCapability.Utils.Lang
8334     * @atomicservice
8335     * @since 12
8336     */
8337    /**
8338     * The offset in bytes of the array.
8339     *
8340     * @type { number }
8341     * @readonly
8342     * @syscap SystemCapability.Utils.Lang
8343     * @crossplatform
8344     * @atomicservice
8345     * @since 18
8346     */
8347    readonly byteOffset: number;
8348    /**
8349     * The length of the array.
8350     *
8351     * @type { number }
8352     * @readonly
8353     * @syscap SystemCapability.Utils.Lang
8354     * @atomicservice
8355     * @since 12
8356     */
8357    /**
8358     * The length of the array.
8359     *
8360     * @type { number }
8361     * @readonly
8362     * @syscap SystemCapability.Utils.Lang
8363     * @crossplatform
8364     * @atomicservice
8365     * @since 18
8366     */
8367    readonly length: number;
8368    /**
8369     * A constructor used to create an Int32Array.
8370     *
8371     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8372     * @syscap SystemCapability.Utils.Lang
8373     * @atomicservice
8374     * @since 12
8375     */
8376    /**
8377     * A constructor used to create an Int32Array.
8378     *
8379     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8380     * @syscap SystemCapability.Utils.Lang
8381     * @crossplatform
8382     * @atomicservice
8383     * @since 18
8384     */
8385    constructor();
8386    /**
8387     * A constructor used to create an Int32Array.
8388     *
8389     * @param { number } length - The length of the array
8390     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8391     * @throws { BusinessError } 401 - Parameter error.
8392     * @syscap SystemCapability.Utils.Lang
8393     * @atomicservice
8394     * @since 12
8395     */
8396    /**
8397     * A constructor used to create an Int32Array.
8398     *
8399     * @param { number } length - The length of the array
8400     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8401     * @throws { BusinessError } 401 - Parameter error.
8402     * @syscap SystemCapability.Utils.Lang
8403     * @crossplatform
8404     * @atomicservice
8405     * @since 18
8406     */
8407    constructor(length: number);
8408    /**
8409     * A constructor used to create an Int32Array.
8410     *
8411     * @param { Iterable<number> } elements - An iterable object to convert to an Int32Array.
8412     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8413     * @throws { BusinessError } 401 - Parameter error.
8414     * @syscap SystemCapability.Utils.Lang
8415     * @atomicservice
8416     * @since 12
8417     */
8418    /**
8419     * A constructor used to create an Int32Array.
8420     *
8421     * @param { Iterable<number> } elements - An iterable object to convert to an Int32Array.
8422     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8423     * @throws { BusinessError } 401 - Parameter error.
8424     * @syscap SystemCapability.Utils.Lang
8425     * @crossplatform
8426     * @atomicservice
8427     * @since 18
8428     */
8429    constructor(elements: Iterable<number>);
8430    /**
8431     * A constructor used to create an Int32Array.
8432     *
8433     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
8434     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8435     * @throws { BusinessError } 401 - Parameter error.
8436     * @syscap SystemCapability.Utils.Lang
8437     * @atomicservice
8438     * @since 12
8439     */
8440    /**
8441     * A constructor used to create an Int32Array.
8442     *
8443     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
8444     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8445     * @throws { BusinessError } 401 - Parameter error.
8446     * @syscap SystemCapability.Utils.Lang
8447     * @crossplatform
8448     * @atomicservice
8449     * @since 18
8450     */
8451    constructor(array: ArrayLike<number> | ArrayBuffer);
8452    /**
8453     * A constructor used to create an Int32Array.
8454     *
8455     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
8456     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
8457     *     that will be exposed by the typed array view.
8458     * @param { number } [length] - The length parameter specifies the memory range
8459     *     that will be exposed by the typed array view.
8460     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8461     * @throws { BusinessError } 401 - Parameter error.
8462     * @syscap SystemCapability.Utils.Lang
8463     * @atomicservice
8464     * @since 12
8465     */
8466    /**
8467     * A constructor used to create an Int32Array.
8468     *
8469     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
8470     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
8471     *     that will be exposed by the typed array view.
8472     * @param { number } [length] - The length parameter specifies the memory range
8473     *     that will be exposed by the typed array view.
8474     * @throws { BusinessError } 10200012 - The Int32Array's constructor cannot be directly invoked.
8475     * @throws { BusinessError } 401 - Parameter error.
8476     * @syscap SystemCapability.Utils.Lang
8477     * @crossplatform
8478     * @atomicservice
8479     * @since 18
8480     */
8481    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
8482    /**
8483     * Creates an Int32Array from an array-like object.
8484     *
8485     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Int32Array.
8486     * @returns { Int32Array } A new Int32Array instance
8487     * @throws { BusinessError } 401 - Parameter error.
8488     * @static
8489     * @syscap SystemCapability.Utils.Lang
8490     * @atomicservice
8491     * @since 12
8492     */
8493    /**
8494     * Creates an Int32Array from an array-like object.
8495     *
8496     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Int32Array.
8497     * @returns { Int32Array } A new Int32Array instance
8498     * @throws { BusinessError } 401 - Parameter error.
8499     * @static
8500     * @syscap SystemCapability.Utils.Lang
8501     * @crossplatform
8502     * @atomicservice
8503     * @since 18
8504     */
8505    static from(arrayLike: ArrayLike<number>): Int32Array;
8506    /**
8507     * Creates an Int32Array from an array-like object.
8508     *
8509     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Int32Array.
8510     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
8511     * @returns { Int32Array } A new Int32Array instance
8512     * @throws { BusinessError } 401 - Parameter error.
8513     * @static
8514     * @syscap SystemCapability.Utils.Lang
8515     * @atomicservice
8516     * @since 12
8517     */
8518    /**
8519     * Creates an Int32Array from an array-like object.
8520     *
8521     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Int32Array.
8522     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
8523     * @returns { Int32Array } A new Int32Array instance
8524     * @throws { BusinessError } 401 - Parameter error.
8525     * @static
8526     * @syscap SystemCapability.Utils.Lang
8527     * @crossplatform
8528     * @atomicservice
8529     * @since 18
8530     */
8531    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Int32Array;
8532    /**
8533     * Creates an Int32Array from an iterable object.
8534     *
8535     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Int32Array.
8536     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
8537     *     call on every element of the array.
8538     * @returns { Int32Array } A new Int32Array instance
8539     * @throws { BusinessError } 401 - Parameter error.
8540     * @static
8541     * @syscap SystemCapability.Utils.Lang
8542     * @atomicservice
8543     * @since 12
8544     */
8545    /**
8546     * Creates an Int32Array from an iterable object.
8547     *
8548     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Int32Array.
8549     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
8550     *     call on every element of the array.
8551     * @returns { Int32Array } A new Int32Array instance
8552     * @throws { BusinessError } 401 - Parameter error.
8553     * @static
8554     * @syscap SystemCapability.Utils.Lang
8555     * @crossplatform
8556     * @atomicservice
8557     * @since 18
8558     */
8559    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Int32Array;
8560    /**
8561     * Returns the this object after copying a section of the array identified by start and end
8562     * to the same array starting at position target.
8563     *
8564     * @param { number } target - If target is negative, it is treated as length+target where length is the
8565     *     length of the array.
8566     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
8567     *     is treated as length+end.
8568     * @param { number } [end] - If not specified, length of the this object is used as its default value.
8569     * @returns { Int32Array } The array itself.
8570     * @throws { BusinessError } 401 - Parameter error.
8571     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
8572     * @throws { BusinessError } 10200201 - Concurrent modification error.
8573     * @syscap SystemCapability.Utils.Lang
8574     * @atomicservice
8575     * @since 12
8576     */
8577    /**
8578     * Returns the this object after copying a section of the array identified by start and end
8579     * to the same array starting at position target.
8580     *
8581     * @param { number } target - If target is negative, it is treated as length+target where length is the
8582     *     length of the array.
8583     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
8584     *     is treated as length+end.
8585     * @param { number } [end] - If not specified, length of the this object is used as its default value.
8586     * @returns { Int32Array } The array itself.
8587     * @throws { BusinessError } 401 - Parameter error.
8588     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
8589     * @throws { BusinessError } 10200201 - Concurrent modification error.
8590     * @syscap SystemCapability.Utils.Lang
8591     * @crossplatform
8592     * @atomicservice
8593     * @since 18
8594     */
8595    copyWithin(target: number, start: number, end?: number): Int32Array;
8596    /**
8597     * Determines whether all the members of an array satisfy the specified test.
8598     *
8599     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - A function that accepts up to three arguments.
8600     *     The every method calls the predicate function for each element in the array until
8601     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
8602     * @returns { boolean } true unless predicate returns a false value for a typed array element,
8603     *     in which case false is immediately returned.
8604     * @throws { BusinessError } 401 - Parameter error.
8605     * @throws { BusinessError } 10200011 - The every method cannot be bound.
8606     * @throws { BusinessError } 10200201 - Concurrent modification error.
8607     * @syscap SystemCapability.Utils.Lang
8608     * @atomicservice
8609     * @since 12
8610     */
8611    /**
8612     * Determines whether all the members of an array satisfy the specified test.
8613     *
8614     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - A function that accepts up to three arguments.
8615     *     The every method calls the predicate function for each element in the array until
8616     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
8617     * @returns { boolean } true unless predicate returns a false value for a typed array element,
8618     *     in which case false is immediately returned.
8619     * @throws { BusinessError } 401 - Parameter error.
8620     * @throws { BusinessError } 10200011 - The every method cannot be bound.
8621     * @throws { BusinessError } 10200201 - Concurrent modification error.
8622     * @syscap SystemCapability.Utils.Lang
8623     * @crossplatform
8624     * @atomicservice
8625     * @since 18
8626     */
8627    every(predicate: TypedArrayPredicateFn<number, Int32Array>): boolean;
8628    /**
8629     * Returns the this object after filling the section identified by start and end with value.
8630     *
8631     * @param { number } value - value to fill array section with.
8632     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
8633     *     length+start where length is the length of the array.
8634     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
8635     *     length+end.
8636     * @returns { Int32Array } The array itself.
8637     * @throws { BusinessError } 401 - Parameter error.
8638     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
8639     * @throws { BusinessError } 10200201 - Concurrent modification error.
8640     * @syscap SystemCapability.Utils.Lang
8641     * @atomicservice
8642     * @since 12
8643     */
8644    /**
8645     * Returns the this object after filling the section identified by start and end with value.
8646     *
8647     * @param { number } value - value to fill array section with.
8648     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
8649     *     length+start where length is the length of the array.
8650     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
8651     *     length+end.
8652     * @returns { Int32Array } The array itself.
8653     * @throws { BusinessError } 401 - Parameter error.
8654     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
8655     * @throws { BusinessError } 10200201 - Concurrent modification error.
8656     * @syscap SystemCapability.Utils.Lang
8657     * @crossplatform
8658     * @atomicservice
8659     * @since 18
8660     */
8661    fill(value: number, start?: number, end?: number): Int32Array;
8662    /**
8663     * Returns the elements of an array that meet the condition specified in a callback function.
8664     *
8665     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - A function that accepts up to three arguments.
8666     *     The filter method calls the predicate function one time for each element in the array.
8667     * @returns { Int32Array } The array itself.
8668     * @throws { BusinessError } 401 - Parameter error.
8669     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
8670     * @throws { BusinessError } 10200201 - Concurrent modification error.
8671     * @syscap SystemCapability.Utils.Lang
8672     * @atomicservice
8673     * @since 12
8674     */
8675    /**
8676     * Returns the elements of an array that meet the condition specified in a callback function.
8677     *
8678     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - A function that accepts up to three arguments.
8679     *     The filter method calls the predicate function one time for each element in the array.
8680     * @returns { Int32Array } The array itself.
8681     * @throws { BusinessError } 401 - Parameter error.
8682     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
8683     * @throws { BusinessError } 10200201 - Concurrent modification error.
8684     * @syscap SystemCapability.Utils.Lang
8685     * @crossplatform
8686     * @atomicservice
8687     * @since 18
8688     */
8689    filter(predicate: TypedArrayPredicateFn<number, Int32Array>): Int32Array;
8690    /**
8691     * Returns the value of the first element in the array where predicate is true, and undefined
8692     * otherwise.
8693     *
8694     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - find calls predicate once for each element of
8695     *     the array, in ascending order, until it finds one where predicate returns true.
8696     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
8697     * @returns { number | undefined } The first element in the typed array
8698     *     that satisfies the provided testing function. Otherwise, undefined is returned.
8699     * @throws { BusinessError } 401 - Parameter error.
8700     * @throws { BusinessError } 10200011 - The find method cannot be bound.
8701     * @throws { BusinessError } 10200201 - Concurrent modification error.
8702     * @syscap SystemCapability.Utils.Lang
8703     * @atomicservice
8704     * @since 12
8705     */
8706    /**
8707     * Returns the value of the first element in the array where predicate is true, and undefined
8708     * otherwise.
8709     *
8710     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - find calls predicate once for each element of
8711     *     the array, in ascending order, until it finds one where predicate returns true.
8712     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
8713     * @returns { number | undefined } The first element in the typed array
8714     *     that satisfies the provided testing function. Otherwise, undefined is returned.
8715     * @throws { BusinessError } 401 - Parameter error.
8716     * @throws { BusinessError } 10200011 - The find method cannot be bound.
8717     * @throws { BusinessError } 10200201 - Concurrent modification error.
8718     * @syscap SystemCapability.Utils.Lang
8719     * @crossplatform
8720     * @atomicservice
8721     * @since 18
8722     */
8723    find(predicate: TypedArrayPredicateFn<number, Int32Array>): number | undefined;
8724    /**
8725     * Returns the index of the first element in the array where predicate is true, and -1
8726     * otherwise.
8727     *
8728     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - find calls predicate once for each element of
8729     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
8730     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
8731     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
8732     * @throws { BusinessError } 401 - Parameter error.
8733     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
8734     * @throws { BusinessError } 10200201 - Concurrent modification error.
8735     * @syscap SystemCapability.Utils.Lang
8736     * @atomicservice
8737     * @since 12
8738     */
8739    /**
8740     * Returns the index of the first element in the array where predicate is true, and -1
8741     * otherwise.
8742     *
8743     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - find calls predicate once for each element of
8744     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
8745     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
8746     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
8747     * @throws { BusinessError } 401 - Parameter error.
8748     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
8749     * @throws { BusinessError } 10200201 - Concurrent modification error.
8750     * @syscap SystemCapability.Utils.Lang
8751     * @crossplatform
8752     * @atomicservice
8753     * @since 18
8754     */
8755    findIndex(predicate: TypedArrayPredicateFn<number, Int32Array>): number;
8756    /**
8757     * Performs the specified action for each element in an array.
8758     *
8759     * @param { TypedArrayForEachCallback<number, Int32Array> } callbackFn -  A function that
8760     *     accepts up to three arguments.
8761     *     forEach calls the callbackfn function one time for each element in the array.
8762     * @throws { BusinessError } 401 - Parameter error.
8763     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
8764     * @throws { BusinessError } 10200201 - Concurrent modification error.
8765     * @syscap SystemCapability.Utils.Lang
8766     * @atomicservice
8767     * @since 12
8768     */
8769    /**
8770     * Performs the specified action for each element in an array.
8771     *
8772     * @param { TypedArrayForEachCallback<number, Int32Array> } callbackFn -  A function that
8773     *     accepts up to three arguments.
8774     *     forEach calls the callbackfn function one time for each element in the array.
8775     * @throws { BusinessError } 401 - Parameter error.
8776     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
8777     * @throws { BusinessError } 10200201 - Concurrent modification error.
8778     * @syscap SystemCapability.Utils.Lang
8779     * @crossplatform
8780     * @atomicservice
8781     * @since 18
8782     */
8783    forEach(callbackFn: TypedArrayForEachCallback<number, Int32Array>): void;
8784    /**
8785     * Returns the index of the first occurrence of a value in an array.
8786     *
8787     * @param { number } searchElement - The value to locate in the array.
8788     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
8789     *      search starts at index 0.
8790     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
8791     * @throws { BusinessError } 401 - Parameter error.
8792     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
8793     * @throws { BusinessError } 10200201 - Concurrent modification error.
8794     * @syscap SystemCapability.Utils.Lang
8795     * @atomicservice
8796     * @since 12
8797     */
8798    /**
8799     * Returns the index of the first occurrence of a value in an array.
8800     *
8801     * @param { number } searchElement - The value to locate in the array.
8802     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
8803     *      search starts at index 0.
8804     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
8805     * @throws { BusinessError } 401 - Parameter error.
8806     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
8807     * @throws { BusinessError } 10200201 - Concurrent modification error.
8808     * @syscap SystemCapability.Utils.Lang
8809     * @crossplatform
8810     * @atomicservice
8811     * @since 18
8812     */
8813    indexOf(searchElement: number, fromIndex?: number): number;
8814    /**
8815     * Adds all the elements of an array separated by the specified separator string.
8816     * @param { string } [separator] - A string used to separate one element of an array from the next in the
8817     *     resulting String. If omitted, the array elements are separated with a comma.
8818     * @returns { string } A string with all typed array elements joined.
8819     *     If array.length is 0, the empty string is returned.
8820     * @throws { BusinessError } 401 - Parameter error.
8821     * @throws { BusinessError } 10200011 - The join method cannot be bound.
8822     * @throws { BusinessError } 10200201 - Concurrent modification error.
8823     * @syscap SystemCapability.Utils.Lang
8824     * @atomicservice
8825     * @since 12
8826     */
8827    /**
8828     * Adds all the elements of an array separated by the specified separator string.
8829     * @param { string } [separator] - A string used to separate one element of an array from the next in the
8830     *     resulting String. If omitted, the array elements are separated with a comma.
8831     * @returns { string } A string with all typed array elements joined.
8832     *     If array.length is 0, the empty string is returned.
8833     * @throws { BusinessError } 401 - Parameter error.
8834     * @throws { BusinessError } 10200011 - The join method cannot be bound.
8835     * @throws { BusinessError } 10200201 - Concurrent modification error.
8836     * @syscap SystemCapability.Utils.Lang
8837     * @crossplatform
8838     * @atomicservice
8839     * @since 18
8840     */
8841    join(separator?: string): string;
8842    /**
8843     * Calls a defined callback function on each element of an array, and returns an array that
8844     * contains the results.
8845     *
8846     * @param { TypedArrayMapCallback<number, Int32Array> } callbackFn - A function that
8847     *     accepts up to three arguments.
8848     *     The map method calls the callbackfn function one time for each element in the array.
8849     * @returns { Int32Array } The array itself.
8850     * @throws { BusinessError } 401 - Parameter error.
8851     * @throws { BusinessError } 10200011 - The map method cannot be bound.
8852     * @throws { BusinessError } 10200201 - Concurrent modification error.
8853     * @syscap SystemCapability.Utils.Lang
8854     * @atomicservice
8855     * @since 12
8856     */
8857    /**
8858     * Calls a defined callback function on each element of an array, and returns an array that
8859     * contains the results.
8860     *
8861     * @param { TypedArrayMapCallback<number, Int32Array> } callbackFn - A function that
8862     *     accepts up to three arguments.
8863     *     The map method calls the callbackfn function one time for each element in the array.
8864     * @returns { Int32Array } The array itself.
8865     * @throws { BusinessError } 401 - Parameter error.
8866     * @throws { BusinessError } 10200011 - The map method cannot be bound.
8867     * @throws { BusinessError } 10200201 - Concurrent modification error.
8868     * @syscap SystemCapability.Utils.Lang
8869     * @crossplatform
8870     * @atomicservice
8871     * @since 18
8872     */
8873    map(callbackFn: TypedArrayMapCallback<number, Int32Array>): Int32Array;
8874    /**
8875     * Calls the specified callback function for all the elements in an array. The return value of
8876     * the callback function is the accumulated result, and is provided as an argument in the next
8877     * call to the callback function.
8878     *
8879     * @param { TypedArrayReduceCallback<number, number, Int32Array> } callbackFn - A function that
8880     *     accepts up to four arguments.
8881     *     The reduce method calls the callbackfn function one time for each element in the array.
8882     * @returns { number } The value that results from running the "reducer" callback function to
8883     *     completion over the entire typed array.
8884     * @throws { BusinessError } 401 - Parameter error.
8885     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
8886     * @throws { BusinessError } 10200201 - Concurrent modification error.
8887     * @syscap SystemCapability.Utils.Lang
8888     * @atomicservice
8889     * @since 12
8890     */
8891    /**
8892     * Calls the specified callback function for all the elements in an array. The return value of
8893     * the callback function is the accumulated result, and is provided as an argument in the next
8894     * call to the callback function.
8895     *
8896     * @param { TypedArrayReduceCallback<number, number, Int32Array> } callbackFn - A function that
8897     *     accepts up to four arguments.
8898     *     The reduce method calls the callbackfn function one time for each element in the array.
8899     * @returns { number } The value that results from running the "reducer" callback function to
8900     *     completion over the entire typed array.
8901     * @throws { BusinessError } 401 - Parameter error.
8902     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
8903     * @throws { BusinessError } 10200201 - Concurrent modification error.
8904     * @syscap SystemCapability.Utils.Lang
8905     * @crossplatform
8906     * @atomicservice
8907     * @since 18
8908     */
8909    reduce(callbackFn: TypedArrayReduceCallback<number, number, Int32Array>): number;
8910    /**
8911     * Calls the specified callback function for all the elements in an array. The return value of
8912     * the callback function is the accumulated result, and is provided as an argument in the next
8913     * call to the callback function.
8914     *
8915     * @param { TypedArrayReduceCallback<number, number, Int32Array> } callbackFn - A function that
8916     *     accepts up to four arguments.
8917     *     The reduce method calls the callbackfn function one time for each element in the array.
8918     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
8919     *     the accumulation. The first call to the callbackfn function provides this value as an argument
8920     *     instead of an array value.
8921     * @returns { number } The value that results from running the "reducer" callback function to
8922     *     completion over the entire typed array.
8923     * @throws { BusinessError } 401 - Parameter error.
8924     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
8925     * @throws { BusinessError } 10200201 - Concurrent modification error.
8926     * @syscap SystemCapability.Utils.Lang
8927     * @atomicservice
8928     * @since 12
8929     */
8930    /**
8931     * Calls the specified callback function for all the elements in an array. The return value of
8932     * the callback function is the accumulated result, and is provided as an argument in the next
8933     * call to the callback function.
8934     *
8935     * @param { TypedArrayReduceCallback<number, number, Int32Array> } callbackFn - A function that
8936     *     accepts up to four arguments.
8937     *     The reduce method calls the callbackfn function one time for each element in the array.
8938     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
8939     *     the accumulation. The first call to the callbackfn function provides this value as an argument
8940     *     instead of an array value.
8941     * @returns { number } The value that results from running the "reducer" callback function to
8942     *     completion over the entire typed array.
8943     * @throws { BusinessError } 401 - Parameter error.
8944     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
8945     * @throws { BusinessError } 10200201 - Concurrent modification error.
8946     * @syscap SystemCapability.Utils.Lang
8947     * @crossplatform
8948     * @atomicservice
8949     * @since 18
8950     */
8951    reduce(callbackFn: TypedArrayReduceCallback<number, number, Int32Array>, initialValue: number): number;
8952    /**
8953     * Calls the specified callback function for all the elements in an array. The return value of
8954     * the callback function is the accumulated result, and is provided as an argument in the next
8955     * call to the callback function.
8956     *
8957     * @param { TypedArrayReduceCallback<U, number, Int32Array> } callbackFn - A function that
8958     *     accepts up to four arguments.
8959     *     The reduce method calls the callbackfn function one time for each element in the array.
8960     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
8961     *     the accumulation. The first call to the callbackfn function provides this value as an argument
8962     *     instead of an array value.
8963     * @returns { U } The value that results from running the "reducer" callback function to
8964     *     completion over the entire typed array.
8965     * @throws { BusinessError } 401 - Parameter error.
8966     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
8967     * @throws { BusinessError } 10200201 - Concurrent modification error.
8968     * @syscap SystemCapability.Utils.Lang
8969     * @atomicservice
8970     * @since 12
8971     */
8972    /**
8973     * Calls the specified callback function for all the elements in an array. The return value of
8974     * the callback function is the accumulated result, and is provided as an argument in the next
8975     * call to the callback function.
8976     *
8977     * @param { TypedArrayReduceCallback<U, number, Int32Array> } callbackFn - A function that
8978     *     accepts up to four arguments.
8979     *     The reduce method calls the callbackfn function one time for each element in the array.
8980     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
8981     *     the accumulation. The first call to the callbackfn function provides this value as an argument
8982     *     instead of an array value.
8983     * @returns { U } The value that results from running the "reducer" callback function to
8984     *     completion over the entire typed array.
8985     * @throws { BusinessError } 401 - Parameter error.
8986     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
8987     * @throws { BusinessError } 10200201 - Concurrent modification error.
8988     * @syscap SystemCapability.Utils.Lang
8989     * @crossplatform
8990     * @atomicservice
8991     * @since 18
8992     */
8993    reduce<U>(callbackFn: TypedArrayReduceCallback<U, number, Int32Array>, initialValue: U): U;
8994    /**
8995     * Reverses the elements in an Array.
8996     *
8997     * @returns { Int32Array } The reference to the original typed array, now reversed.
8998     *     <br/>Note that the typed array is reversed in place, and no copy is made.
8999     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
9000     * @throws { BusinessError } 10200201 - Concurrent modification error.
9001     * @syscap SystemCapability.Utils.Lang
9002     * @atomicservice
9003     * @since 12
9004     */
9005    /**
9006     * Reverses the elements in an Array.
9007     *
9008     * @returns { Int32Array } The reference to the original typed array, now reversed.
9009     *     <br/>Note that the typed array is reversed in place, and no copy is made.
9010     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
9011     * @throws { BusinessError } 10200201 - Concurrent modification error.
9012     * @syscap SystemCapability.Utils.Lang
9013     * @crossplatform
9014     * @atomicservice
9015     * @since 18
9016     */
9017    reverse(): Int32Array;
9018    /**
9019     * Sets a value or an array of values.
9020     *
9021     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
9022     * @param { number } [offset] - The index in the current array at which the values are to be written.
9023     * @throws { BusinessError } 401 - Parameter error.
9024     * @throws { BusinessError } 10200011 - The set method cannot be bound.
9025     * @throws { BusinessError } 10200201 - Concurrent modification error.
9026     * @syscap SystemCapability.Utils.Lang
9027     * @atomicservice
9028     * @since 12
9029     */
9030    /**
9031     * Sets a value or an array of values.
9032     *
9033     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
9034     * @param { number } [offset] - The index in the current array at which the values are to be written.
9035     * @throws { BusinessError } 401 - Parameter error.
9036     * @throws { BusinessError } 10200011 - The set method cannot be bound.
9037     * @throws { BusinessError } 10200201 - Concurrent modification error.
9038     * @syscap SystemCapability.Utils.Lang
9039     * @crossplatform
9040     * @atomicservice
9041     * @since 18
9042     */
9043    set(array: ArrayLike<number>, offset?: number): void;
9044    /**
9045     * Returns a section of an array.
9046     *
9047     * @param { number } [start] - The beginning of the specified portion of the array.
9048     * @param { number } [end] - The end of the specified portion of the array.
9049     *     This is exclusive of the element at the index 'end'.
9050     * @returns { Int32Array } A new typed array containing the extracted elements.
9051     * @throws { BusinessError } 401 - Parameter error.
9052     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
9053     * @throws { BusinessError } 10200201 - Concurrent modification error.
9054     * @syscap SystemCapability.Utils.Lang
9055     * @atomicservice
9056     * @since 12
9057     */
9058    /**
9059     * Returns a section of an array.
9060     *
9061     * @param { number } [start] - The beginning of the specified portion of the array.
9062     * @param { number } [end] - The end of the specified portion of the array.
9063     *     This is exclusive of the element at the index 'end'.
9064     * @returns { Int32Array } A new typed array containing the extracted elements.
9065     * @throws { BusinessError } 401 - Parameter error.
9066     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
9067     * @throws { BusinessError } 10200201 - Concurrent modification error.
9068     * @syscap SystemCapability.Utils.Lang
9069     * @crossplatform
9070     * @atomicservice
9071     * @since 18
9072     */
9073    slice(start?: number, end?: number): Int32Array;
9074    /**
9075     * Determines whether the specified callback function returns true for any element of an array.
9076     *
9077     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - A function that accepts up to three arguments.
9078     *     The some method calls the predicate function for each element in the array until
9079     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
9080     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
9081     *     in which case true is immediately returned.
9082     * @throws { BusinessError } 401 - Parameter error.
9083     * @throws { BusinessError } 10200011 - The some method cannot be bound.
9084     * @throws { BusinessError } 10200201 - Concurrent modification error.
9085     * @syscap SystemCapability.Utils.Lang
9086     * @atomicservice
9087     * @since 12
9088     */
9089    /**
9090     * Determines whether the specified callback function returns true for any element of an array.
9091     *
9092     * @param { TypedArrayPredicateFn<number, Int32Array> } predicate - A function that accepts up to three arguments.
9093     *     The some method calls the predicate function for each element in the array until
9094     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
9095     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
9096     *     in which case true is immediately returned.
9097     * @throws { BusinessError } 401 - Parameter error.
9098     * @throws { BusinessError } 10200011 - The some method cannot be bound.
9099     * @throws { BusinessError } 10200201 - Concurrent modification error.
9100     * @syscap SystemCapability.Utils.Lang
9101     * @crossplatform
9102     * @atomicservice
9103     * @since 18
9104     */
9105    some(predicate: TypedArrayPredicateFn<number, Int32Array>): boolean;
9106    /**
9107     * Sorts an array.
9108     *
9109     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
9110     *     It is expected to return a negative value if first argument is less than second argument,
9111     *     zero if they're equal and a positive value otherwise.
9112     *     If omitted, the elements are sorted in ascending, ASCII character order.
9113     * @returns { Int32Array } The reference to the original typed array, now sorted.
9114     *     Note that the typed array is sorted in place and no copy is made.
9115     * @throws { BusinessError } 401 - Parameter error.
9116     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
9117     * @throws { BusinessError } 10200201 - Concurrent modification error.
9118     * @syscap SystemCapability.Utils.Lang
9119     * @atomicservice
9120     * @since 12
9121     */
9122    /**
9123     * Sorts an array.
9124     *
9125     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
9126     *     It is expected to return a negative value if first argument is less than second argument,
9127     *     zero if they're equal and a positive value otherwise.
9128     *     If omitted, the elements are sorted in ascending, ASCII character order.
9129     * @returns { Int32Array } The reference to the original typed array, now sorted.
9130     *     Note that the typed array is sorted in place and no copy is made.
9131     * @throws { BusinessError } 401 - Parameter error.
9132     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
9133     * @throws { BusinessError } 10200201 - Concurrent modification error.
9134     * @syscap SystemCapability.Utils.Lang
9135     * @crossplatform
9136     * @atomicservice
9137     * @since 18
9138     */
9139    sort(compareFn?: TypedArrayCompareFn<number>): Int32Array;
9140    /**
9141     * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
9142     * at begin, inclusive, up to end, exclusive.
9143     *
9144     * @param { number } [begin] - The index of the beginning of the array.
9145     * @param { number } [end] - The index of the end of the array.
9146     * @returns { Int32Array } A new Int32Array object.
9147     * @throws { BusinessError } 401 - Parameter error.
9148     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
9149     * @throws { BusinessError } 10200201 - Concurrent modification error.
9150     * @syscap SystemCapability.Utils.Lang
9151     * @atomicservice
9152     * @since 12
9153     */
9154    /**
9155     * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
9156     * at begin, inclusive, up to end, exclusive.
9157     *
9158     * @param { number } [begin] - The index of the beginning of the array.
9159     * @param { number } [end] - The index of the end of the array.
9160     * @returns { Int32Array } A new Int32Array object.
9161     * @throws { BusinessError } 401 - Parameter error.
9162     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
9163     * @throws { BusinessError } 10200201 - Concurrent modification error.
9164     * @syscap SystemCapability.Utils.Lang
9165     * @crossplatform
9166     * @atomicservice
9167     * @since 18
9168     */
9169    subarray(begin?: number, end?: number): Int32Array;
9170    /**
9171     * Returns the item located at the specified index.
9172     *
9173     * @param { number } index - The zero-based index of the desired code unit.<br/>
9174     *     A negative index will count back from the last item.
9175     * @returns { number | undefined } The element in the array matching the given index.<br/>
9176     *     Always returns undefined if index < -array.length or
9177     *     index >= array.length without attempting to access the corresponding property.
9178     * @throws { BusinessError } 401 - Parameter error.
9179     * @throws { BusinessError } 10200011 - The at method cannot be bound.
9180     * @throws { BusinessError } 10200201 - Concurrent modification error.
9181     * @syscap SystemCapability.Utils.Lang
9182     * @atomicservice
9183     * @since 12
9184     */
9185    /**
9186     * Returns the item located at the specified index.
9187     *
9188     * @param { number } index - The zero-based index of the desired code unit.<br/>
9189     *     A negative index will count back from the last item.
9190     * @returns { number | undefined } The element in the array matching the given index.<br/>
9191     *     Always returns undefined if index < -array.length or
9192     *     index >= array.length without attempting to access the corresponding property.
9193     * @throws { BusinessError } 401 - Parameter error.
9194     * @throws { BusinessError } 10200011 - The at method cannot be bound.
9195     * @throws { BusinessError } 10200201 - Concurrent modification error.
9196     * @syscap SystemCapability.Utils.Lang
9197     * @crossplatform
9198     * @atomicservice
9199     * @since 18
9200     */
9201    at(index: number): number | undefined;
9202    /**
9203     * Returns an iterator that iterates over numbers.
9204     *
9205     * @returns { IterableIterator<number> } Iterator object that yields numbers.
9206     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
9207     * @syscap SystemCapability.Utils.Lang
9208     * @atomicservice
9209     * @since 12
9210     */
9211    /**
9212     * Returns an iterator that iterates over numbers.
9213     *
9214     * @returns { IterableIterator<number> } Iterator object that yields numbers.
9215     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
9216     * @syscap SystemCapability.Utils.Lang
9217     * @crossplatform
9218     * @atomicservice
9219     * @since 18
9220     */
9221    [Symbol.iterator](): IterableIterator<number>;
9222    /**
9223     * Returns an iterable of key, value pairs for every entry in the array
9224     *
9225     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
9226     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
9227     * @throws { BusinessError } 10200201 - Concurrent modification error.
9228     * @syscap SystemCapability.Utils.Lang
9229     * @atomicservice
9230     * @since 12
9231     */
9232    /**
9233     * Returns an iterable of key, value pairs for every entry in the array
9234     *
9235     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
9236     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
9237     * @throws { BusinessError } 10200201 - Concurrent modification error.
9238     * @syscap SystemCapability.Utils.Lang
9239     * @crossplatform
9240     * @atomicservice
9241     * @since 18
9242     */
9243    entries(): IterableIterator<[number, number]>;
9244    /**
9245     * Returns an iterable of keys in the array
9246     *
9247     * @returns { IterableIterator<number> } A new iterable iterator object.
9248     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
9249     * @throws { BusinessError } 10200201 - Concurrent modification error.
9250     * @syscap SystemCapability.Utils.Lang
9251     * @atomicservice
9252     * @since 12
9253     */
9254    /**
9255     * Returns an iterable of keys in the array
9256     *
9257     * @returns { IterableIterator<number> } A new iterable iterator object.
9258     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
9259     * @throws { BusinessError } 10200201 - Concurrent modification error.
9260     * @syscap SystemCapability.Utils.Lang
9261     * @crossplatform
9262     * @atomicservice
9263     * @since 18
9264     */
9265    keys(): IterableIterator<number>;
9266    /**
9267     * Returns an iterable of values in the array
9268     *
9269     * @returns { IterableIterator<number> } A new iterable iterator object.
9270     * @throws { BusinessError } 10200011 - The values method cannot be bound.
9271     * @throws { BusinessError } 10200201 - Concurrent modification error.
9272     * @syscap SystemCapability.Utils.Lang
9273     * @atomicservice
9274     * @since 12
9275     */
9276    /**
9277     * Returns an iterable of values in the array
9278     *
9279     * @returns { IterableIterator<number> } A new iterable iterator object.
9280     * @throws { BusinessError } 10200011 - The values method cannot be bound.
9281     * @throws { BusinessError } 10200201 - Concurrent modification error.
9282     * @syscap SystemCapability.Utils.Lang
9283     * @crossplatform
9284     * @atomicservice
9285     * @since 18
9286     */
9287    values(): IterableIterator<number>;
9288    /**
9289     * Determines whether an array includes a certain element, returning true or false as appropriate.
9290     *
9291     * @param { number } searchElement - The element to search for.
9292     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
9293     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
9294     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
9295     * @throws { BusinessError } 401 - Parameter error.
9296     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
9297     * @throws { BusinessError } 10200201 - Concurrent modification error.
9298     * @syscap SystemCapability.Utils.Lang
9299     * @atomicservice
9300     * @since 12
9301     */
9302    /**
9303     * Determines whether an array includes a certain element, returning true or false as appropriate.
9304     *
9305     * @param { number } searchElement - The element to search for.
9306     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
9307     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
9308     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
9309     * @throws { BusinessError } 401 - Parameter error.
9310     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
9311     * @throws { BusinessError } 10200201 - Concurrent modification error.
9312     * @syscap SystemCapability.Utils.Lang
9313     * @crossplatform
9314     * @atomicservice
9315     * @since 18
9316     */
9317    includes(searchElement: number, fromIndex?: number): boolean;
9318    /**
9319     * Returns the item at that index.
9320     *
9321     * @syscap SystemCapability.Utils.Lang
9322     * @atomicservice
9323     * @since 12
9324     */
9325    /**
9326     * Returns the item at that index.
9327     *
9328     * @syscap SystemCapability.Utils.Lang
9329     * @crossplatform
9330     * @atomicservice
9331     * @since 18
9332     */
9333    [index: number]: number;
9334    /**
9335     * Find the last occurrence of a specified element in an Int32Array.
9336     *
9337     * @param { number } searchElement - Element to search for in the Int32Array..
9338     * @param { number } fromIndex - The index at which to start the search. If provided:
9339     *	   <br>If this index is negative, it is treated as Int32Array.length + fromIndex.
9340     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
9341     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
9342     * @throws { BusinessError } 10200201 - Concurrent modification error.
9343     * @syscap SystemCapability.Utils.Lang
9344     * @atomicservice
9345     * @since 18
9346     */
9347    lastIndexOf(searchElement: number, fromIndex?: number): number;
9348    /**
9349     * Reduce elements in an Int32Array from right to left.
9350     *
9351     * @param { TypedArrayReduceCallback<U, number, Int32Array> } callbackFn - A function that is called for
9352     * each element in the Int32Array.
9353     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
9354     *     <br>If no initial value is provided, the last element of the Int32Array will be used,
9355     *     <br>and the callback will start with the second-to-last element.
9356     * @returns { U } Returns the single value that results from the reduction.
9357     * @throws { BusinessError } 401 - Parameter error. Possible causes:
9358     *                                    1.Mandatory parameters are left unspecified.
9359     *                                    2.Incorrect parameter types.
9360     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
9361     * @throws { BusinessError } 10200201 - Concurrent modification error.
9362     * @syscap SystemCapability.Utils.Lang
9363     * @atomicservice
9364     * @since 18
9365     */
9366    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Int32Array>, initialValue: U): U;
9367    /**
9368     * Reduce elements in an Int32Array from right to left.
9369     *
9370     * @param { TypedArrayReduceCallback<number, number, Int32Array> } callbackFn - A function that is called for
9371     * each element in the Int32Array.
9372     * @returns { number } Returns the single value that results from the reduction.
9373     * @throws { BusinessError } 401 - Parameter error. Possible causes:
9374     *                                    1.Mandatory parameters are left unspecified.
9375     *                                    2.Incorrect parameter types.
9376     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
9377     * @throws { BusinessError } 10200201 - Concurrent modification error.
9378     * @syscap SystemCapability.Utils.Lang
9379     * @atomicservice
9380     * @since 18
9381     */
9382    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Int32Array>): number;
9383    /**
9384     * Convert an Int32Array to a string.
9385     *
9386     * @returns { string } Returns a string representing the specified Int32Array and its elements,
9387     * separated by commas.
9388     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
9389     * @throws { BusinessError } 10200201 - Concurrent modification error.
9390     * @syscap SystemCapability.Utils.Lang
9391     * @atomicservice
9392     * @since 18
9393     */
9394    toString(): string;
9395    /**
9396     * Convert an Int32Array to a string, The elements are converted to string using their toLocaleString methods.
9397     *
9398     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
9399     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
9400     * @throws { BusinessError } 10200201 - Concurrent modification error.
9401     * @syscap SystemCapability.Utils.Lang
9402     * @atomicservice
9403     * @since 18
9404     */
9405    toLocaleString(): string;
9406    /**
9407     * Create an Int32Array containing these parameters.
9408     *
9409     * @param { number[] } items - A variable number of arguments that will be used as the elements of the Int32Array.
9410     * @returns { Int32Array } Returns a new Int32Array instance containing the specified elements.
9411     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
9412     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
9413     * @static
9414     * @syscap SystemCapability.Utils.Lang
9415     * @atomicservice
9416     * @since 18
9417     */
9418    static of(...items: number[]): Int32Array;
9419 }
9420
9421  /**
9422   * A typed array of 32-bit unsigned integer values. The contents are initialized to 0.
9423   * If multiple threads access a Uint32Array instance concurrently,
9424   * and at least one of the threads modifies the array structurally,
9425   * it must be synchronized externally.
9426   *
9427   * @syscap SystemCapability.Utils.Lang
9428   * @atomicservice
9429   * @since 12
9430   */
9431  /**
9432   * A typed array of 32-bit unsigned integer values. The contents are initialized to 0.
9433   * If multiple threads access a Uint32Array instance concurrently,
9434   * and at least one of the threads modifies the array structurally,
9435   * it must be synchronized externally.
9436   *
9437   * @syscap SystemCapability.Utils.Lang
9438   * @crossplatform
9439   * @atomicservice
9440   * @since 18
9441   */
9442  @Sendable
9443  class Uint32Array {
9444    /**
9445     * The size in bytes of each element in the array.
9446     *
9447     * @type { number }
9448     * @readonly
9449     * @static
9450     * @syscap SystemCapability.Utils.Lang
9451     * @atomicservice
9452     * @since 12
9453     */
9454    /**
9455     * The size in bytes of each element in the array.
9456     *
9457     * @type { number }
9458     * @readonly
9459     * @static
9460     * @syscap SystemCapability.Utils.Lang
9461     * @crossplatform
9462     * @atomicservice
9463     * @since 18
9464     */
9465    static readonly BYTES_PER_ELEMENT: number;
9466    /**
9467     * The ArrayBuffer instance referenced by the array.
9468     *
9469     * @type { ArrayBuffer }
9470     * @readonly
9471     * @syscap SystemCapability.Utils.Lang
9472     * @atomicservice
9473     * @since 12
9474     */
9475    /**
9476     * The ArrayBuffer instance referenced by the array.
9477     *
9478     * @type { ArrayBuffer }
9479     * @readonly
9480     * @syscap SystemCapability.Utils.Lang
9481     * @crossplatform
9482     * @atomicservice
9483     * @since 18
9484     */
9485    readonly buffer: ArrayBuffer;
9486    /**
9487     * The length in bytes of the array.
9488     *
9489     * @type { number }
9490     * @readonly
9491     * @syscap SystemCapability.Utils.Lang
9492     * @atomicservice
9493     * @since 12
9494     */
9495    /**
9496     * The length in bytes of the array.
9497     *
9498     * @type { number }
9499     * @readonly
9500     * @syscap SystemCapability.Utils.Lang
9501     * @crossplatform
9502     * @atomicservice
9503     * @since 18
9504     */
9505    readonly byteLength: number;
9506    /**
9507     * The offset in bytes of the array.
9508     *
9509     * @type { number }
9510     * @readonly
9511     * @syscap SystemCapability.Utils.Lang
9512     * @atomicservice
9513     * @since 12
9514     */
9515    /**
9516     * The offset in bytes of the array.
9517     *
9518     * @type { number }
9519     * @readonly
9520     * @syscap SystemCapability.Utils.Lang
9521     * @crossplatform
9522     * @atomicservice
9523     * @since 18
9524     */
9525    readonly byteOffset: number;
9526    /**
9527     * The length of the array.
9528     *
9529     * @type { number }
9530     * @readonly
9531     * @syscap SystemCapability.Utils.Lang
9532     * @atomicservice
9533     * @since 12
9534     */
9535    /**
9536     * The length of the array.
9537     *
9538     * @type { number }
9539     * @readonly
9540     * @syscap SystemCapability.Utils.Lang
9541     * @crossplatform
9542     * @atomicservice
9543     * @since 18
9544     */
9545    readonly length: number;
9546    /**
9547     * A constructor used to create an Uint32Array.
9548     *
9549     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9550     * @syscap SystemCapability.Utils.Lang
9551     * @atomicservice
9552     * @since 12
9553     */
9554    /**
9555     * A constructor used to create an Uint32Array.
9556     *
9557     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9558     * @syscap SystemCapability.Utils.Lang
9559     * @crossplatform
9560     * @atomicservice
9561     * @since 18
9562     */
9563    constructor();
9564    /**
9565     * A constructor used to create an Uint32Array.
9566     *
9567     * @param { number } length - The length of the array
9568     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9569     * @throws { BusinessError } 401 - Parameter error.
9570     * @syscap SystemCapability.Utils.Lang
9571     * @atomicservice
9572     * @since 12
9573     */
9574    /**
9575     * A constructor used to create an Uint32Array.
9576     *
9577     * @param { number } length - The length of the array
9578     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9579     * @throws { BusinessError } 401 - Parameter error.
9580     * @syscap SystemCapability.Utils.Lang
9581     * @crossplatform
9582     * @atomicservice
9583     * @since 18
9584     */
9585    constructor(length: number);
9586    /**
9587     * A constructor used to create an Uint32Array.
9588     *
9589     * @param { Iterable<number> } elements - An iterable object to convert to an Uint32Array.
9590     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9591     * @throws { BusinessError } 401 - Parameter error.
9592     * @syscap SystemCapability.Utils.Lang
9593     * @atomicservice
9594     * @since 12
9595     */
9596    /**
9597     * A constructor used to create an Uint32Array.
9598     *
9599     * @param { Iterable<number> } elements - An iterable object to convert to an Uint32Array.
9600     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9601     * @throws { BusinessError } 401 - Parameter error.
9602     * @syscap SystemCapability.Utils.Lang
9603     * @crossplatform
9604     * @atomicservice
9605     * @since 18
9606     */
9607    constructor(elements: Iterable<number>);
9608    /**
9609     * A constructor used to create an Uint32Array.
9610     *
9611     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
9612     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9613     * @throws { BusinessError } 401 - Parameter error.
9614     * @syscap SystemCapability.Utils.Lang
9615     * @atomicservice
9616     * @since 12
9617     */
9618    /**
9619     * A constructor used to create an Uint32Array.
9620     *
9621     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
9622     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9623     * @throws { BusinessError } 401 - Parameter error.
9624     * @syscap SystemCapability.Utils.Lang
9625     * @crossplatform
9626     * @atomicservice
9627     * @since 18
9628     */
9629    constructor(array: ArrayLike<number> | ArrayBuffer);
9630    /**
9631     * A constructor used to create an Uint32Array.
9632     *
9633     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
9634     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
9635     *     that will be exposed by the typed array view.
9636     * @param { number } [length] - The length parameter specifies the memory range
9637     *     that will be exposed by the typed array view.
9638     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9639     * @throws { BusinessError } 401 - Parameter error.
9640     * @syscap SystemCapability.Utils.Lang
9641     * @atomicservice
9642     * @since 12
9643     */
9644    /**
9645     * A constructor used to create an Uint32Array.
9646     *
9647     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
9648     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
9649     *     that will be exposed by the typed array view.
9650     * @param { number } [length] - The length parameter specifies the memory range
9651     *     that will be exposed by the typed array view.
9652     * @throws { BusinessError } 10200012 - The Uint32Array's constructor cannot be directly invoked.
9653     * @throws { BusinessError } 401 - Parameter error.
9654     * @syscap SystemCapability.Utils.Lang
9655     * @crossplatform
9656     * @atomicservice
9657     * @since 18
9658     */
9659    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
9660    /**
9661     * Creates an Uint32Array from an array-like object.
9662     *
9663     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Uint32Array.
9664     * @returns { Uint32Array } A new Uint32Array instance
9665     * @throws { BusinessError } 401 - Parameter error.
9666     * @static
9667     * @syscap SystemCapability.Utils.Lang
9668     * @atomicservice
9669     * @since 12
9670     */
9671    /**
9672     * Creates an Uint32Array from an array-like object.
9673     *
9674     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Uint32Array.
9675     * @returns { Uint32Array } A new Uint32Array instance
9676     * @throws { BusinessError } 401 - Parameter error.
9677     * @static
9678     * @syscap SystemCapability.Utils.Lang
9679     * @crossplatform
9680     * @atomicservice
9681     * @since 18
9682     */
9683    static from(arrayLike: ArrayLike<number>): Uint32Array;
9684    /**
9685     * Creates an Uint32Array from an array-like object.
9686     *
9687     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Uint32Array.
9688     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
9689     * @returns { Uint32Array } A new Uint32Array instance
9690     * @throws { BusinessError } 401 - Parameter error.
9691     * @static
9692     * @syscap SystemCapability.Utils.Lang
9693     * @atomicservice
9694     * @since 12
9695     */
9696    /**
9697     * Creates an Uint32Array from an array-like object.
9698     *
9699     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Uint32Array.
9700     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
9701     * @returns { Uint32Array } A new Uint32Array instance
9702     * @throws { BusinessError } 401 - Parameter error.
9703     * @static
9704     * @syscap SystemCapability.Utils.Lang
9705     * @crossplatform
9706     * @atomicservice
9707     * @since 18
9708     */
9709    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Uint32Array;
9710    /**
9711     * Creates an Uint32Array from an iterable object.
9712     *
9713     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Uint32Array.
9714     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
9715     *     call on every element of the array.
9716     * @returns { Uint32Array } A new Uint32Array instance
9717     * @throws { BusinessError } 401 - Parameter error.
9718     * @static
9719     * @syscap SystemCapability.Utils.Lang
9720     * @atomicservice
9721     * @since 12
9722     */
9723    /**
9724     * Creates an Uint32Array from an iterable object.
9725     *
9726     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Uint32Array.
9727     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
9728     *     call on every element of the array.
9729     * @returns { Uint32Array } A new Uint32Array instance
9730     * @throws { BusinessError } 401 - Parameter error.
9731     * @static
9732     * @syscap SystemCapability.Utils.Lang
9733     * @crossplatform
9734     * @atomicservice
9735     * @since 18
9736     */
9737    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Uint32Array;
9738    /**
9739     * Returns the this object after copying a section of the array identified by start and end
9740     * to the same array starting at position target.
9741     *
9742     * @param { number } target - If target is negative, it is treated as length+target where length is the
9743     *     length of the array.
9744     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
9745     *     is treated as length+end.
9746     * @param { number } [end] - If not specified, length of the this object is used as its default value.
9747     * @returns { Uint32Array } The array itself.
9748     * @throws { BusinessError } 401 - Parameter error.
9749     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
9750     * @throws { BusinessError } 10200201 - Concurrent modification error.
9751     * @syscap SystemCapability.Utils.Lang
9752     * @atomicservice
9753     * @since 12
9754     */
9755    /**
9756     * Returns the this object after copying a section of the array identified by start and end
9757     * to the same array starting at position target.
9758     *
9759     * @param { number } target - If target is negative, it is treated as length+target where length is the
9760     *     length of the array.
9761     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
9762     *     is treated as length+end.
9763     * @param { number } [end] - If not specified, length of the this object is used as its default value.
9764     * @returns { Uint32Array } The array itself.
9765     * @throws { BusinessError } 401 - Parameter error.
9766     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
9767     * @throws { BusinessError } 10200201 - Concurrent modification error.
9768     * @syscap SystemCapability.Utils.Lang
9769     * @crossplatform
9770     * @atomicservice
9771     * @since 18
9772     */
9773    copyWithin(target: number, start: number, end?: number): Uint32Array;
9774    /**
9775     * Determines whether all the members of an array satisfy the specified test.
9776     *
9777     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - A function that accepts up to three arguments.
9778     *     The every method calls the predicate function for each element in the array until
9779     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
9780     * @returns { boolean } true unless predicate returns a false value for a typed array element,
9781     *     in which case false is immediately returned.
9782     * @throws { BusinessError } 401 - Parameter error.
9783     * @throws { BusinessError } 10200011 - The every method cannot be bound.
9784     * @throws { BusinessError } 10200201 - Concurrent modification error.
9785     * @syscap SystemCapability.Utils.Lang
9786     * @atomicservice
9787     * @since 12
9788     */
9789    /**
9790     * Determines whether all the members of an array satisfy the specified test.
9791     *
9792     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - A function that accepts up to three arguments.
9793     *     The every method calls the predicate function for each element in the array until
9794     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
9795     * @returns { boolean } true unless predicate returns a false value for a typed array element,
9796     *     in which case false is immediately returned.
9797     * @throws { BusinessError } 401 - Parameter error.
9798     * @throws { BusinessError } 10200011 - The every method cannot be bound.
9799     * @throws { BusinessError } 10200201 - Concurrent modification error.
9800     * @syscap SystemCapability.Utils.Lang
9801     * @crossplatform
9802     * @atomicservice
9803     * @since 18
9804     */
9805    every(predicate: TypedArrayPredicateFn<number, Uint32Array>): boolean;
9806    /**
9807     * Returns the this object after filling the section identified by start and end with value.
9808     *
9809     * @param { number } value - value to fill array section with.
9810     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
9811     *     length+start where length is the length of the array.
9812     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
9813     *     length+end.
9814     * @returns { Uint32Array } The array itself.
9815     * @throws { BusinessError } 401 - Parameter error.
9816     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
9817     * @throws { BusinessError } 10200201 - Concurrent modification error.
9818     * @syscap SystemCapability.Utils.Lang
9819     * @atomicservice
9820     * @since 12
9821     */
9822    /**
9823     * Returns the this object after filling the section identified by start and end with value.
9824     *
9825     * @param { number } value - value to fill array section with.
9826     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
9827     *     length+start where length is the length of the array.
9828     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
9829     *     length+end.
9830     * @returns { Uint32Array } The array itself.
9831     * @throws { BusinessError } 401 - Parameter error.
9832     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
9833     * @throws { BusinessError } 10200201 - Concurrent modification error.
9834     * @syscap SystemCapability.Utils.Lang
9835     * @crossplatform
9836     * @atomicservice
9837     * @since 18
9838     */
9839    fill(value: number, start?: number, end?: number): Uint32Array;
9840    /**
9841     * Returns the elements of an array that meet the condition specified in a callback function.
9842     *
9843     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - A function that accepts up to three arguments.
9844     *     The filter method calls the predicate function one time for each element in the array.
9845     * @returns { Uint32Array } The array itself.
9846     * @throws { BusinessError } 401 - Parameter error.
9847     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
9848     * @throws { BusinessError } 10200201 - Concurrent modification error.
9849     * @syscap SystemCapability.Utils.Lang
9850     * @atomicservice
9851     * @since 12
9852     */
9853    /**
9854     * Returns the elements of an array that meet the condition specified in a callback function.
9855     *
9856     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - A function that accepts up to three arguments.
9857     *     The filter method calls the predicate function one time for each element in the array.
9858     * @returns { Uint32Array } The array itself.
9859     * @throws { BusinessError } 401 - Parameter error.
9860     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
9861     * @throws { BusinessError } 10200201 - Concurrent modification error.
9862     * @syscap SystemCapability.Utils.Lang
9863     * @crossplatform
9864     * @atomicservice
9865     * @since 18
9866     */
9867    filter(predicate: TypedArrayPredicateFn<number, Uint32Array>): Uint32Array;
9868    /**
9869     * Returns the value of the first element in the array where predicate is true, and undefined
9870     * otherwise.
9871     *
9872     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - find calls predicate once for each element of
9873     *     the array, in ascending order, until it finds one where predicate returns true.
9874     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
9875     * @returns { number | undefined } The first element in the typed array
9876     *     that satisfies the provided testing function. Otherwise, undefined is returned.
9877     * @throws { BusinessError } 401 - Parameter error.
9878     * @throws { BusinessError } 10200011 - The find method cannot be bound.
9879     * @throws { BusinessError } 10200201 - Concurrent modification error.
9880     * @syscap SystemCapability.Utils.Lang
9881     * @atomicservice
9882     * @since 12
9883     */
9884    /**
9885     * Returns the value of the first element in the array where predicate is true, and undefined
9886     * otherwise.
9887     *
9888     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - find calls predicate once for each element of
9889     *     the array, in ascending order, until it finds one where predicate returns true.
9890     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
9891     * @returns { number | undefined } The first element in the typed array
9892     *     that satisfies the provided testing function. Otherwise, undefined is returned.
9893     * @throws { BusinessError } 401 - Parameter error.
9894     * @throws { BusinessError } 10200011 - The find method cannot be bound.
9895     * @throws { BusinessError } 10200201 - Concurrent modification error.
9896     * @syscap SystemCapability.Utils.Lang
9897     * @crossplatform
9898     * @atomicservice
9899     * @since 18
9900     */
9901    find(predicate: TypedArrayPredicateFn<number, Uint32Array>): number | undefined;
9902    /**
9903     * Returns the index of the first element in the array where predicate is true, and -1
9904     * otherwise.
9905     *
9906     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - find calls predicate once for each element of
9907     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
9908     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
9909     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
9910     * @throws { BusinessError } 401 - Parameter error.
9911     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
9912     * @throws { BusinessError } 10200201 - Concurrent modification error.
9913     * @syscap SystemCapability.Utils.Lang
9914     * @atomicservice
9915     * @since 12
9916     */
9917    /**
9918     * Returns the index of the first element in the array where predicate is true, and -1
9919     * otherwise.
9920     *
9921     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - find calls predicate once for each element of
9922     *     the array, in ascending order, until it finds one where predicate returns true. If such an element is found,
9923     *     findIndex immediately returns that element index. Otherwise, findIndex returns -1.
9924     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
9925     * @throws { BusinessError } 401 - Parameter error.
9926     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
9927     * @throws { BusinessError } 10200201 - Concurrent modification error.
9928     * @syscap SystemCapability.Utils.Lang
9929     * @crossplatform
9930     * @atomicservice
9931     * @since 18
9932     */
9933    findIndex(predicate: TypedArrayPredicateFn<number, Uint32Array>): number;
9934    /**
9935     * Performs the specified action for each element in an array.
9936     *
9937     * @param { TypedArrayForEachCallback<number, Uint32Array> } callbackFn -  A function that
9938     *     accepts up to three arguments.
9939     *     forEach calls the callbackfn function one time for each element in the array.
9940     * @throws { BusinessError } 401 - Parameter error.
9941     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
9942     * @throws { BusinessError } 10200201 - Concurrent modification error.
9943     * @syscap SystemCapability.Utils.Lang
9944     * @atomicservice
9945     * @since 12
9946     */
9947    /**
9948     * Performs the specified action for each element in an array.
9949     *
9950     * @param { TypedArrayForEachCallback<number, Uint32Array> } callbackFn -  A function that
9951     *     accepts up to three arguments.
9952     *     forEach calls the callbackfn function one time for each element in the array.
9953     * @throws { BusinessError } 401 - Parameter error.
9954     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
9955     * @throws { BusinessError } 10200201 - Concurrent modification error.
9956     * @syscap SystemCapability.Utils.Lang
9957     * @crossplatform
9958     * @atomicservice
9959     * @since 18
9960     */
9961    forEach(callbackFn: TypedArrayForEachCallback<number, Uint32Array>): void;
9962    /**
9963     * Returns the index of the first occurrence of a value in an array.
9964     *
9965     * @param { number } searchElement - The value to locate in the array.
9966     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
9967     *      search starts at index 0.
9968     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
9969     * @throws { BusinessError } 401 - Parameter error.
9970     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
9971     * @throws { BusinessError } 10200201 - Concurrent modification error.
9972     * @syscap SystemCapability.Utils.Lang
9973     * @atomicservice
9974     * @since 12
9975     */
9976    /**
9977     * Returns the index of the first occurrence of a value in an array.
9978     *
9979     * @param { number } searchElement - The value to locate in the array.
9980     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
9981     *      search starts at index 0.
9982     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
9983     * @throws { BusinessError } 401 - Parameter error.
9984     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
9985     * @throws { BusinessError } 10200201 - Concurrent modification error.
9986     * @syscap SystemCapability.Utils.Lang
9987     * @crossplatform
9988     * @atomicservice
9989     * @since 18
9990     */
9991    indexOf(searchElement: number, fromIndex?: number): number;
9992    /**
9993     * Adds all the elements of an array separated by the specified separator string.
9994     * @param { string } [separator] - A string used to separate one element of an array from the next in the
9995     *     resulting String. If omitted, the array elements are separated with a comma.
9996     * @returns { string } A string with all typed array elements joined.
9997     *     If array.length is 0, the empty string is returned.
9998     * @throws { BusinessError } 401 - Parameter error.
9999     * @throws { BusinessError } 10200011 - The join method cannot be bound.
10000     * @throws { BusinessError } 10200201 - Concurrent modification error.
10001     * @syscap SystemCapability.Utils.Lang
10002     * @atomicservice
10003     * @since 12
10004     */
10005    /**
10006     * Adds all the elements of an array separated by the specified separator string.
10007     * @param { string } [separator] - A string used to separate one element of an array from the next in the
10008     *     resulting String. If omitted, the array elements are separated with a comma.
10009     * @returns { string } A string with all typed array elements joined.
10010     *     If array.length is 0, the empty string is returned.
10011     * @throws { BusinessError } 401 - Parameter error.
10012     * @throws { BusinessError } 10200011 - The join method cannot be bound.
10013     * @throws { BusinessError } 10200201 - Concurrent modification error.
10014     * @syscap SystemCapability.Utils.Lang
10015     * @crossplatform
10016     * @atomicservice
10017     * @since 18
10018     */
10019    join(separator?: string): string;
10020    /**
10021     * Calls a defined callback function on each element of an array, and returns an array that
10022     * contains the results.
10023     *
10024     * @param { TypedArrayMapCallback<number, Uint32Array> } callbackFn - A function that accepts up to
10025     *     three arguments. The map method calls the callbackfn function one time for each element in the array.
10026     * @returns { Uint32Array } The array itself.
10027     * @throws { BusinessError } 401 - Parameter error.
10028     * @throws { BusinessError } 10200011 - The map method cannot be bound.
10029     * @throws { BusinessError } 10200201 - Concurrent modification error.
10030     * @syscap SystemCapability.Utils.Lang
10031     * @atomicservice
10032     * @since 12
10033     */
10034    /**
10035     * Calls a defined callback function on each element of an array, and returns an array that
10036     * contains the results.
10037     *
10038     * @param { TypedArrayMapCallback<number, Uint32Array> } callbackFn - A function that accepts up to
10039     *     three arguments. The map method calls the callbackfn function one time for each element in the array.
10040     * @returns { Uint32Array } The array itself.
10041     * @throws { BusinessError } 401 - Parameter error.
10042     * @throws { BusinessError } 10200011 - The map method cannot be bound.
10043     * @throws { BusinessError } 10200201 - Concurrent modification error.
10044     * @syscap SystemCapability.Utils.Lang
10045     * @crossplatform
10046     * @atomicservice
10047     * @since 18
10048     */
10049    map(callbackFn: TypedArrayMapCallback<number, Uint32Array>): Uint32Array;
10050    /**
10051     * Calls the specified callback function for all the elements in an array. The return value of
10052     * the callback function is the accumulated result, and is provided as an argument in the next
10053     * call to the callback function.
10054     *
10055     * @param { TypedArrayReduceCallback<number, number, Uint32Array> } callbackFn - A function that
10056     *     accepts up to four arguments.
10057     *     The reduce method calls the callbackfn function one time for each element in the array.
10058     * @returns { number } The value that results from running the "reducer" callback function to
10059     *     completion over the entire typed array.
10060     * @throws { BusinessError } 401 - Parameter error.
10061     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
10062     * @throws { BusinessError } 10200201 - Concurrent modification error.
10063     * @syscap SystemCapability.Utils.Lang
10064     * @atomicservice
10065     * @since 12
10066     */
10067    /**
10068     * Calls the specified callback function for all the elements in an array. The return value of
10069     * the callback function is the accumulated result, and is provided as an argument in the next
10070     * call to the callback function.
10071     *
10072     * @param { TypedArrayReduceCallback<number, number, Uint32Array> } callbackFn - A function that
10073     *     accepts up to four arguments.
10074     *     The reduce method calls the callbackfn function one time for each element in the array.
10075     * @returns { number } The value that results from running the "reducer" callback function to
10076     *     completion over the entire typed array.
10077     * @throws { BusinessError } 401 - Parameter error.
10078     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
10079     * @throws { BusinessError } 10200201 - Concurrent modification error.
10080     * @syscap SystemCapability.Utils.Lang
10081     * @crossplatform
10082     * @atomicservice
10083     * @since 18
10084     */
10085    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint32Array>): number;
10086    /**
10087     * Calls the specified callback function for all the elements in an array. The return value of
10088     * the callback function is the accumulated result, and is provided as an argument in the next
10089     * call to the callback function.
10090     *
10091     * @param { TypedArrayReduceCallback<number, number, Uint32Array> } callbackFn - A function that
10092     *     accepts up to four arguments.
10093     *     The reduce method calls the callbackfn function one time for each element in the array.
10094     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
10095     *     the accumulation. The first call to the callbackfn function provides this value as an argument
10096     *     instead of an array value.
10097     * @returns { number } The value that results from running the "reducer" callback function to
10098     *     completion over the entire typed array.
10099     * @throws { BusinessError } 401 - Parameter error.
10100     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
10101     * @throws { BusinessError } 10200201 - Concurrent modification error.
10102     * @syscap SystemCapability.Utils.Lang
10103     * @atomicservice
10104     * @since 12
10105     */
10106    /**
10107     * Calls the specified callback function for all the elements in an array. The return value of
10108     * the callback function is the accumulated result, and is provided as an argument in the next
10109     * call to the callback function.
10110     *
10111     * @param { TypedArrayReduceCallback<number, number, Uint32Array> } callbackFn - A function that
10112     *     accepts up to four arguments.
10113     *     The reduce method calls the callbackfn function one time for each element in the array.
10114     * @param { number } initialValue - If initialValue is specified, it is used as the initial value to start
10115     *     the accumulation. The first call to the callbackfn function provides this value as an argument
10116     *     instead of an array value.
10117     * @returns { number } The value that results from running the "reducer" callback function to
10118     *     completion over the entire typed array.
10119     * @throws { BusinessError } 401 - Parameter error.
10120     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
10121     * @throws { BusinessError } 10200201 - Concurrent modification error.
10122     * @syscap SystemCapability.Utils.Lang
10123     * @crossplatform
10124     * @atomicservice
10125     * @since 18
10126     */
10127    reduce(callbackFn: TypedArrayReduceCallback<number, number, Uint32Array>, initialValue: number): number;
10128    /**
10129     * Calls the specified callback function for all the elements in an array. The return value of
10130     * the callback function is the accumulated result, and is provided as an argument in the next
10131     * call to the callback function.
10132     *
10133     * @param { TypedArrayReduceCallback<U, number, Uint32Array> } callbackFn - A function that
10134     *     accepts up to four arguments.
10135     *     The reduce method calls the callbackfn function one time for each element in the array.
10136     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
10137     *     the accumulation. The first call to the callbackfn function provides this value as an argument
10138     *     instead of an array value.
10139     * @returns { U } The value that results from running the "reducer" callback function to
10140     *     completion over the entire typed array.
10141     * @throws { BusinessError } 401 - Parameter error.
10142     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
10143     * @throws { BusinessError } 10200201 - Concurrent modification error.
10144     * @syscap SystemCapability.Utils.Lang
10145     * @atomicservice
10146     * @since 12
10147     */
10148    /**
10149     * Calls the specified callback function for all the elements in an array. The return value of
10150     * the callback function is the accumulated result, and is provided as an argument in the next
10151     * call to the callback function.
10152     *
10153     * @param { TypedArrayReduceCallback<U, number, Uint32Array> } callbackFn - A function that
10154     *     accepts up to four arguments.
10155     *     The reduce method calls the callbackfn function one time for each element in the array.
10156     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
10157     *     the accumulation. The first call to the callbackfn function provides this value as an argument
10158     *     instead of an array value.
10159     * @returns { U } The value that results from running the "reducer" callback function to
10160     *     completion over the entire typed array.
10161     * @throws { BusinessError } 401 - Parameter error.
10162     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
10163     * @throws { BusinessError } 10200201 - Concurrent modification error.
10164     * @syscap SystemCapability.Utils.Lang
10165     * @crossplatform
10166     * @atomicservice
10167     * @since 18
10168     */
10169    reduce<U>(callbackFn: TypedArrayReduceCallback<U, number, Uint32Array>, initialValue: U): U;
10170    /**
10171     * Reverses the elements in an Array.
10172     *
10173     * @returns { Uint32Array } The reference to the original typed array, now reversed.
10174     *     <br>Note that the typed array is reversed in place, and no copy is made.
10175     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
10176     * @throws { BusinessError } 10200201 - Concurrent modification error.
10177     * @syscap SystemCapability.Utils.Lang
10178     * @atomicservice
10179     * @since 12
10180     */
10181    /**
10182     * Reverses the elements in an Array.
10183     *
10184     * @returns { Uint32Array } The reference to the original typed array, now reversed.
10185     *     <br>Note that the typed array is reversed in place, and no copy is made.
10186     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
10187     * @throws { BusinessError } 10200201 - Concurrent modification error.
10188     * @syscap SystemCapability.Utils.Lang
10189     * @crossplatform
10190     * @atomicservice
10191     * @since 18
10192     */
10193    reverse(): Uint32Array;
10194    /**
10195     * Sets a value or an array of values.
10196     *
10197     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
10198     * @param { number } [offset] - The index in the current array at which the values are to be written.
10199     * @throws { BusinessError } 401 - Parameter error.
10200     * @throws { BusinessError } 10200011 - The set method cannot be bound.
10201     * @throws { BusinessError } 10200201 - Concurrent modification error.
10202     * @syscap SystemCapability.Utils.Lang
10203     * @atomicservice
10204     * @since 12
10205     */
10206    /**
10207     * Sets a value or an array of values.
10208     *
10209     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
10210     * @param { number } [offset] - The index in the current array at which the values are to be written.
10211     * @throws { BusinessError } 401 - Parameter error.
10212     * @throws { BusinessError } 10200011 - The set method cannot be bound.
10213     * @throws { BusinessError } 10200201 - Concurrent modification error.
10214     * @syscap SystemCapability.Utils.Lang
10215     * @crossplatform
10216     * @atomicservice
10217     * @since 18
10218     */
10219    set(array: ArrayLike<number>, offset?: number): void;
10220    /**
10221     * Returns a section of an array.
10222     *
10223     * @param { number } [start] - The beginning of the specified portion of the array.
10224     * @param { number } [end] - The end of the specified portion of the array.
10225     *     This is exclusive of the element at the index 'end'.
10226     * @returns { Uint32Array } A new typed array containing the extracted elements.
10227     * @throws { BusinessError } 401 - Parameter error.
10228     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
10229     * @throws { BusinessError } 10200201 - Concurrent modification error.
10230     * @syscap SystemCapability.Utils.Lang
10231     * @atomicservice
10232     * @since 12
10233     */
10234    /**
10235     * Returns a section of an array.
10236     *
10237     * @param { number } [start] - The beginning of the specified portion of the array.
10238     * @param { number } [end] - The end of the specified portion of the array.
10239     *     This is exclusive of the element at the index 'end'.
10240     * @returns { Uint32Array } A new typed array containing the extracted elements.
10241     * @throws { BusinessError } 401 - Parameter error.
10242     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
10243     * @throws { BusinessError } 10200201 - Concurrent modification error.
10244     * @syscap SystemCapability.Utils.Lang
10245     * @crossplatform
10246     * @atomicservice
10247     * @since 18
10248     */
10249    slice(start?: number, end?: number): Uint32Array;
10250    /**
10251     * Determines whether the specified callback function returns true for any element of an array.
10252     *
10253     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - A function that accepts up to three arguments.
10254     *     The some method calls the predicate function for each element in the array until
10255     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
10256     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
10257     *     in which case true is immediately returned.
10258     * @throws { BusinessError } 401 - Parameter error.
10259     * @throws { BusinessError } 10200011 - The some method cannot be bound.
10260     * @throws { BusinessError } 10200201 - Concurrent modification error.
10261     * @syscap SystemCapability.Utils.Lang
10262     * @atomicservice
10263     * @since 12
10264     */
10265    /**
10266     * Determines whether the specified callback function returns true for any element of an array.
10267     *
10268     * @param { TypedArrayPredicateFn<number, Uint32Array> } predicate - A function that accepts up to three arguments.
10269     *     The some method calls the predicate function for each element in the array until
10270     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
10271     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
10272     *     in which case true is immediately returned.
10273     * @throws { BusinessError } 401 - Parameter error.
10274     * @throws { BusinessError } 10200011 - The some method cannot be bound.
10275     * @throws { BusinessError } 10200201 - Concurrent modification error.
10276     * @syscap SystemCapability.Utils.Lang
10277     * @crossplatform
10278     * @atomicservice
10279     * @since 18
10280     */
10281    some(predicate: TypedArrayPredicateFn<number, Uint32Array>): boolean;
10282    /**
10283     * Sorts an array.
10284     *
10285     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
10286     *     It is expected to return a negative value if first argument is less than second argument,
10287     *     zero if they're equal and a positive value otherwise.
10288     *     If omitted, the elements are sorted in ascending, ASCII character order.
10289     * @returns { Uint32Array } The reference to the original typed array, now sorted.
10290     *     Note that the typed array is sorted in place and no copy is made.
10291     * @throws { BusinessError } 401 - Parameter error.
10292     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
10293     * @throws { BusinessError } 10200201 - Concurrent modification error.
10294     * @syscap SystemCapability.Utils.Lang
10295     * @atomicservice
10296     * @since 12
10297     */
10298    /**
10299     * Sorts an array.
10300     *
10301     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
10302     *     It is expected to return a negative value if first argument is less than second argument,
10303     *     zero if they're equal and a positive value otherwise.
10304     *     If omitted, the elements are sorted in ascending, ASCII character order.
10305     * @returns { Uint32Array } The reference to the original typed array, now sorted.
10306     *     Note that the typed array is sorted in place and no copy is made.
10307     * @throws { BusinessError } 401 - Parameter error.
10308     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
10309     * @throws { BusinessError } 10200201 - Concurrent modification error.
10310     * @syscap SystemCapability.Utils.Lang
10311     * @crossplatform
10312     * @atomicservice
10313     * @since 18
10314     */
10315    sort(compareFn?: TypedArrayCompareFn<number>): Uint32Array;
10316    /**
10317     * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
10318     * at begin, inclusive, up to end, exclusive.
10319     *
10320     * @param { number } [begin] - The index of the beginning of the array.
10321     * @param { number } [end] - The index of the end of the array.
10322     * @returns { Uint32Array } A new Uint32Array object.
10323     * @throws { BusinessError } 401 - Parameter error.
10324     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
10325     * @throws { BusinessError } 10200201 - Concurrent modification error.
10326     * @syscap SystemCapability.Utils.Lang
10327     * @atomicservice
10328     * @since 12
10329     */
10330    /**
10331     * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
10332     * at begin, inclusive, up to end, exclusive.
10333     *
10334     * @param { number } [begin] - The index of the beginning of the array.
10335     * @param { number } [end] - The index of the end of the array.
10336     * @returns { Uint32Array } A new Uint32Array object.
10337     * @throws { BusinessError } 401 - Parameter error.
10338     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
10339     * @throws { BusinessError } 10200201 - Concurrent modification error.
10340     * @syscap SystemCapability.Utils.Lang
10341     * @crossplatform
10342     * @atomicservice
10343     * @since 18
10344     */
10345    subarray(begin?: number, end?: number): Uint32Array;
10346    /**
10347     * Returns the item located at the specified index.
10348     *
10349     * @param { number } index - The zero-based index of the desired code unit.<br/>
10350     *     A negative index will count back from the last item.
10351     * @returns { number | undefined } The element in the array matching the given index.<br/>
10352     *     Always returns undefined if index < -array.length or
10353     *     index >= array.length without attempting to access the corresponding property.
10354     * @throws { BusinessError } 401 - Parameter error.
10355     * @throws { BusinessError } 10200011 - The at method cannot be bound.
10356     * @throws { BusinessError } 10200201 - Concurrent modification error.
10357     * @syscap SystemCapability.Utils.Lang
10358     * @atomicservice
10359     * @since 12
10360     */
10361    /**
10362     * Returns the item located at the specified index.
10363     *
10364     * @param { number } index - The zero-based index of the desired code unit.<br/>
10365     *     A negative index will count back from the last item.
10366     * @returns { number | undefined } The element in the array matching the given index.<br/>
10367     *     Always returns undefined if index < -array.length or
10368     *     index >= array.length without attempting to access the corresponding property.
10369     * @throws { BusinessError } 401 - Parameter error.
10370     * @throws { BusinessError } 10200011 - The at method cannot be bound.
10371     * @throws { BusinessError } 10200201 - Concurrent modification error.
10372     * @syscap SystemCapability.Utils.Lang
10373     * @crossplatform
10374     * @atomicservice
10375     * @since 18
10376     */
10377    at(index: number): number | undefined;
10378    /**
10379     * Returns an iterator that iterates over numbers.
10380     *
10381     * @returns { IterableIterator<number> } Iterator object that yields numbers.
10382     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
10383     * @syscap SystemCapability.Utils.Lang
10384     * @atomicservice
10385     * @since 12
10386     */
10387    /**
10388     * Returns an iterator that iterates over numbers.
10389     *
10390     * @returns { IterableIterator<number> } Iterator object that yields numbers.
10391     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
10392     * @syscap SystemCapability.Utils.Lang
10393     * @crossplatform
10394     * @atomicservice
10395     * @since 18
10396     */
10397    [Symbol.iterator](): IterableIterator<number>;
10398    /**
10399     * Returns an iterable of key, value pairs for every entry in the array
10400     *
10401     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
10402     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
10403     * @throws { BusinessError } 10200201 - Concurrent modification error.
10404     * @syscap SystemCapability.Utils.Lang
10405     * @atomicservice
10406     * @since 12
10407     */
10408    /**
10409     * Returns an iterable of key, value pairs for every entry in the array
10410     *
10411     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
10412     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
10413     * @throws { BusinessError } 10200201 - Concurrent modification error.
10414     * @syscap SystemCapability.Utils.Lang
10415     * @crossplatform
10416     * @atomicservice
10417     * @since 18
10418     */
10419    entries(): IterableIterator<[number, number]>;
10420    /**
10421     * Returns an iterable of keys in the array
10422     *
10423     * @returns { IterableIterator<number> } A new iterable iterator object.
10424     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
10425     * @throws { BusinessError } 10200201 - Concurrent modification error.
10426     * @syscap SystemCapability.Utils.Lang
10427     * @atomicservice
10428     * @since 12
10429     */
10430    /**
10431     * Returns an iterable of keys in the array
10432     *
10433     * @returns { IterableIterator<number> } A new iterable iterator object.
10434     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
10435     * @throws { BusinessError } 10200201 - Concurrent modification error.
10436     * @syscap SystemCapability.Utils.Lang
10437     * @crossplatform
10438     * @atomicservice
10439     * @since 18
10440     */
10441    keys(): IterableIterator<number>;
10442    /**
10443     * Returns an iterable of values in the array
10444     *
10445     * @returns { IterableIterator<number> } A new iterable iterator object.
10446     * @throws { BusinessError } 10200011 - The values method cannot be bound.
10447     * @throws { BusinessError } 10200201 - Concurrent modification error.
10448     * @syscap SystemCapability.Utils.Lang
10449     * @atomicservice
10450     * @since 12
10451     */
10452    /**
10453     * Returns an iterable of values in the array
10454     *
10455     * @returns { IterableIterator<number> } A new iterable iterator object.
10456     * @throws { BusinessError } 10200011 - The values method cannot be bound.
10457     * @throws { BusinessError } 10200201 - Concurrent modification error.
10458     * @syscap SystemCapability.Utils.Lang
10459     * @crossplatform
10460     * @atomicservice
10461     * @since 18
10462     */
10463    values(): IterableIterator<number>;
10464    /**
10465     * Determines whether an array includes a certain element, returning true or false as appropriate.
10466     *
10467     * @param { number } searchElement - The element to search for.
10468     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
10469     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
10470     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
10471     * @throws { BusinessError } 401 - Parameter error.
10472     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
10473     * @throws { BusinessError } 10200201 - Concurrent modification error.
10474     * @syscap SystemCapability.Utils.Lang
10475     * @atomicservice
10476     * @since 12
10477     */
10478    /**
10479     * Determines whether an array includes a certain element, returning true or false as appropriate.
10480     *
10481     * @param { number } searchElement - The element to search for.
10482     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
10483     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
10484     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
10485     * @throws { BusinessError } 401 - Parameter error.
10486     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
10487     * @throws { BusinessError } 10200201 - Concurrent modification error.
10488     * @syscap SystemCapability.Utils.Lang
10489     * @crossplatform
10490     * @atomicservice
10491     * @since 18
10492     */
10493    includes(searchElement: number, fromIndex?: number): boolean;
10494    /**
10495     * Returns the item at that index.
10496     *
10497     * @syscap SystemCapability.Utils.Lang
10498     * @atomicservice
10499     * @since 12
10500     */
10501    /**
10502     * Returns the item at that index.
10503     *
10504     * @syscap SystemCapability.Utils.Lang
10505     * @crossplatform
10506     * @atomicservice
10507     * @since 18
10508     */
10509    [index: number]: number;
10510    /**
10511     * Find the last occurrence of a specified element in an Uint32Array.
10512     *
10513     * @param { number } searchElement - Element to search for in the Uint32Array..
10514     * @param { number } fromIndex - The index at which to start the search. If provided:
10515     *	   <br>If this index is negative, it is treated as Uint32Array.length + fromIndex.
10516     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
10517     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
10518     * @throws { BusinessError } 10200201 - Concurrent modification error.
10519     * @syscap SystemCapability.Utils.Lang
10520     * @atomicservice
10521     * @since 18
10522     */
10523    lastIndexOf(searchElement: number, fromIndex?: number): number;
10524    /**
10525     * Reduce elements in an Uint32Array from right to left.
10526     *
10527     * @param { TypedArrayReduceCallback<U, number, Uint32Array> } callbackFn - A function that is called for
10528     * each element in the Uint32Array.
10529     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
10530     *     <br>If no initial value is provided, the last element of the Uint32Array will be used,
10531     *     <br>and the callback will start with the second-to-last element.
10532     * @returns { U } Returns the single value that results from the reduction.
10533     * @throws { BusinessError } 401 - Parameter error. Possible causes:
10534     *                                    1.Mandatory parameters are left unspecified.
10535     *                                    2.Incorrect parameter types.
10536     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
10537     * @throws { BusinessError } 10200201 - Concurrent modification error.
10538     * @syscap SystemCapability.Utils.Lang
10539     * @atomicservice
10540     * @since 18
10541     */
10542    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Uint32Array>, initialValue: U): U;
10543    /**
10544     * Reduce elements in an Uint32Array from right to left.
10545     *
10546     * @param { TypedArrayReduceCallback<number, number, Uint32Array> } callbackFn - A function that is called for
10547     * each element in the Uint32Array.
10548     * @returns { number } Returns the single value that results from the reduction.
10549     * @throws { BusinessError } 401 - Parameter error. Possible causes:
10550     *                                    1.Mandatory parameters are left unspecified.
10551     *                                    2.Incorrect parameter types.
10552     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
10553     * @throws { BusinessError } 10200201 - Concurrent modification error.
10554     * @syscap SystemCapability.Utils.Lang
10555     * @atomicservice
10556     * @since 18
10557     */
10558    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Uint32Array>): number;
10559    /**
10560     * Convert an Uint32Array to a string.
10561     *
10562     * @returns { string } Returns a string representing the specified Uint32Array and its elements,
10563     * separated by commas.
10564     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
10565     * @throws { BusinessError } 10200201 - Concurrent modification error.
10566     * @syscap SystemCapability.Utils.Lang
10567     * @atomicservice
10568     * @since 18
10569     */
10570    toString(): string;
10571    /**
10572     * Convert an Uint32Array to a string, The elements are converted to string using their toLocaleString methods.
10573     *
10574     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
10575     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
10576     * @throws { BusinessError } 10200201 - Concurrent modification error.
10577     * @syscap SystemCapability.Utils.Lang
10578     * @atomicservice
10579     * @since 18
10580     */
10581    toLocaleString(): string;
10582    /**
10583     * Create an Uint32Array containing these parameters.
10584     *
10585     * @param { number[] } items - A variable number of arguments that will be used as the elements of the Uint32Array.
10586     * @returns { Uint32Array } Returns a new Uint32Array instance containing the specified elements.
10587     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
10588     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
10589     * @static
10590     * @syscap SystemCapability.Utils.Lang
10591     * @atomicservice
10592     * @since 18
10593     */
10594    static of(...items: number[]): Uint32Array;
10595 }
10596
10597  /**
10598   * The Float32Array typed array represents an array of 32-bit float numbers.
10599   * The contents are initialized to 0.
10600   * If multiple threads access a Float32Array instance concurrently,
10601   * and at least one of the threads modifies the array structurally,
10602   * it must be synchronized externally.
10603   *
10604   * @syscap SystemCapability.Utils.Lang
10605   * @atomicservice
10606   * @since 12
10607   */
10608  /**
10609   * The Float32Array typed array represents an array of 32-bit float numbers.
10610   * The contents are initialized to 0.
10611   * If multiple threads access a Float32Array instance concurrently,
10612   * and at least one of the threads modifies the array structurally,
10613   * it must be synchronized externally.
10614   *
10615   * @syscap SystemCapability.Utils.Lang
10616   * @crossplatform
10617   * @atomicservice
10618   * @since 18
10619   */
10620  @Sendable
10621  class Float32Array {
10622    /**
10623     * The size in bytes of each element in the array.
10624     *
10625     * @type { number }
10626     * @readonly
10627     * @static
10628     * @syscap SystemCapability.Utils.Lang
10629     * @atomicservice
10630     * @since 12
10631     */
10632    /**
10633     * The size in bytes of each element in the array.
10634     *
10635     * @type { number }
10636     * @readonly
10637     * @static
10638     * @syscap SystemCapability.Utils.Lang
10639     * @crossplatform
10640     * @atomicservice
10641     * @since 18
10642     */
10643    static readonly BYTES_PER_ELEMENT: number;
10644    /**
10645     * The ArrayBuffer instance referenced by the array.
10646     *
10647     * @type { ArrayBuffer }
10648     * @readonly
10649     * @syscap SystemCapability.Utils.Lang
10650     * @atomicservice
10651     * @since 12
10652     */
10653    /**
10654     * The ArrayBuffer instance referenced by the array.
10655     *
10656     * @type { ArrayBuffer }
10657     * @readonly
10658     * @syscap SystemCapability.Utils.Lang
10659     * @crossplatform
10660     * @atomicservice
10661     * @since 18
10662     */
10663    readonly buffer: ArrayBuffer;
10664    /**
10665     * The length in bytes of the array.
10666     *
10667     * @type { number }
10668     * @readonly
10669     * @syscap SystemCapability.Utils.Lang
10670     * @atomicservice
10671     * @since 12
10672     */
10673    /**
10674     * The length in bytes of the array.
10675     *
10676     * @type { number }
10677     * @readonly
10678     * @syscap SystemCapability.Utils.Lang
10679     * @crossplatform
10680     * @atomicservice
10681     * @since 18
10682     */
10683    readonly byteLength: number;
10684    /**
10685     * The offset in bytes of the array.
10686     *
10687     * @type { number }
10688     * @readonly
10689     * @syscap SystemCapability.Utils.Lang
10690     * @atomicservice
10691     * @since 12
10692     */
10693    /**
10694     * The offset in bytes of the array.
10695     *
10696     * @type { number }
10697     * @readonly
10698     * @syscap SystemCapability.Utils.Lang
10699     * @crossplatform
10700     * @atomicservice
10701     * @since 18
10702     */
10703    readonly byteOffset: number;
10704    /**
10705     * The length of the array.
10706     *
10707     * @type { number }
10708     * @readonly
10709     * @syscap SystemCapability.Utils.Lang
10710     * @atomicservice
10711     * @since 12
10712     */
10713    /**
10714     * The length of the array.
10715     *
10716     * @type { number }
10717     * @readonly
10718     * @syscap SystemCapability.Utils.Lang
10719     * @crossplatform
10720     * @atomicservice
10721     * @since 18
10722     */
10723    readonly length: number;
10724    /**
10725     * A constructor used to create an Float32Array.
10726     *
10727     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10728     * @syscap SystemCapability.Utils.Lang
10729     * @atomicservice
10730     * @since 12
10731     */
10732    /**
10733     * A constructor used to create an Float32Array.
10734     *
10735     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10736     * @syscap SystemCapability.Utils.Lang
10737     * @crossplatform
10738     * @atomicservice
10739     * @since 18
10740     */
10741    constructor();
10742    /**
10743     * A constructor used to create an Float32Array.
10744     *
10745     * @param { number } length - The length of the array
10746     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10747     * @throws { BusinessError } 401 - Parameter error.
10748     * @syscap SystemCapability.Utils.Lang
10749     * @atomicservice
10750     * @since 12
10751     */
10752    /**
10753     * A constructor used to create an Float32Array.
10754     *
10755     * @param { number } length - The length of the array
10756     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10757     * @throws { BusinessError } 401 - Parameter error.
10758     * @syscap SystemCapability.Utils.Lang
10759     * @crossplatform
10760     * @atomicservice
10761     * @since 18
10762     */
10763    constructor(length: number);
10764    /**
10765     * A constructor used to create an Float32Array.
10766     *
10767     * @param { Iterable<number> } elements - An iterable object to convert to an Float32Array.
10768     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10769     * @throws { BusinessError } 401 - Parameter error.
10770     * @syscap SystemCapability.Utils.Lang
10771     * @atomicservice
10772     * @since 12
10773     */
10774    /**
10775     * A constructor used to create an Float32Array.
10776     *
10777     * @param { Iterable<number> } elements - An iterable object to convert to an Float32Array.
10778     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10779     * @throws { BusinessError } 401 - Parameter error.
10780     * @syscap SystemCapability.Utils.Lang
10781     * @crossplatform
10782     * @atomicservice
10783     * @since 18
10784     */
10785    constructor(elements: Iterable<number>);
10786    /**
10787     * A constructor used to create an Float32Array.
10788     *
10789     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
10790     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10791     * @throws { BusinessError } 401 - Parameter error.
10792     * @syscap SystemCapability.Utils.Lang
10793     * @atomicservice
10794     * @since 12
10795     */
10796    /**
10797     * A constructor used to create an Float32Array.
10798     *
10799     * @param { ArrayLike<number> | ArrayBuffer } array - An array is initialized with the given elements
10800     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10801     * @throws { BusinessError } 401 - Parameter error.
10802     * @syscap SystemCapability.Utils.Lang
10803     * @crossplatform
10804     * @atomicservice
10805     * @since 18
10806     */
10807    constructor(array: ArrayLike<number> | ArrayBuffer);
10808    /**
10809     * A constructor used to create an Float32Array.
10810     *
10811     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
10812     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
10813     *     that will be exposed by the typed array view.
10814     * @param { number } [length] - The length parameter specifies the memory range
10815     *     that will be exposed by the typed array view.
10816     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10817     * @throws { BusinessError } 401 - Parameter error.
10818     * @syscap SystemCapability.Utils.Lang
10819     * @atomicservice
10820     * @since 12
10821     */
10822    /**
10823     * A constructor used to create an Float32Array.
10824     *
10825     * @param { ArrayBuffer } buffer - An array is initialized with the given elements
10826     * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range
10827     *     that will be exposed by the typed array view.
10828     * @param { number } [length] - The length parameter specifies the memory range
10829     *     that will be exposed by the typed array view.
10830     * @throws { BusinessError } 10200012 - The Float32Array's constructor cannot be directly invoked.
10831     * @throws { BusinessError } 401 - Parameter error.
10832     * @syscap SystemCapability.Utils.Lang
10833     * @crossplatform
10834     * @atomicservice
10835     * @since 18
10836     */
10837    constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
10838    /**
10839     * Creates an Float32Array from an array-like object.
10840     *
10841     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Float32Array.
10842     * @returns { Float32Array } A new Float32Array instance
10843     * @throws { BusinessError } 401 - Parameter error.
10844     * @static
10845     * @syscap SystemCapability.Utils.Lang
10846     * @atomicservice
10847     * @since 12
10848     */
10849    /**
10850     * Creates an Float32Array from an array-like object.
10851     *
10852     * @param { ArrayLike<number> } arrayLike - An array-like object to convert to an Float32Array.
10853     * @returns { Float32Array } A new Float32Array instance
10854     * @throws { BusinessError } 401 - Parameter error.
10855     * @static
10856     * @syscap SystemCapability.Utils.Lang
10857     * @crossplatform
10858     * @atomicservice
10859     * @since 18
10860     */
10861    static from(arrayLike: ArrayLike<number>): Float32Array;
10862    /**
10863     * Creates an Float32Array from an array-like object.
10864     *
10865     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Float32Array.
10866     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
10867     * @returns { Float32Array } A new Float32Array instance
10868     * @throws { BusinessError } 401 - Parameter error.
10869     * @static
10870     * @syscap SystemCapability.Utils.Lang
10871     * @atomicservice
10872     * @since 12
10873     */
10874    /**
10875     * Creates an Float32Array from an array-like object.
10876     *
10877     * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an Float32Array.
10878     * @param { TypedArrayFromMapFn<T, number> } mapFn - A mapping function to call on every element of the array.
10879     * @returns { Float32Array } A new Float32Array instance
10880     * @throws { BusinessError } 401 - Parameter error.
10881     * @static
10882     * @syscap SystemCapability.Utils.Lang
10883     * @crossplatform
10884     * @atomicservice
10885     * @since 18
10886     */
10887    static from<T>(arrayLike: ArrayLike<T>, mapFn: TypedArrayFromMapFn<T, number>): Float32Array;
10888    /**
10889     * Creates an Float32Array from an iterable object.
10890     *
10891     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Float32Array.
10892     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
10893     *     call on every element of the array.
10894     * @returns { Float32Array } A new Float32Array instance
10895     * @throws { BusinessError } 401 - Parameter error.
10896     * @static
10897     * @syscap SystemCapability.Utils.Lang
10898     * @atomicservice
10899     * @since 12
10900     */
10901    /**
10902     * Creates an Float32Array from an iterable object.
10903     *
10904     * @param { Iterable<number> } arrayLike - An iterable object to convert to an Float32Array.
10905     * @param { TypedArrayFromMapFn<number, number> } [mapFn] - A mapping function to
10906     *     call on every element of the array.
10907     * @returns { Float32Array } A new Float32Array instance
10908     * @throws { BusinessError } 401 - Parameter error.
10909     * @static
10910     * @syscap SystemCapability.Utils.Lang
10911     * @crossplatform
10912     * @atomicservice
10913     * @since 18
10914     */
10915    static from(arrayLike: Iterable<number>, mapFn?: TypedArrayFromMapFn<number, number>): Float32Array;
10916    /**
10917     * Returns the this object after copying a section of the array identified by start and end
10918     * to the same array starting at position target.
10919     *
10920     * @param { number } target - If target is negative, it is treated as length+target where length is the
10921     *     length of the array.
10922     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
10923     *     is treated as length+end.
10924     * @param { number } [end] - If not specified, length of the this object is used as its default value.
10925     * @returns { Float32Array } The array itself.
10926     * @throws { BusinessError } 401 - Parameter error.
10927     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
10928     * @throws { BusinessError } 10200201 - Concurrent modification error.
10929     * @syscap SystemCapability.Utils.Lang
10930     * @atomicservice
10931     * @since 12
10932     */
10933    /**
10934     * Returns the this object after copying a section of the array identified by start and end
10935     * to the same array starting at position target.
10936     *
10937     * @param { number } target - If target is negative, it is treated as length+target where length is the
10938     *     length of the array.
10939     * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it
10940     *     is treated as length+end.
10941     * @param { number } [end] - If not specified, length of the this object is used as its default value.
10942     * @returns { Float32Array } The array itself.
10943     * @throws { BusinessError } 401 - Parameter error.
10944     * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound.
10945     * @throws { BusinessError } 10200201 - Concurrent modification error.
10946     * @syscap SystemCapability.Utils.Lang
10947     * @crossplatform
10948     * @atomicservice
10949     * @since 18
10950     */
10951    copyWithin(target: number, start: number, end?: number): Float32Array;
10952    /**
10953     * Determines whether all the members of an array satisfy the specified test.
10954     *
10955     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - A function
10956     *     that accepts up to three arguments.
10957     *     The every method calls the predicate function for each element in the array until
10958     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
10959     * @returns { boolean } true unless predicate returns a false value for a typed array element,
10960     *     in which case false is immediately returned.
10961     * @throws { BusinessError } 401 - Parameter error.
10962     * @throws { BusinessError } 10200011 - The every method cannot be bound.
10963     * @throws { BusinessError } 10200201 - Concurrent modification error.
10964     * @syscap SystemCapability.Utils.Lang
10965     * @atomicservice
10966     * @since 12
10967     */
10968    /**
10969     * Determines whether all the members of an array satisfy the specified test.
10970     *
10971     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - A function
10972     *     that accepts up to three arguments.
10973     *     The every method calls the predicate function for each element in the array until
10974     *     the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
10975     * @returns { boolean } true unless predicate returns a false value for a typed array element,
10976     *     in which case false is immediately returned.
10977     * @throws { BusinessError } 401 - Parameter error.
10978     * @throws { BusinessError } 10200011 - The every method cannot be bound.
10979     * @throws { BusinessError } 10200201 - Concurrent modification error.
10980     * @syscap SystemCapability.Utils.Lang
10981     * @crossplatform
10982     * @atomicservice
10983     * @since 18
10984     */
10985    every(predicate: TypedArrayPredicateFn<number, Float32Array>): boolean;
10986    /**
10987     * Returns the this object after filling the section identified by start and end with value.
10988     *
10989     * @param { number } value - value to fill array section with.
10990     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
10991     *     length+start where length is the length of the array.
10992     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
10993     *     length+end.
10994     * @returns { Float32Array } The array itself.
10995     * @throws { BusinessError } 401 - Parameter error.
10996     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
10997     * @throws { BusinessError } 10200201 - Concurrent modification error.
10998     * @syscap SystemCapability.Utils.Lang
10999     * @atomicservice
11000     * @since 12
11001     */
11002    /**
11003     * Returns the this object after filling the section identified by start and end with value.
11004     *
11005     * @param { number } value - value to fill array section with.
11006     * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as
11007     *     length+start where length is the length of the array.
11008     * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as
11009     *     length+end.
11010     * @returns { Float32Array } The array itself.
11011     * @throws { BusinessError } 401 - Parameter error.
11012     * @throws { BusinessError } 10200011 - The fill method cannot be bound.
11013     * @throws { BusinessError } 10200201 - Concurrent modification error.
11014     * @syscap SystemCapability.Utils.Lang
11015     * @crossplatform
11016     * @atomicservice
11017     * @since 18
11018     */
11019    fill(value: number, start?: number, end?: number): Float32Array;
11020    /**
11021     * Returns the elements of an array that meet the condition specified in a callback function.
11022     *
11023     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - A function
11024     *     that accepts up to three arguments.
11025     *     The filter method calls the predicate function one time for each element in the array.
11026     * @returns { Float32Array } The array itself.
11027     * @throws { BusinessError } 401 - Parameter error.
11028     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
11029     * @throws { BusinessError } 10200201 - Concurrent modification error.
11030     * @syscap SystemCapability.Utils.Lang
11031     * @atomicservice
11032     * @since 12
11033     */
11034    /**
11035     * Returns the elements of an array that meet the condition specified in a callback function.
11036     *
11037     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - A function
11038     *     that accepts up to three arguments.
11039     *     The filter method calls the predicate function one time for each element in the array.
11040     * @returns { Float32Array } The array itself.
11041     * @throws { BusinessError } 401 - Parameter error.
11042     * @throws { BusinessError } 10200011 - The filter method cannot be bound.
11043     * @throws { BusinessError } 10200201 - Concurrent modification error.
11044     * @syscap SystemCapability.Utils.Lang
11045     * @crossplatform
11046     * @atomicservice
11047     * @since 18
11048     */
11049    filter(predicate: TypedArrayPredicateFn<number, Float32Array>): Float32Array;
11050    /**
11051     * Returns the value of the first element in the array where predicate is true, and undefined
11052     * otherwise.
11053     *
11054     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - find calls predicate once for
11055     *     each element of the array, in ascending order, until it finds one where predicate returns true.
11056     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
11057     * @returns { number | undefined } The first element in the typed array
11058     *     that satisfies the provided testing function. Otherwise, undefined is returned.
11059     * @throws { BusinessError } 401 - Parameter error.
11060     * @throws { BusinessError } 10200011 - The find method cannot be bound.
11061     * @throws { BusinessError } 10200201 - Concurrent modification error.
11062     * @syscap SystemCapability.Utils.Lang
11063     * @atomicservice
11064     * @since 12
11065     */
11066    /**
11067     * Returns the value of the first element in the array where predicate is true, and undefined
11068     * otherwise.
11069     *
11070     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - find calls predicate once for
11071     *     each element of the array, in ascending order, until it finds one where predicate returns true.
11072     *     If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
11073     * @returns { number | undefined } The first element in the typed array
11074     *     that satisfies the provided testing function. Otherwise, undefined is returned.
11075     * @throws { BusinessError } 401 - Parameter error.
11076     * @throws { BusinessError } 10200011 - The find method cannot be bound.
11077     * @throws { BusinessError } 10200201 - Concurrent modification error.
11078     * @syscap SystemCapability.Utils.Lang
11079     * @crossplatform
11080     * @atomicservice
11081     * @since 18
11082     */
11083    find(predicate: TypedArrayPredicateFn<number, Float32Array>): number | undefined;
11084    /**
11085     * Returns the index of the first element in the array where predicate is true, and -1
11086     * otherwise.
11087     *
11088     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - find calls predicate once for
11089     *     each element of the array, in ascending order, until it finds one where predicate returns true.
11090     *     If such an element is found, findIndex immediately returns that element index.
11091     *     Otherwise, findIndex returns -1.
11092     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
11093     * @throws { BusinessError } 401 - Parameter error.
11094     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
11095     * @throws { BusinessError } 10200201 - Concurrent modification error.
11096     * @syscap SystemCapability.Utils.Lang
11097     * @atomicservice
11098     * @since 12
11099     */
11100    /**
11101     * Returns the index of the first element in the array where predicate is true, and -1
11102     * otherwise.
11103     *
11104     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - find calls predicate once for
11105     *     each element of the array, in ascending order, until it finds one where predicate returns true.
11106     *     If such an element is found, findIndex immediately returns that element index.
11107     *     Otherwise, findIndex returns -1.
11108     * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1.
11109     * @throws { BusinessError } 401 - Parameter error.
11110     * @throws { BusinessError } 10200011 - The findIndex method cannot be bound.
11111     * @throws { BusinessError } 10200201 - Concurrent modification error.
11112     * @syscap SystemCapability.Utils.Lang
11113     * @crossplatform
11114     * @atomicservice
11115     * @since 18
11116     */
11117    findIndex(predicate: TypedArrayPredicateFn<number, Float32Array>): number;
11118    /**
11119     * Performs the specified action for each element in an array.
11120     *
11121     * @param { TypedArrayForEachCallback<number, Float32Array> } callbackFn -  A function that
11122     *     accepts up to three arguments.
11123     *     forEach calls the callbackfn function one time for each element in the array.
11124     * @throws { BusinessError } 401 - Parameter error.
11125     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
11126     * @throws { BusinessError } 10200201 - Concurrent modification error.
11127     * @syscap SystemCapability.Utils.Lang
11128     * @atomicservice
11129     * @since 12
11130     */
11131    /**
11132     * Performs the specified action for each element in an array.
11133     *
11134     * @param { TypedArrayForEachCallback<number, Float32Array> } callbackFn -  A function that
11135     *     accepts up to three arguments.
11136     *     forEach calls the callbackfn function one time for each element in the array.
11137     * @throws { BusinessError } 401 - Parameter error.
11138     * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
11139     * @throws { BusinessError } 10200201 - Concurrent modification error.
11140     * @syscap SystemCapability.Utils.Lang
11141     * @crossplatform
11142     * @atomicservice
11143     * @since 18
11144     */
11145    forEach(callbackFn: TypedArrayForEachCallback<number, Float32Array>): void;
11146    /**
11147     * Returns the index of the first occurrence of a value in an array.
11148     *
11149     * @param { number } searchElement - The value to locate in the array.
11150     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
11151     *      search starts at index 0.
11152     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
11153     * @throws { BusinessError } 401 - Parameter error.
11154     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
11155     * @throws { BusinessError } 10200201 - Concurrent modification error.
11156     * @syscap SystemCapability.Utils.Lang
11157     * @atomicservice
11158     * @since 12
11159     */
11160    /**
11161     * Returns the index of the first occurrence of a value in an array.
11162     *
11163     * @param { number } searchElement - The value to locate in the array.
11164     * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the
11165     *      search starts at index 0.
11166     * @returns { number } The first index of searchElement in the typed array; -1 if not found.
11167     * @throws { BusinessError } 401 - Parameter error.
11168     * @throws { BusinessError } 10200011 - The indexOf method cannot be bound.
11169     * @throws { BusinessError } 10200201 - Concurrent modification error.
11170     * @syscap SystemCapability.Utils.Lang
11171     * @crossplatform
11172     * @atomicservice
11173     * @since 18
11174     */
11175    indexOf(searchElement: number, fromIndex?: number): number;
11176    /**
11177     * Adds all the elements of an array separated by the specified separator string.
11178     * @param { string } [separator] - A string used to separate one element of an array from the next in the
11179     *     resulting String. If omitted, the array elements are separated with a comma.
11180     * @returns { string } A string with all typed array elements joined.
11181     *     If array.length is 0, the empty string is returned.
11182     * @throws { BusinessError } 401 - Parameter error.
11183     * @throws { BusinessError } 10200011 - The join method cannot be bound.
11184     * @throws { BusinessError } 10200201 - Concurrent modification error.
11185     * @syscap SystemCapability.Utils.Lang
11186     * @atomicservice
11187     * @since 12
11188     */
11189    /**
11190     * Adds all the elements of an array separated by the specified separator string.
11191     * @param { string } [separator] - A string used to separate one element of an array from the next in the
11192     *     resulting String. If omitted, the array elements are separated with a comma.
11193     * @returns { string } A string with all typed array elements joined.
11194     *     If array.length is 0, the empty string is returned.
11195     * @throws { BusinessError } 401 - Parameter error.
11196     * @throws { BusinessError } 10200011 - The join method cannot be bound.
11197     * @throws { BusinessError } 10200201 - Concurrent modification error.
11198     * @syscap SystemCapability.Utils.Lang
11199     * @crossplatform
11200     * @atomicservice
11201     * @since 18
11202     */
11203    join(separator?: string): string;
11204    /**
11205     * Calls a defined callback function on each element of an array, and returns an array that
11206     * contains the results.
11207     *
11208     * @param { TypedArrayMapCallback<number, Float32Array> } callbackFn - A function that
11209     *     accepts up to three arguments.
11210     *     The map method calls the callbackfn function one time for each element in the array.
11211     * @returns { Float32Array } The array itself.
11212     * @throws { BusinessError } 401 - Parameter error.
11213     * @throws { BusinessError } 10200011 - The map method cannot be bound.
11214     * @throws { BusinessError } 10200201 - Concurrent modification error.
11215     * @syscap SystemCapability.Utils.Lang
11216     * @atomicservice
11217     * @since 12
11218     */
11219    /**
11220     * Calls a defined callback function on each element of an array, and returns an array that
11221     * contains the results.
11222     *
11223     * @param { TypedArrayMapCallback<number, Float32Array> } callbackFn - A function that
11224     *     accepts up to three arguments.
11225     *     The map method calls the callbackfn function one time for each element in the array.
11226     * @returns { Float32Array } The array itself.
11227     * @throws { BusinessError } 401 - Parameter error.
11228     * @throws { BusinessError } 10200011 - The map method cannot be bound.
11229     * @throws { BusinessError } 10200201 - Concurrent modification error.
11230     * @syscap SystemCapability.Utils.Lang
11231     * @crossplatform
11232     * @atomicservice
11233     * @since 18
11234     */
11235    map(callbackFn: TypedArrayMapCallback<number, Float32Array>): Float32Array;
11236    /**
11237     * Calls the specified callback function for all the elements in an array. The return value of
11238     * the callback function is the accumulated result, and is provided as an argument in the next
11239     * call to the callback function.
11240     *
11241     * @param { TypedArrayReduceCallback<number, number, Float32Array> } callbackFn - A function that
11242     *     accepts up to four arguments.
11243     *     The reduce method calls the callbackfn function one time for each element in the array.
11244     * @returns { number } The value that results from running the "reducer" callback function to
11245     *     completion over the entire typed array.
11246     * @throws { BusinessError } 401 - Parameter error.
11247     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
11248     * @throws { BusinessError } 10200201 - Concurrent modification error.
11249     * @syscap SystemCapability.Utils.Lang
11250     * @atomicservice
11251     * @since 12
11252     */
11253    /**
11254     * Calls the specified callback function for all the elements in an array. The return value of
11255     * the callback function is the accumulated result, and is provided as an argument in the next
11256     * call to the callback function.
11257     *
11258     * @param { TypedArrayReduceCallback<number, number, Float32Array> } callbackFn - A function that
11259     *     accepts up to four arguments.
11260     *     The reduce method calls the callbackfn function one time for each element in the array.
11261     * @returns { number } The value that results from running the "reducer" callback function to
11262     *     completion over the entire typed array.
11263     * @throws { BusinessError } 401 - Parameter error.
11264     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
11265     * @throws { BusinessError } 10200201 - Concurrent modification error.
11266     * @syscap SystemCapability.Utils.Lang
11267     * @crossplatform
11268     * @atomicservice
11269     * @since 18
11270     */
11271    reduce(callbackFn: TypedArrayReduceCallback<number, number, Float32Array>): number;
11272    /**
11273     * Calls the specified callback function for all the elements in an array. The return value of
11274     * the callback function is the accumulated result, and is provided as an argument in the next
11275     * call to the callback function.
11276     *
11277     * @param { TypedArrayReduceCallback<U, number, Float32Array> } callbackFn - A function that
11278     *     accepts up to four arguments.
11279     *     The reduce method calls the callbackfn function one time for each element in the array.
11280     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
11281     *     the accumulation. The first call to the callbackfn function provides this value as an argument
11282     *     instead of an array value.
11283     * @returns { U } The value that results from running the "reducer" callback function to
11284     *     completion over the entire typed array.
11285     * @throws { BusinessError } 401 - Parameter error.
11286     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
11287     * @throws { BusinessError } 10200201 - Concurrent modification error.
11288     * @syscap SystemCapability.Utils.Lang
11289     * @atomicservice
11290     * @since 12
11291     */
11292    /**
11293     * Calls the specified callback function for all the elements in an array. The return value of
11294     * the callback function is the accumulated result, and is provided as an argument in the next
11295     * call to the callback function.
11296     *
11297     * @param { TypedArrayReduceCallback<U, number, Float32Array> } callbackFn - A function that
11298     *     accepts up to four arguments.
11299     *     The reduce method calls the callbackfn function one time for each element in the array.
11300     * @param { U } initialValue - If initialValue is specified, it is used as the initial value to start
11301     *     the accumulation. The first call to the callbackfn function provides this value as an argument
11302     *     instead of an array value.
11303     * @returns { U } The value that results from running the "reducer" callback function to
11304     *     completion over the entire typed array.
11305     * @throws { BusinessError } 401 - Parameter error.
11306     * @throws { BusinessError } 10200011 - The reduce method cannot be bound.
11307     * @throws { BusinessError } 10200201 - Concurrent modification error.
11308     * @syscap SystemCapability.Utils.Lang
11309     * @crossplatform
11310     * @atomicservice
11311     * @since 18
11312     */
11313    reduce<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Float32Array>, initialValue: U): U;
11314    /**
11315     * Reverses the elements in an Array.
11316     *
11317     * @returns { Float32Array } The reference to the original typed array, now reversed.
11318     *     <br>Note that the typed array is reversed in place, and no copy is made.
11319     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
11320     * @throws { BusinessError } 10200201 - Concurrent modification error.
11321     * @syscap SystemCapability.Utils.Lang
11322     * @atomicservice
11323     * @since 12
11324     */
11325    /**
11326     * Reverses the elements in an Array.
11327     *
11328     * @returns { Float32Array } The reference to the original typed array, now reversed.
11329     *     <br>Note that the typed array is reversed in place, and no copy is made.
11330     * @throws { BusinessError } 10200011 - The reverse method cannot be bound.
11331     * @throws { BusinessError } 10200201 - Concurrent modification error.
11332     * @syscap SystemCapability.Utils.Lang
11333     * @crossplatform
11334     * @atomicservice
11335     * @since 18
11336     */
11337    reverse(): Float32Array;
11338    /**
11339     * Sets a value or an array of values.
11340     *
11341     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
11342     * @param { number } [offset] - The index in the current array at which the values are to be written.
11343     * @throws { BusinessError } 401 - Parameter error.
11344     * @throws { BusinessError } 10200011 - The set method cannot be bound.
11345     * @throws { BusinessError } 10200201 - Concurrent modification error.
11346     * @syscap SystemCapability.Utils.Lang
11347     * @atomicservice
11348     * @since 12
11349     */
11350    /**
11351     * Sets a value or an array of values.
11352     *
11353     * @param { ArrayLike<number> } array - A typed or untyped array of values to set.
11354     * @param { number } [offset] - The index in the current array at which the values are to be written.
11355     * @throws { BusinessError } 401 - Parameter error.
11356     * @throws { BusinessError } 10200011 - The set method cannot be bound.
11357     * @throws { BusinessError } 10200201 - Concurrent modification error.
11358     * @syscap SystemCapability.Utils.Lang
11359     * @crossplatform
11360     * @atomicservice
11361     * @since 18
11362     */
11363    set(array: ArrayLike<number>, offset?: number): void;
11364    /**
11365     * Returns a section of an array.
11366     *
11367     * @param { number } [start] - The beginning of the specified portion of the array.
11368     * @param { number } [end] - The end of the specified portion of the array.
11369     *     This is exclusive of the element at the index 'end'.
11370     * @returns { Float32Array } A new typed array containing the extracted elements.
11371     * @throws { BusinessError } 401 - Parameter error.
11372     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
11373     * @throws { BusinessError } 10200201 - Concurrent modification error.
11374     * @syscap SystemCapability.Utils.Lang
11375     * @atomicservice
11376     * @since 12
11377     */
11378    /**
11379     * Returns a section of an array.
11380     *
11381     * @param { number } [start] - The beginning of the specified portion of the array.
11382     * @param { number } [end] - The end of the specified portion of the array.
11383     *     This is exclusive of the element at the index 'end'.
11384     * @returns { Float32Array } A new typed array containing the extracted elements.
11385     * @throws { BusinessError } 401 - Parameter error.
11386     * @throws { BusinessError } 10200011 - The slice method cannot be bound.
11387     * @throws { BusinessError } 10200201 - Concurrent modification error.
11388     * @syscap SystemCapability.Utils.Lang
11389     * @crossplatform
11390     * @atomicservice
11391     * @since 18
11392     */
11393    slice(start?: number, end?: number): Float32Array;
11394    /**
11395     * Determines whether the specified callback function returns true for any element of an array.
11396     *
11397     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - A function
11398     *     that accepts up to three arguments.
11399     *     The some method calls the predicate function for each element in the array until
11400     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
11401     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
11402     *     in which case true is immediately returned.
11403     * @throws { BusinessError } 401 - Parameter error.
11404     * @throws { BusinessError } 10200011 - The some method cannot be bound.
11405     * @throws { BusinessError } 10200201 - Concurrent modification error.
11406     * @syscap SystemCapability.Utils.Lang
11407     * @atomicservice
11408     * @since 12
11409     */
11410    /**
11411     * Determines whether the specified callback function returns true for any element of an array.
11412     *
11413     * @param { TypedArrayPredicateFn<number, Float32Array> } predicate - A function
11414     *     that accepts up to three arguments.
11415     *     The some method calls the predicate function for each element in the array until
11416     *     the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
11417     * @returns { boolean } false unless predicate returns a truthy value for a typed array element,
11418     *     in which case true is immediately returned.
11419     * @throws { BusinessError } 401 - Parameter error.
11420     * @throws { BusinessError } 10200011 - The some method cannot be bound.
11421     * @throws { BusinessError } 10200201 - Concurrent modification error.
11422     * @syscap SystemCapability.Utils.Lang
11423     * @crossplatform
11424     * @atomicservice
11425     * @since 18
11426     */
11427    some(predicate: TypedArrayPredicateFn<number, Float32Array>): boolean;
11428    /**
11429     * Sorts an array.
11430     *
11431     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
11432     *     It is expected to return a negative value if first argument is less than second argument,
11433     *     zero if they're equal and a positive value otherwise.
11434     *     If omitted, the elements are sorted in ascending, ASCII character order.
11435     * @returns { Float32Array } The reference to the original typed array, now sorted.
11436     *     Note that the typed array is sorted in place and no copy is made.
11437     * @throws { BusinessError } 401 - Parameter error.
11438     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
11439     * @throws { BusinessError } 10200201 - Concurrent modification error.
11440     * @syscap SystemCapability.Utils.Lang
11441     * @atomicservice
11442     * @since 12
11443     */
11444    /**
11445     * Sorts an array.
11446     *
11447     * @param { TypedArrayCompareFn<number> } [compareFn] - Function used to determine the order of the elements.
11448     *     It is expected to return a negative value if first argument is less than second argument,
11449     *     zero if they're equal and a positive value otherwise.
11450     *     If omitted, the elements are sorted in ascending, ASCII character order.
11451     * @returns { Float32Array } The reference to the original typed array, now sorted.
11452     *     Note that the typed array is sorted in place and no copy is made.
11453     * @throws { BusinessError } 401 - Parameter error.
11454     * @throws { BusinessError } 10200011 - The sort method cannot be bound.
11455     * @throws { BusinessError } 10200201 - Concurrent modification error.
11456     * @syscap SystemCapability.Utils.Lang
11457     * @crossplatform
11458     * @atomicservice
11459     * @since 18
11460     */
11461    sort(compareFn?: TypedArrayCompareFn<number>): Float32Array;
11462    /**
11463     * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
11464     * at begin, inclusive, up to end, exclusive.
11465     *
11466     * @param { number } [begin] - The index of the beginning of the array.
11467     * @param { number } [end] - The index of the end of the array.
11468     * @returns { Float32Array } A new Float32Array object.
11469     * @throws { BusinessError } 401 - Parameter error.
11470     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
11471     * @throws { BusinessError } 10200201 - Concurrent modification error.
11472     * @syscap SystemCapability.Utils.Lang
11473     * @atomicservice
11474     * @since 12
11475     */
11476    /**
11477     * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
11478     * at begin, inclusive, up to end, exclusive.
11479     *
11480     * @param { number } [begin] - The index of the beginning of the array.
11481     * @param { number } [end] - The index of the end of the array.
11482     * @returns { Float32Array } A new Float32Array object.
11483     * @throws { BusinessError } 401 - Parameter error.
11484     * @throws { BusinessError } 10200011 - The subarray method cannot be bound.
11485     * @throws { BusinessError } 10200201 - Concurrent modification error.
11486     * @syscap SystemCapability.Utils.Lang
11487     * @crossplatform
11488     * @atomicservice
11489     * @since 18
11490     */
11491    subarray(begin?: number, end?: number): Float32Array;
11492    /**
11493     * Returns the item located at the specified index.
11494     *
11495     * @param { number } index - The zero-based index of the desired code unit.<br/>
11496     *     A negative index will count back from the last item.
11497     * @returns { number | undefined } The element in the array matching the given index.<br/>
11498     *     Always returns undefined if index < -array.length or
11499     *     index >= array.length without attempting to access the corresponding property.
11500     * @throws { BusinessError } 401 - Parameter error.
11501     * @throws { BusinessError } 10200011 - The at method cannot be bound.
11502     * @throws { BusinessError } 10200201 - Concurrent modification error.
11503     * @syscap SystemCapability.Utils.Lang
11504     * @atomicservice
11505     * @since 12
11506     */
11507    /**
11508     * Returns the item located at the specified index.
11509     *
11510     * @param { number } index - The zero-based index of the desired code unit.<br/>
11511     *     A negative index will count back from the last item.
11512     * @returns { number | undefined } The element in the array matching the given index.<br/>
11513     *     Always returns undefined if index < -array.length or
11514     *     index >= array.length without attempting to access the corresponding property.
11515     * @throws { BusinessError } 401 - Parameter error.
11516     * @throws { BusinessError } 10200011 - The at method cannot be bound.
11517     * @throws { BusinessError } 10200201 - Concurrent modification error.
11518     * @syscap SystemCapability.Utils.Lang
11519     * @crossplatform
11520     * @atomicservice
11521     * @since 18
11522     */
11523    at(index: number): number | undefined;
11524    /**
11525     * Returns an iterator that iterates over numbers.
11526     *
11527     * @returns { IterableIterator<number> } Iterator object that yields numbers.
11528     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
11529     * @syscap SystemCapability.Utils.Lang
11530     * @atomicservice
11531     * @since 12
11532     */
11533    /**
11534     * Returns an iterator that iterates over numbers.
11535     *
11536     * @returns { IterableIterator<number> } Iterator object that yields numbers.
11537     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
11538     * @syscap SystemCapability.Utils.Lang
11539     * @crossplatform
11540     * @atomicservice
11541     * @since 18
11542     */
11543    [Symbol.iterator](): IterableIterator<number>;
11544    /**
11545     * Returns an iterable of key, value pairs for every entry in the array
11546     *
11547     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
11548     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
11549     * @throws { BusinessError } 10200201 - Concurrent modification error.
11550     * @syscap SystemCapability.Utils.Lang
11551     * @atomicservice
11552     * @since 12
11553     */
11554    /**
11555     * Returns an iterable of key, value pairs for every entry in the array
11556     *
11557     * @returns { IterableIterator<[number, number]> } A new iterable iterator object.
11558     * @throws { BusinessError } 10200011 - The entries method cannot be bound.
11559     * @throws { BusinessError } 10200201 - Concurrent modification error.
11560     * @syscap SystemCapability.Utils.Lang
11561     * @crossplatform
11562     * @atomicservice
11563     * @since 18
11564     */
11565    entries(): IterableIterator<[number, number]>;
11566    /**
11567     * Returns an iterable of keys in the array
11568     *
11569     * @returns { IterableIterator<number> } A new iterable iterator object.
11570     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
11571     * @throws { BusinessError } 10200201 - Concurrent modification error.
11572     * @syscap SystemCapability.Utils.Lang
11573     * @atomicservice
11574     * @since 12
11575     */
11576    /**
11577     * Returns an iterable of keys in the array
11578     *
11579     * @returns { IterableIterator<number> } A new iterable iterator object.
11580     * @throws { BusinessError } 10200011 - The keys method cannot be bound.
11581     * @throws { BusinessError } 10200201 - Concurrent modification error.
11582     * @syscap SystemCapability.Utils.Lang
11583     * @crossplatform
11584     * @atomicservice
11585     * @since 18
11586     */
11587    keys(): IterableIterator<number>;
11588    /**
11589     * Returns an iterable of values in the array
11590     *
11591     * @returns { IterableIterator<number> } A new iterable iterator object.
11592     * @throws { BusinessError } 10200011 - The values method cannot be bound.
11593     * @throws { BusinessError } 10200201 - Concurrent modification error.
11594     * @syscap SystemCapability.Utils.Lang
11595     * @atomicservice
11596     * @since 12
11597     */
11598    /**
11599     * Returns an iterable of values in the array
11600     *
11601     * @returns { IterableIterator<number> } A new iterable iterator object.
11602     * @throws { BusinessError } 10200011 - The values method cannot be bound.
11603     * @throws { BusinessError } 10200201 - Concurrent modification error.
11604     * @syscap SystemCapability.Utils.Lang
11605     * @crossplatform
11606     * @atomicservice
11607     * @since 18
11608     */
11609    values(): IterableIterator<number>;
11610    /**
11611     * Determines whether an array includes a certain element, returning true or false as appropriate.
11612     *
11613     * @param { number } searchElement - The element to search for.
11614     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
11615     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
11616     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
11617     * @throws { BusinessError } 401 - Parameter error.
11618     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
11619     * @throws { BusinessError } 10200201 - Concurrent modification error.
11620     * @syscap SystemCapability.Utils.Lang
11621     * @atomicservice
11622     * @since 12
11623     */
11624    /**
11625     * Determines whether an array includes a certain element, returning true or false as appropriate.
11626     *
11627     * @param { number } searchElement - The element to search for.
11628     * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement.
11629     * @returns { boolean } A boolean value which is true if the value searchElement is found <br/>
11630     *     within the typed array (or the part of the typed array indicated by the index fromIndex, if specified).
11631     * @throws { BusinessError } 401 - Parameter error.
11632     * @throws { BusinessError } 10200011 - The includes method cannot be bound.
11633     * @throws { BusinessError } 10200201 - Concurrent modification error.
11634     * @syscap SystemCapability.Utils.Lang
11635     * @crossplatform
11636     * @atomicservice
11637     * @since 18
11638     */
11639    includes(searchElement: number, fromIndex?: number): boolean;
11640    /**
11641     * Returns the item at that index.
11642     *
11643     * @syscap SystemCapability.Utils.Lang
11644     * @atomicservice
11645     * @since 12
11646     */
11647    /**
11648     * Returns the item at that index.
11649     *
11650     * @syscap SystemCapability.Utils.Lang
11651     * @crossplatform
11652     * @atomicservice
11653     * @since 18
11654     */
11655    [index: number]: number;
11656    /**
11657     * Find the last occurrence of a specified element in an Float32Array.
11658     *
11659     * @param { number } searchElement - Element to search for in the Float32Array..
11660     * @param { number } fromIndex - The index at which to start the search. If provided:
11661     *	   <br>If this index is negative, it is treated as Float32Array.length + fromIndex.
11662     * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1.
11663     * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound.
11664     * @throws { BusinessError } 10200201 - Concurrent modification error.
11665     * @syscap SystemCapability.Utils.Lang
11666     * @atomicservice
11667     * @since 18
11668     */
11669    lastIndexOf(searchElement: number, fromIndex?: number): number;
11670    /**
11671     * Reduce elements in an Float32Array from right to left.
11672     *
11673     * @param { TypedArrayReduceCallback<U, number, Float32Array> } callbackFn - A function that is called
11674     * for each element in the Float32Array.
11675     * @param { U } initialValue - A value to use as the first argument to the first call of the callback.
11676     *     <br>If no initial value is provided, the last element of the Float32Array will be used,
11677     *     <br>and the callback will start with the second-to-last element.
11678     * @returns { U } Returns the single value that results from the reduction.
11679     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11680     *                                    1.Mandatory parameters are left unspecified.
11681     *                                    2.Incorrect parameter types.
11682     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
11683     * @throws { BusinessError } 10200201 - Concurrent modification error.
11684     * @syscap SystemCapability.Utils.Lang
11685     * @atomicservice
11686     * @since 18
11687     */
11688    reduceRight<U = number>(callbackFn: TypedArrayReduceCallback<U, number, Float32Array>, initialValue: U): U;
11689    /**
11690     * Reduce elements in an Float32Array from right to left.
11691     *
11692     * @param { TypedArrayReduceCallback<number, number, Float32Array> } callbackFn - A function that is called
11693     * for each element in the Float32Array.
11694     * @returns { number } Returns the single value that results from the reduction.
11695     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11696     *                                    1.Mandatory parameters are left unspecified.
11697     *                                    2.Incorrect parameter types.
11698     * @throws { BusinessError } 10200011 - The reduceRight method cannot be bound.
11699     * @throws { BusinessError } 10200201 - Concurrent modification error.
11700     * @syscap SystemCapability.Utils.Lang
11701     * @atomicservice
11702     * @since 18
11703     */
11704    reduceRight(callbackFn: TypedArrayReduceCallback<number, number, Float32Array>): number;
11705    /**
11706     * Convert an Float32Array to a string.
11707     *
11708     * @returns { string } Returns a string representing the specified Float32Array and its elements,
11709     * separated by commas.
11710     * @throws { BusinessError } 10200011 - The toString method cannot be bound.
11711     * @throws { BusinessError } 10200201 - Concurrent modification error.
11712     * @syscap SystemCapability.Utils.Lang
11713     * @atomicservice
11714     * @since 18
11715     */
11716    toString(): string;
11717    /**
11718     * Convert an Float32Array to a string, The elements are converted to string using their toLocaleString methods.
11719     *
11720     * @returns { string } Returns a string representing the specified array and its elements, separated by commas.
11721     * @throws { BusinessError } 10200011 - The toLocaleString method cannot be bound.
11722     * @throws { BusinessError } 10200201 - Concurrent modification error.
11723     * @syscap SystemCapability.Utils.Lang
11724     * @atomicservice
11725     * @since 18
11726     */
11727    toLocaleString(): string;
11728    /**
11729     * Create an Float32Array containing these parameters.
11730     *
11731     * @param { number[] } items - A variable number of arguments that will be used as the elements of
11732     * the Float32Array.
11733     * @returns { Float32Array } Returns a new Float32Array instance containing the specified elements.
11734     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
11735     * <br>2. Incorrect parameter types; 3. Parameter verification failed.
11736     * @static
11737     * @syscap SystemCapability.Utils.Lang
11738     * @atomicservice
11739     * @since 18
11740     */
11741    static of(...items: number[]): Float32Array;
11742 }
11743
11744  /**
11745   * An ordered collections of bit values, which are either 0 or 1.
11746   * If multiple threads access a BitVector instance concurrently,
11747   * and at least one of the threads modifies the array structurally,
11748   * it must be synchronized externally.
11749   *
11750   * @syscap SystemCapability.Utils.Lang
11751   * @crossplatform
11752   * @atomicservice
11753   * @since 20
11754   * @arkts 1.2
11755   */
11756  class BitVector {
11757    /**
11758     * A constructor used to create a BitVector object.
11759     *
11760     * @param { number } length - The length of BitVector object.
11761     * @syscap SystemCapability.Utils.Lang
11762     * @crossplatform
11763     * @atomicservice
11764     * @since 20
11765     * @arkts 1.2
11766     */
11767    constructor(length: number);
11768    /**
11769     * Gets the element number of the BitVector. This is a number one higher than the highest index in the bit vector.
11770     * It can be changed by resize().
11771     *
11772     * @readonly
11773     * @syscap SystemCapability.Utils.Lang
11774     * @crossplatform
11775     * @atomicservice
11776     * @since 20
11777     * @arkts 1.2
11778     */
11779    get length(): number;
11780    /**
11781     * Appends the bit element to the end of this bit vector.
11782     *
11783     * @param { number } element - Element to be appended to this bit vector (0 means 0, else means 1).
11784     * @returns { boolean } The boolean type, returns true if the addition is successful, and returns false if it fails.
11785     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11786     *                                    1.Mandatory parameters are left unspecified.
11787     *                                    2.Incorrect parameter types.
11788     * @throws { BusinessError } 10200011 - The push method cannot be bound.
11789     * @throws { BusinessError } 10200201 - Concurrent modification error.
11790     * @syscap SystemCapability.Utils.Lang
11791     * @crossplatform
11792     * @atomicservice
11793     * @since 20
11794     * @arkts 1.2
11795     */
11796    push(element: number): boolean;
11797    /**
11798     * Retrieves and removes the bit element to the end of this bit vector.
11799     *
11800     * @returns { number | undefined } The boolean type, if the bit push successfully, return true, else return false.
11801     * @syscap SystemCapability.Utils.Lang
11802     * @crossplatform
11803     * @atomicservice
11804     * @since 20
11805     * @arkts 1.2
11806     */
11807    pop(): number | undefined;
11808    /**
11809     * Check if bit vector contains a particular bit element.
11810     *
11811     * @param { number } element - Element to be contained (0 means 0, else means 1).
11812     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11813     * @param { number } toIndex - The end of the index, containing the value at that index.
11814     * @returns { boolean } The boolean type, if bit vector contains the specified element, return true,
11815                            else return false.
11816     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11817     *                                    1.Mandatory parameters are left unspecified.
11818     *                                    2.Incorrect parameter types.
11819     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11820     * @throws { BusinessError } 10200011 - The has method cannot be bound.
11821     * @throws { BusinessError } 10200201 - Concurrent modification error.
11822     * @syscap SystemCapability.Utils.Lang
11823     * @crossplatform
11824     * @atomicservice
11825     * @since 20
11826     * @arkts 1.2
11827     */
11828    has(element: number, fromIndex: number, toIndex: number): boolean;
11829    /**
11830     * Sets a range of bits in a bit vector to a particular element.
11831     *
11832     * @param { number } element - Element to be set (0 means 0, else means 1).
11833     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11834     * @param { number } toIndex - The end of the index, excluding the value at that index.
11835     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11836     *                                    1.Mandatory parameters are left unspecified.
11837     *                                    2.Incorrect parameter types.
11838     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11839     * @throws { BusinessError } 10200011 - The setBitsByRange method cannot be bound.
11840     * @throws { BusinessError } 10200201 - Concurrent modification error.
11841     * @syscap SystemCapability.Utils.Lang
11842     * @crossplatform
11843     * @atomicservice
11844     * @since 20
11845     * @arkts 1.2
11846     */
11847    setBitsByRange(element: number, fromIndex: number, toIndex: number): void;
11848    /**
11849     * Sets all of bits in a bit vector to a particular element.
11850     *
11851     * @param { number } element - Element to be set (0 means 0, else means 1).
11852     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11853     *                                    1.Mandatory parameters are left unspecified.
11854     *                                    2.Incorrect parameter types.
11855     * @throws { BusinessError } 10200011 - The setAllBits method cannot be bound.
11856     * @throws { BusinessError } 10200201 - Concurrent modification error.
11857     * @syscap SystemCapability.Utils.Lang
11858     * @crossplatform
11859     * @atomicservice
11860     * @since 20
11861     * @arkts 1.2
11862     */
11863    setAllBits(element: number): void;
11864    /**
11865     * Returns the bit values in a range of indices in a bit vector.
11866     *
11867     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11868     * @param { number } toIndex - The end of the index, excluding the value at that index.
11869     * @returns { BitVector } The BitVector type, returns the bit values in a range of indices in a bit vector.
11870     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11871     *                                    1.Mandatory parameters are left unspecified.
11872     *                                    2.Incorrect parameter types.
11873     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11874     * @throws { BusinessError } 10200011 - The getBitsByRange method cannot be bound.
11875     * @throws { BusinessError } 10200201 - Concurrent modification error.
11876     * @syscap SystemCapability.Utils.Lang
11877     * @crossplatform
11878     * @atomicservice
11879     * @since 20
11880     * @arkts 1.2
11881     */
11882    getBitsByRange(fromIndex: number, toIndex: number): BitVector;
11883    /**
11884     * Resize the bitVector's length.
11885     *
11886     * @param { number } size - The new size for bitVector. If count is greater than the current size of bitVector,
11887     * the additional bit elements are set to 0.
11888     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11889     *                                    1.Mandatory parameters are left unspecified.
11890     *                                    2.Incorrect parameter types.
11891     * @throws { BusinessError } 10200011 - The resize method cannot be bound.
11892     * @throws { BusinessError } 10200201 - Concurrent modification error.
11893     * @syscap SystemCapability.Utils.Lang
11894     * @crossplatform
11895     * @atomicservice
11896     * @since 20
11897     * @arkts 1.2
11898     */
11899    resize(size: number): void;
11900    /**
11901     * Counts the number of times a certain bit element occurs within a range of bits in a bit vector.
11902     *
11903     * @param { number } element - Element to be counted (0 means 0, else means 1).
11904     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11905     * @param { number } toIndex - The end of the index, excluding the value at that index.
11906     * @returns { number } The number type, return the number of times a certain bit element
11907     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11908     *                                    1.Mandatory parameters are left unspecified.
11909     *                                    2.Incorrect parameter types.
11910     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11911     * @throws { BusinessError } 10200011 - The getBitCountByRange method cannot be bound.
11912     * @throws { BusinessError } 10200201 - Concurrent modification error.
11913     * @syscap SystemCapability.Utils.Lang
11914     * @crossplatform
11915     * @atomicservice
11916     * @since 20
11917     * @arkts 1.2
11918     */
11919    getBitCountByRange(element: number, fromIndex: number, toIndex: number): number;
11920    /**
11921     * Locates the first occurrence of a certain bit value within a range of bits in a bit vector.
11922     *
11923     * @param { number } element - Element to be Located (0 means 0, else means 1).
11924     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11925     * @param { number } toIndex - The end of the index, excluding the value at that index.
11926     * @returns { number } The number type, return the first index of specified bit within a range,
11927     * or -1 if this range of the bitVector does not contain the element.
11928     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11929     *                                    1.Mandatory parameters are left unspecified.
11930     *                                    2.Incorrect parameter types.
11931     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11932     * @throws { BusinessError } 10200011 - The getIndexOf method cannot be bound.
11933     * @throws { BusinessError } 10200201 - Concurrent modification error.
11934     * @syscap SystemCapability.Utils.Lang
11935     * @crossplatform
11936     * @atomicservice
11937     * @since 20
11938     * @arkts 1.2
11939     */
11940    getIndexOf(element: number, fromIndex: number, toIndex: number): number;
11941    /**
11942     * Locates the last occurrence of a certain bit value within a range of bits in a bit vector.
11943     *
11944     * @param { number } element - Element to be Located (0 means 0, else means 1).
11945     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11946     * @param { number } toIndex - The end of the index, excluding the value at that index.
11947     * @returns { number } The number type, return the last index of specified bit within a range,
11948     * or -1 if this range of the bitVector does not contain the element.
11949     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11950     *                                    1.Mandatory parameters are left unspecified.
11951     *                                    2.Incorrect parameter types.
11952     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11953     * @throws { BusinessError } 10200011 - The getLastIndexOf method cannot be bound.
11954     * @throws { BusinessError } 10200201 - Concurrent modification error.
11955     * @syscap SystemCapability.Utils.Lang
11956     * @crossplatform
11957     * @atomicservice
11958     * @since 20
11959     * @arkts 1.2
11960     */
11961    getLastIndexOf(element: number, fromIndex: number, toIndex: number): number;
11962    /**
11963     * Flips the bit value by index in a bit vector.(Flip 0 to 1, flip 1 to 0)
11964     *
11965     * @param { number } index - The index in the bit vector.
11966     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11967     *                                    1.Mandatory parameters are left unspecified.
11968     *                                    2.Incorrect parameter types.
11969     * @throws { BusinessError } 10200001 - The value of index is out of range.
11970     * @throws { BusinessError } 10200011 - The flipBitByIndex method cannot be bound.
11971     * @throws { BusinessError } 10200201 - Concurrent modification error.
11972     * @syscap SystemCapability.Utils.Lang
11973     * @crossplatform
11974     * @atomicservice
11975     * @since 20
11976     * @arkts 1.2
11977     */
11978    flipBitByIndex(index: number): void;
11979    /**
11980     * Flips a range of bit values in a bit vector.(Flip 0 to 1, flip 1 to 0).
11981     *
11982     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
11983     * @param { number } toIndex - The end of the index, excluding the value at that index.
11984     * @throws { BusinessError } 401 - Parameter error. Possible causes:
11985     *                                    1.Mandatory parameters are left unspecified.
11986     *                                    2.Incorrect parameter types.
11987     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
11988     * @throws { BusinessError } 10200011 - The flipBitsByRange method cannot be bound.
11989     * @throws { BusinessError } 10200201 - Concurrent modification error.
11990     * @syscap SystemCapability.Utils.Lang
11991     * @crossplatform
11992     * @atomicservice
11993     * @since 20
11994     * @arkts 1.2
11995     */
11996    flipBitsByRange(fromIndex: number, toIndex: number): void;
11997    /**
11998     * Returns an iterator that iterates over bit vector.
11999     *
12000     * @returns { IterableIterator<number> } A new iterable iterator object.
12001     * @syscap SystemCapability.Utils.Lang
12002     * @crossplatform
12003     * @atomicservice
12004     * @since 20
12005     * @arkts 1.2
12006     */
12007    $_iterator(): IterableIterator<number>;
12008    /**
12009     * Returns an iterable of values in the bit vector
12010     *
12011     * @returns { IterableIterator<number> }  A new iterable iterator object.
12012     * @throws { BusinessError } 10200011 - The values method cannot be bound.
12013     * @throws { BusinessError } 10200201 - Concurrent modification error.
12014     * @syscap SystemCapability.Utils.Lang
12015     * @crossplatform
12016     * @atomicservice
12017     * @since 20
12018     * @arkts 1.2
12019     */
12020    values(): IterableIterator<number>;
12021    /**
12022     * Returns the item at that index.
12023     *
12024     * @param { number } index - The zero-based index of the desired code unit.
12025     * @returns { number } The element in the bitVector matching the given index.
12026     * @syscap SystemCapability.Utils.Lang
12027     * @crossplatform
12028     * @atomicservice
12029     * @since 20
12030     * @arkts 1.2
12031     */
12032    $_get(index: number): number;
12033    /**
12034     * Set the value of item at that index.
12035     *
12036     * @param { number } index - The index of the element to set.
12037     * @param { number } value - The value to set at the specified index.
12038     * @syscap SystemCapability.Utils.Lang
12039     * @atomicservice
12040     * @crossplatform
12041     * @since 20
12042     * @arkts 1.2
12043     */
12044    $_set(index: number, value: number): void;
12045  }
12046
12047  /**
12048   * An ordered collections of bit values, which are either 0 or 1.
12049   * If multiple threads access a BitVector instance concurrently,
12050   * and at least one of the threads modifies the array structurally,
12051   * it must be synchronized externally.
12052   *
12053   * @syscap SystemCapability.Utils.Lang
12054   * @atomicservice
12055   * @since 12
12056   */
12057  /**
12058   * An ordered collections of bit values, which are either 0 or 1.
12059   * If multiple threads access a BitVector instance concurrently,
12060   * and at least one of the threads modifies the array structurally,
12061   * it must be synchronized externally.
12062   *
12063   * @syscap SystemCapability.Utils.Lang
12064   * @crossplatform
12065   * @atomicservice
12066   * @since 18
12067   */
12068  @Sendable
12069  class BitVector {
12070    /**
12071     * A constructor used to create a BitVector object.
12072     *
12073     * @param { number } length - The length of BitVector object.
12074     * @syscap SystemCapability.Utils.Lang
12075     * @atomicservice
12076     * @since 12
12077     */
12078    /**
12079     * A constructor used to create a BitVector object.
12080     *
12081     * @param { number } length - The length of BitVector object.
12082     * @syscap SystemCapability.Utils.Lang
12083     * @crossplatform
12084     * @atomicservice
12085     * @since 18
12086     */
12087    constructor(length: number);
12088    /**
12089     * Gets the element number of the BitVector. This is a number one higher than the highest index in the bit vector.
12090     * It can be changed by resize().
12091     *
12092     * @readonly
12093     * @syscap SystemCapability.Utils.Lang
12094     * @atomicservice
12095     * @since 12
12096     */
12097    /**
12098     * Gets the element number of the BitVector. This is a number one higher than the highest index in the bit vector.
12099     * It can be changed by resize().
12100     *
12101     * @readonly
12102     * @syscap SystemCapability.Utils.Lang
12103     * @crossplatform
12104     * @atomicservice
12105     * @since 18
12106     */
12107    readonly length: number;
12108    /**
12109     * Appends the bit element to the end of this bit vector.
12110     *
12111     * @param { number } element - Element to be appended to this bit vector (0 means 0, else means 1).
12112     * @returns { boolean } The boolean type, returns true if the addition is successful, and returns false if it fails.
12113     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12114     *                                    1.Mandatory parameters are left unspecified.
12115     *                                    2.Incorrect parameter types.
12116     * @throws { BusinessError } 10200011 - The push method cannot be bound.
12117     * @throws { BusinessError } 10200201 - Concurrent modification error.
12118     * @syscap SystemCapability.Utils.Lang
12119     * @atomicservice
12120     * @since 12
12121     */
12122    /**
12123     * Appends the bit element to the end of this bit vector.
12124     *
12125     * @param { number } element - Element to be appended to this bit vector (0 means 0, else means 1).
12126     * @returns { boolean } The boolean type, returns true if the addition is successful, and returns false if it fails.
12127     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12128     *                                    1.Mandatory parameters are left unspecified.
12129     *                                    2.Incorrect parameter types.
12130     * @throws { BusinessError } 10200011 - The push method cannot be bound.
12131     * @throws { BusinessError } 10200201 - Concurrent modification error.
12132     * @syscap SystemCapability.Utils.Lang
12133     * @crossplatform
12134     * @atomicservice
12135     * @since 18
12136     */
12137    push(element: number): boolean;
12138    /**
12139     * Retrieves and removes the bit element to the end of this bit vector.
12140     *
12141     * @returns { number } The boolean type, if the bit push successfully, return true, else return false.
12142     * @throws { BusinessError } 10200011 - The pop method cannot be bound.
12143     * @throws { BusinessError } 10200201 - Concurrent modification error.
12144     * @syscap SystemCapability.Utils.Lang
12145     * @atomicservice
12146     * @since 12
12147     */
12148    /**
12149     * Retrieves and removes the bit element to the end of this bit vector.
12150     *
12151     * @returns { number } The boolean type, if the bit push successfully, return true, else return false.
12152     * @throws { BusinessError } 10200011 - The pop method cannot be bound.
12153     * @throws { BusinessError } 10200201 - Concurrent modification error.
12154     * @syscap SystemCapability.Utils.Lang
12155     * @crossplatform
12156     * @atomicservice
12157     * @since 18
12158     */
12159    pop(): number;
12160    /**
12161     * Check if bit vector contains a particular bit element.
12162     *
12163     * @param { number } element - Element to be contained (0 means 0, else means 1).
12164     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12165     * @param { number } toIndex - The end of the index, containing the value at that index.
12166     * @returns { boolean } The boolean type, if bit vector contains the specified element, return true,
12167                            else return false.
12168     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12169     *                                    1.Mandatory parameters are left unspecified.
12170     *                                    2.Incorrect parameter types.
12171     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12172     * @throws { BusinessError } 10200011 - The has method cannot be bound.
12173     * @throws { BusinessError } 10200201 - Concurrent modification error.
12174     * @syscap SystemCapability.Utils.Lang
12175     * @atomicservice
12176     * @since 12
12177     */
12178    /**
12179     * Check if bit vector contains a particular bit element.
12180     *
12181     * @param { number } element - Element to be contained (0 means 0, else means 1).
12182     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12183     * @param { number } toIndex - The end of the index, containing the value at that index.
12184     * @returns { boolean } The boolean type, if bit vector contains the specified element, return true,
12185                            else return false.
12186     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12187     * @throws { BusinessError } 10200011 - The has method cannot be bound.
12188     * @throws { BusinessError } 10200201 - Concurrent modification error.
12189     * @syscap SystemCapability.Utils.Lang
12190     * @crossplatform
12191     * @atomicservice
12192     * @since 18
12193     */
12194    has(element: number, fromIndex: number, toIndex: number): boolean;
12195    /**
12196     * Sets a range of bits in a bit vector to a particular element.
12197     *
12198     * @param { number } element - Element to be set (0 means 0, else means 1).
12199     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12200     * @param { number } toIndex - The end of the index, excluding the value at that index.
12201     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12202     *                                    1.Mandatory parameters are left unspecified.
12203     *                                    2.Incorrect parameter types.
12204     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12205     * @throws { BusinessError } 10200011 - The setBitsByRange method cannot be bound.
12206     * @throws { BusinessError } 10200201 - Concurrent modification error.
12207     * @syscap SystemCapability.Utils.Lang
12208     * @atomicservice
12209     * @since 12
12210     */
12211    /**
12212     * Sets a range of bits in a bit vector to a particular element.
12213     *
12214     * @param { number } element - Element to be set (0 means 0, else means 1).
12215     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12216     * @param { number } toIndex - The end of the index, excluding the value at that index.
12217     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12218     *                                    1.Mandatory parameters are left unspecified.
12219     *                                    2.Incorrect parameter types.
12220     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12221     * @throws { BusinessError } 10200011 - The setBitsByRange method cannot be bound.
12222     * @throws { BusinessError } 10200201 - Concurrent modification error.
12223     * @syscap SystemCapability.Utils.Lang
12224     * @crossplatform
12225     * @atomicservice
12226     * @since 18
12227     */
12228    setBitsByRange(element: number, fromIndex: number, toIndex: number): void;
12229    /**
12230     * Sets all of bits in a bit vector to a particular element.
12231     *
12232     * @param { number } element - Element to be set (0 means 0, else means 1).
12233     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12234     *                                    1.Mandatory parameters are left unspecified.
12235     *                                    2.Incorrect parameter types.
12236     * @throws { BusinessError } 10200011 - The setAllBits method cannot be bound.
12237     * @throws { BusinessError } 10200201 - Concurrent modification error.
12238     * @syscap SystemCapability.Utils.Lang
12239     * @atomicservice
12240     * @since 12
12241     */
12242    /**
12243     * Sets all of bits in a bit vector to a particular element.
12244     *
12245     * @param { number } element - Element to be set (0 means 0, else means 1).
12246     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12247     *                                    1.Mandatory parameters are left unspecified.
12248     *                                    2.Incorrect parameter types.
12249     * @throws { BusinessError } 10200011 - The setAllBits method cannot be bound.
12250     * @throws { BusinessError } 10200201 - Concurrent modification error.
12251     * @syscap SystemCapability.Utils.Lang
12252     * @crossplatform
12253     * @atomicservice
12254     * @since 18
12255     */
12256    setAllBits(element: number): void;
12257    /**
12258     * Returns the bit values in a range of indices in a bit vector.
12259     *
12260     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12261     * @param { number } toIndex - The end of the index, excluding the value at that index.
12262     * @returns { BitVector } The BitVector type, returns the bit values in a range of indices in a bit vector.
12263     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12264     *                                    1.Mandatory parameters are left unspecified.
12265     *                                    2.Incorrect parameter types.
12266     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12267     * @throws { BusinessError } 10200011 - The getBitsByRange method cannot be bound.
12268     * @throws { BusinessError } 10200201 - Concurrent modification error.
12269     * @syscap SystemCapability.Utils.Lang
12270     * @atomicservice
12271     * @since 12
12272     */
12273    /**
12274     * Returns the bit values in a range of indices in a bit vector.
12275     *
12276     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12277     * @param { number } toIndex - The end of the index, excluding the value at that index.
12278     * @returns { BitVector } The BitVector type, returns the bit values in a range of indices in a bit vector.
12279     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12280     *                                    1.Mandatory parameters are left unspecified.
12281     *                                    2.Incorrect parameter types.
12282     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12283     * @throws { BusinessError } 10200011 - The getBitsByRange method cannot be bound.
12284     * @throws { BusinessError } 10200201 - Concurrent modification error.
12285     * @syscap SystemCapability.Utils.Lang
12286     * @crossplatform
12287     * @atomicservice
12288     * @since 18
12289     */
12290    getBitsByRange(fromIndex: number, toIndex: number): BitVector;
12291    /**
12292     * Resize the bitVector's length.
12293     *
12294     * @param { number } size - The new size for bitVector. If count is greater than the current size of bitVector,
12295     * the additional bit elements are set to 0.
12296     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12297     *                                    1.Mandatory parameters are left unspecified.
12298     *                                    2.Incorrect parameter types.
12299     * @throws { BusinessError } 10200011 - The resize method cannot be bound.
12300     * @throws { BusinessError } 10200201 - Concurrent modification error.
12301     * @syscap SystemCapability.Utils.Lang
12302     * @atomicservice
12303     * @since 12
12304     */
12305    /**
12306     * Resize the bitVector's length.
12307     *
12308     * @param { number } size - The new size for bitVector. If count is greater than the current size of bitVector,
12309     * the additional bit elements are set to 0.
12310     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12311     *                                    1.Mandatory parameters are left unspecified.
12312     *                                    2.Incorrect parameter types.
12313     * @throws { BusinessError } 10200011 - The resize method cannot be bound.
12314     * @throws { BusinessError } 10200201 - Concurrent modification error.
12315     * @syscap SystemCapability.Utils.Lang
12316     * @crossplatform
12317     * @atomicservice
12318     * @since 18
12319     */
12320    resize(size: number): void;
12321    /**
12322     * Counts the number of times a certain bit element occurs within a range of bits in a bit vector.
12323     *
12324     * @param { number } element - Element to be counted (0 means 0, else means 1).
12325     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12326     * @param { number } toIndex - The end of the index, excluding the value at that index.
12327     * @returns { number } The number type, return the number of times a certain bit element
12328     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12329     *                                    1.Mandatory parameters are left unspecified.
12330     *                                    2.Incorrect parameter types.
12331     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12332     * @throws { BusinessError } 10200011 - The getBitCountByRange method cannot be bound.
12333     * @throws { BusinessError } 10200201 - Concurrent modification error.
12334     * @syscap SystemCapability.Utils.Lang
12335     * @atomicservice
12336     * @since 12
12337     */
12338    /**
12339     * Counts the number of times a certain bit element occurs within a range of bits in a bit vector.
12340     *
12341     * @param { number } element - Element to be counted (0 means 0, else means 1).
12342     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12343     * @param { number } toIndex - The end of the index, excluding the value at that index.
12344     * @returns { number } The number type, return the number of times a certain bit element
12345     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12346     *                                    1.Mandatory parameters are left unspecified.
12347     *                                    2.Incorrect parameter types.
12348     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12349     * @throws { BusinessError } 10200011 - The getBitCountByRange method cannot be bound.
12350     * @throws { BusinessError } 10200201 - Concurrent modification error.
12351     * @syscap SystemCapability.Utils.Lang
12352     * @crossplatform
12353     * @atomicservice
12354     * @since 18
12355     */
12356    getBitCountByRange(element: number, fromIndex: number, toIndex: number): number;
12357    /**
12358     * Locates the first occurrence of a certain bit value within a range of bits in a bit vector.
12359     *
12360     * @param { number } element - Element to be Located (0 means 0, else means 1).
12361     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12362     * @param { number } toIndex - The end of the index, excluding the value at that index.
12363     * @returns { number } The number type, return the first index of specified bit within a range,
12364     * or -1 if this range of the bitVector does not contain the element.
12365     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12366     *                                    1.Mandatory parameters are left unspecified.
12367     *                                    2.Incorrect parameter types.
12368     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12369     * @throws { BusinessError } 10200011 - The getIndexOf method cannot be bound.
12370     * @throws { BusinessError } 10200201 - Concurrent modification error.
12371     * @syscap SystemCapability.Utils.Lang
12372     * @atomicservice
12373     * @since 12
12374     */
12375    /**
12376     * Locates the first occurrence of a certain bit value within a range of bits in a bit vector.
12377     *
12378     * @param { number } element - Element to be Located (0 means 0, else means 1).
12379     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12380     * @param { number } toIndex - The end of the index, excluding the value at that index.
12381     * @returns { number } The number type, return the first index of specified bit within a range,
12382     * or -1 if this range of the bitVector does not contain the element.
12383     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12384     *                                    1.Mandatory parameters are left unspecified.
12385     *                                    2.Incorrect parameter types.
12386     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12387     * @throws { BusinessError } 10200011 - The getIndexOf method cannot be bound.
12388     * @throws { BusinessError } 10200201 - Concurrent modification error.
12389     * @syscap SystemCapability.Utils.Lang
12390     * @crossplatform
12391     * @atomicservice
12392     * @since 18
12393     */
12394    getIndexOf(element: number, fromIndex: number, toIndex: number): number;
12395    /**
12396     * Locates the last occurrence of a certain bit value within a range of bits in a bit vector.
12397     *
12398     * @param { number } element - Element to be Located (0 means 0, else means 1).
12399     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12400     * @param { number } toIndex - The end of the index, excluding the value at that index.
12401     * @returns { number } The number type, return the last index of specified bit within a range,
12402     * or -1 if this range of the bitVector does not contain the element.
12403     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12404     *                                    1.Mandatory parameters are left unspecified.
12405     *                                    2.Incorrect parameter types.
12406     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12407     * @throws { BusinessError } 10200011 - The getLastIndexOf method cannot be bound.
12408     * @throws { BusinessError } 10200201 - Concurrent modification error.
12409     * @syscap SystemCapability.Utils.Lang
12410     * @atomicservice
12411     * @since 12
12412     */
12413    /**
12414     * Locates the last occurrence of a certain bit value within a range of bits in a bit vector.
12415     *
12416     * @param { number } element - Element to be Located (0 means 0, else means 1).
12417     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12418     * @param { number } toIndex - The end of the index, excluding the value at that index.
12419     * @returns { number } The number type, return the last index of specified bit within a range,
12420     * or -1 if this range of the bitVector does not contain the element.
12421     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12422     *                                    1.Mandatory parameters are left unspecified.
12423     *                                    2.Incorrect parameter types.
12424     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12425     * @throws { BusinessError } 10200011 - The getLastIndexOf method cannot be bound.
12426     * @throws { BusinessError } 10200201 - Concurrent modification error.
12427     * @syscap SystemCapability.Utils.Lang
12428     * @crossplatform
12429     * @atomicservice
12430     * @since 18
12431     */
12432    getLastIndexOf(element: number, fromIndex: number, toIndex: number): number;
12433    /**
12434     * Flips the bit value by index in a bit vector.(Flip 0 to 1, flip 1 to 0)
12435     *
12436     * @param { number } index - The index in the bit vector.
12437     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12438     *                                    1.Mandatory parameters are left unspecified.
12439     *                                    2.Incorrect parameter types.
12440     * @throws { BusinessError } 10200001 - The value of index is out of range.
12441     * @throws { BusinessError } 10200011 - The flipBitByIndex method cannot be bound.
12442     * @throws { BusinessError } 10200201 - Concurrent modification error.
12443     * @syscap SystemCapability.Utils.Lang
12444     * @atomicservice
12445     * @since 12
12446     */
12447    /**
12448     * Flips the bit value by index in a bit vector.(Flip 0 to 1, flip 1 to 0)
12449     *
12450     * @param { number } index - The index in the bit vector.
12451     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12452     *                                    1.Mandatory parameters are left unspecified.
12453     *                                    2.Incorrect parameter types.
12454     * @throws { BusinessError } 10200001 - The value of index is out of range.
12455     * @throws { BusinessError } 10200011 - The flipBitByIndex method cannot be bound.
12456     * @throws { BusinessError } 10200201 - Concurrent modification error.
12457     * @syscap SystemCapability.Utils.Lang
12458     * @crossplatform
12459     * @atomicservice
12460     * @since 18
12461     */
12462    flipBitByIndex(index: number): void;
12463    /**
12464     * Flips a range of bit values in a bit vector.(Flip 0 to 1, flip 1 to 0).
12465     *
12466     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12467     * @param { number } toIndex - The end of the index, excluding the value at that index.
12468     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12469     *                                    1.Mandatory parameters are left unspecified.
12470     *                                    2.Incorrect parameter types.
12471     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12472     * @throws { BusinessError } 10200011 - The flipBitsByRange method cannot be bound.
12473     * @throws { BusinessError } 10200201 - Concurrent modification error.
12474     * @syscap SystemCapability.Utils.Lang
12475     * @atomicservice
12476     * @since 12
12477     */
12478    /**
12479     * Flips a range of bit values in a bit vector.(Flip 0 to 1, flip 1 to 0).
12480     *
12481     * @param { number } fromIndex - The starting position of the index, containing the value at that index position.
12482     * @param { number } toIndex - The end of the index, excluding the value at that index.
12483     * @throws { BusinessError } 401 - Parameter error. Possible causes:
12484     *                                    1.Mandatory parameters are left unspecified.
12485     *                                    2.Incorrect parameter types.
12486     * @throws { BusinessError } 10200001 - The value of fromIndex or toIndex is out of range.
12487     * @throws { BusinessError } 10200011 - The flipBitsByRange method cannot be bound.
12488     * @throws { BusinessError } 10200201 - Concurrent modification error.
12489     * @syscap SystemCapability.Utils.Lang
12490     * @crossplatform
12491     * @atomicservice
12492     * @since 18
12493     */
12494    flipBitsByRange(fromIndex: number, toIndex: number): void;
12495    /**
12496     * Returns an iterator that iterates over bit vector.
12497     *
12498     * @returns { IterableIterator<number> } A new iterable iterator object.
12499     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
12500     * @syscap SystemCapability.Utils.Lang
12501     * @atomicservice
12502     * @since 12
12503     */
12504    /**
12505     * Returns an iterator that iterates over bit vector.
12506     *
12507     * @returns { IterableIterator<number> } A new iterable iterator object.
12508     * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
12509     * @syscap SystemCapability.Utils.Lang
12510     * @crossplatform
12511     * @atomicservice
12512     * @since 18
12513     */
12514    [Symbol.iterator](): IterableIterator<number>;
12515    /**
12516     * Returns an iterable of values in the bit vector
12517     *
12518     * @returns { IterableIterator<number> }  A new iterable iterator object.
12519     * @throws { BusinessError } 10200011 - The values method cannot be bound.
12520     * @throws { BusinessError } 10200201 - Concurrent modification error.
12521     * @syscap SystemCapability.Utils.Lang
12522     * @atomicservice
12523     * @since 12
12524     */
12525    /**
12526     * Returns an iterable of values in the bit vector
12527     *
12528     * @returns { IterableIterator<number> }  A new iterable iterator object.
12529     * @throws { BusinessError } 10200011 - The values method cannot be bound.
12530     * @throws { BusinessError } 10200201 - Concurrent modification error.
12531     * @syscap SystemCapability.Utils.Lang
12532     * @crossplatform
12533     * @atomicservice
12534     * @since 18
12535     */
12536    values(): IterableIterator<number>;
12537    /**
12538     * Returns the item at that index.
12539     *
12540     * @syscap SystemCapability.Utils.Lang
12541     * @atomicservice
12542     * @since 12
12543     */
12544    /**
12545     * Returns the item at that index.
12546     *
12547     * @syscap SystemCapability.Utils.Lang
12548     * @crossplatform
12549     * @atomicservice
12550     * @since 18
12551     */
12552    [index: number]: number;
12553  }
12554}
12555
12556export default collections;
12557
12558