/** * Utility functions to accommodate `fp-ts/Bifunctor`. * * @since 0.14.0 */ import type { Bifunctor, Bifunctor2, Bifunctor2C, Bifunctor3, Bifunctor3C, Bifunctor4 } from "fp-ts/Bifunctor"; import type { Kind2, Kind3, Kind4, URIS2, URIS3, URIS4 } from "fp-ts/HKT"; /** * Apply a function to both elements of a bifunctor. * * @example * import { pipe } from 'fp-ts/function' * import { mapBoth } from 'fp-ts-std/Bifunctor' * import * as Tuple from 'fp-ts/Tuple' * import { multiply } from 'fp-ts-std/Number' * * const xs = pipe([3, 5], mapBoth(Tuple.Bifunctor)(multiply(2))) * * assert.deepStrictEqual(xs, [6, 10]) * * @category 2 Typeclass Methods * @since 0.14.0 */ export declare function mapBoth(F: Bifunctor4): (f: (x: A) => B) => (x: Kind4) => Kind4; export declare function mapBoth(F: Bifunctor3): (f: (x: A) => B) => (x: Kind3) => Kind3; export declare function mapBoth(F: Bifunctor3C): (f: (x: E) => B) => (x: Kind3) => Kind3; export declare function mapBoth(F: Bifunctor2): (f: (x: A) => B) => (x: Kind2) => Kind2; export declare function mapBoth(F: Bifunctor2C): (f: (x: E) => B) => (x: Kind2) => Kind2; export declare function mapBoth(F: Bifunctor): (f: (x: A) => B) => (x: Kind2) => Kind2; //# sourceMappingURL=Bifunctor.d.ts.map