/** * Collection utilities for workflow modules * * Provides type-safe utilities for working with NonEmptyReadonlyArray * while preserving the non-empty guarantee through Effect operations. */ import { Array as Arr, Effect } from "effect"; /** * Effect.forEach that preserves NonEmptyReadonlyArray type. * * Uses head/tail pattern to maintain the non-empty guarantee without type casting. * Processes items sequentially (concurrency: 1) to maintain order. * * @example * ```ts * const result = forEachNonEmpty( * items, * (item, index) => processItem(item, index) * ) * // result: Effect, E, R> * ``` */ export declare const forEachNonEmpty: (items: Arr.NonEmptyReadonlyArray, f: (item: A, index: number) => Effect.Effect) => Effect.Effect, E, R>; //# sourceMappingURL=collections.d.ts.map