import '../../globals.js';
type MultidimensionalArray<T> = Array<MultidimensionalArray<T> | T>;
/**
 * @param dimension - The dimension of the array (how many levels of nested arrays there are). For instance,
 *   [ 'a' ] is a 1-dimensional array, [ [ 'b' ] ] is a 2-dimensional array, etc.
 * @param array - A multidimensional array of the specified dimension
 * @param forEach - function( element: {*}, indices...: {Array.<number>} ). Called for each individual
 *   element. The indices are provided as the 2nd, 3rd, etc. parameters to the function (continues depending on the
 *   dimension). This is a generalization of the normal `forEach` function, which only provides the first index. Thus:
 *   array[ indices[ 0 ] ]...[ indices[ dimension - 1 ] ] === element
 */
declare function dimensionForEach<T>(dimension: number, array: MultidimensionalArray<T>, forEach: (element: T, ...indices: number[]) => void): void;
export default dimensionForEach;
//# sourceMappingURL=dimensionForEach.d.ts.map