import { type ItemsOf } from "../index.js"; export type Predicate = (item: T, index: number, array: readonly T[]) => boolean; export type MappingFn = (item: T, index: number, array: readonly T[]) => V; export type FlattenArray = T extends any[] ? FlattenArray> : T; export type ModifyValue = Omit & { [key in K]: V; };