1/** 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 * 7 * @format 8 * @flow strict 9 */ 10 11import type {ArrayLike} from './ArrayLikeUtils'; 12import type DOMRectReadOnly from '../Geometry/DOMRectReadOnly'; 13 14declare export default class DOMRectList 15 implements Iterable<DOMRectReadOnly>, ArrayLike<DOMRectReadOnly> 16{ 17 // This property should've been read-only as well, but Flow doesn't handle 18 // read-only indexers correctly (thinks reads are writes and fails). 19 [index: number]: DOMRectReadOnly; 20 +length: number; 21 item(index: number): DOMRectReadOnly | null; 22 @@iterator(): Iterator<DOMRectReadOnly>; 23} 24 25declare export function createDOMRectList( 26 domRects: $ReadOnlyArray<DOMRectReadOnly>, 27): DOMRectList; 28