import { Arity1 } from '@typed/functions'; import { Either } from '@typed/either'; import { List } from '@typed/list'; import { Maybe } from '@typed/maybe'; /** * Apply the function contained in an Applicative to the values contained * in another Applicative. Works with all data structures supported by `chain` and * `map`. * @name ap(fn: List>, values: List): Array */ export declare const ap: Ap; export declare type Ap = { (fn: List>, list: List): Array; (fn: Maybe>, maybe: Maybe): Maybe; (fn: PromiseLike>, promise: PromiseLike): Promise; (fn: Either>, either: Either): Either; (fn: List>): (list: List) => Array; (fn: Maybe>): (maybe: Maybe) => Maybe; (fn: PromiseLike>): (promise: PromiseLike) => Promise; (fn: Either>): (either: Either) => Either; };