import type { ImmutableArray } from "./array.js"; import type { Arguments } from "./function.js"; /** Function that can match an item against a target. */ export type Match = (...args: A) => boolean; /** Filter an iterable set of items using a matcher. */ export declare function filterItems(items: Iterable, match: Match<[T, ...A]>, ...args: A): Iterable; /** Filter an array (immutably) using a matcher. */ export declare function filterArray(input: ImmutableArray, match: Match<[T, ...A]>, ...args: A): ImmutableArray; /** Filter a sequence of values using a matcher. */ export declare function filterSequence(sequence: AsyncIterable, match: Match, ...args: A): AsyncIterable;