import { MaybeAsync } from './maybe-async'; /** * An interface that represents a function that returns a task of a boolean. * * @export * @interface AsyncPredicate * @template A The value type. */ export interface AsyncPredicate { (a: A): MaybeAsync; } /** * An interface that represents a function that returns a task of a boolean. * * @export * @interface AsyncPredicateWithIndex * @template A The value type. */ export interface AsyncPredicateWithIndex { (i: I, a: A): MaybeAsync; }