/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ export type Cursor = { length: number; next: () => IteratorResult; [Symbol.iterator]: () => Iterator; }; /** * Creates a proxy that treats an object-of-arrays as an array-of-objects. * It lazily computes each row when accessed and lets you update or add new rows. * * When adding a new object (either via .push or assignment to the next index), * the underlying arrays are updated accordingly. * * @param data An object whose properties are arrays (assumed to have equal lengths) * @returns A proxy that behaves like an array of objects backed by the input arrays */ export declare function objectOfArraysAsArrayOfObjects>(data: { [K in keyof T]: T[K][]; }): Array & { cursor: () => Cursor; }; //# sourceMappingURL=objectOfArraysAsArrayOfObjects.d.ts.map