import * as A from "@effect-ts/system/Collections/Immutable/Array";
import type { NonEmptyArray } from "@effect-ts/system/Collections/Immutable/NonEmptyArray";
import type { Associative } from "../../../Associative/index.js";
import type { Equal } from "../../../Equal/index.js";
import * as Ord from "../../../Ord/index.js";
import type { URI } from "../../../Prelude/index.js";
import * as P from "../../../Prelude/index.js";
import type { Show } from "../../../Show/index.js";
export * from "@effect-ts/system/Collections/Immutable/NonEmptyArray";
/**
* `ForEachWithIndex`'s `forEachWithIndexF` function
*/
export declare const forEachWithIndexF: P.ForEachWithIndexFn<[URI<"NonEmptyArray", {}>], P.Auto>;
/**
* `ForEach`'s `forEachF` function
*/
export declare const forEachF: P.ForeachFn<[URI<"NonEmptyArray", {}>], P.Auto>;
/**
* Test if a value is a member of an array. Takes a `Equal` as a single
* argument which returns the function to use to search for a value of type `A` in
* an array of type `NonEmptyArray`.
*/
export declare function elem(E: Equal): (a: A) => (as: NonEmptyArray) => boolean;
/**
* Test if a value is a member of an array. Takes a `Equal` as a single
* argument which returns the function to use to search for a value of type `A` in
* an array of type `NonEmptyArray`.
*/
export declare function elem_(E: Equal): (as: NonEmptyArray, a: A) => boolean;
/**
* Creates an array of array values not included in the other given array using a `Equal` for equality
* comparisons. The order and references of result values are determined by the first array.
*/
export declare function difference_(E: Equal): (xs: NonEmptyArray, ys: NonEmptyArray) => A.Array;
/**
* Creates an array of array values not included in the other given array using a `Equal` for equality
* comparisons. The order and references of result values are determined by the first array.
*/
export declare function difference(E: Equal): (ys: NonEmptyArray) => (xs: NonEmptyArray) => A.Array;
/**
* Derives an `Equal` over the `NonEmptyArray` of a given element type from the `Equal` of that type. The derived `Equal` defines two
* arrays as equal if all elements of both arrays are compared equal pairwise with the given `E`. In case of arrays of
* different lengths, the result is non equality.
*/
export declare function getEqual(E: Equal): Equal>;
/**
* Returns a `Ord` for `NonEmptyArray` given `Ord`
*/
export declare function getOrd(O: Ord.Ord): Ord.Ord>;
/**
* Returns a `Show` for `NonEmptyArray` given `Show`
*/
export declare function getShow(S: Show): Show>;
/**
* Creates an array of unique values that are included in all given arrays using a `Eq` for equality
* comparisons. The order and references of result values are determined by the first array.
*/
export declare function intersection_(E: Equal): (xs: NonEmptyArray, ys: NonEmptyArray) => A.Array;
/**
* Creates an array of unique values that are included in all given arrays using a `Eq` for equality
* comparisons. The order and references of result values are determined by the first array.
*/
export declare function intersection(E: Equal): (ys: NonEmptyArray) => (xs: NonEmptyArray) => A.Array;
/**
* Fold Identity with a mapping function
*/
export declare function foldMap(M: Associative): (f: (a: A) => M) => (fa: NonEmptyArray) => M;
/**
* Fold Identity with a mapping function
*/
export declare function foldMap_(M: Associative): (fa: NonEmptyArray, f: (a: A) => M) => M;
/**
* Fold Identity with a mapping function that consider also the index
*/
export declare function foldMapWithIndex(M: Associative): (f: (i: number, a: A) => M) => (fa: NonEmptyArray) => M;
/**
* Fold Identity with a mapping function that consider also the index
*/
export declare function foldMapWithIndex_(M: Associative): (fa: NonEmptyArray, f: (i: number, a: A) => M) => M;
/**
* Sort the elements of an array in increasing order
*/
export declare function sort(O: Ord.Ord): (as: NonEmptyArray) => NonEmptyArray;
/**
* Sort the elements of an array in increasing order, where elements are compared using first `ords[0]`,
* then `ords[1]`, then `ords[2]`, etc...
*/
export declare function sortBy(ords: NonEmptyArray>): (as: NonEmptyArray) => NonEmptyArray;
/**
* Creates an array of unique values, in order, from all given arrays using a `Equal` for equality comparisons
*/
export declare function union(E: Equal): (xs: NonEmptyArray, ys: NonEmptyArray) => NonEmptyArray;
/**
* Remove duplicates from an array, keeping the first occurrence of an element.
*/
export declare function uniq(E: Equal): (as: NonEmptyArray) => NonEmptyArray;
/**
* Get an Associative instance for NonEmptyArray
*/
export declare function getAssociative(): Associative>;
//# sourceMappingURL=operations.d.ts.map