import { Semigroup } from '@fp4ts/cats-kernel'; import { Option } from '../option'; import { Either } from '../either'; declare module './algebra' { interface Ior { readonly isLeft: boolean; readonly isRight: boolean; readonly isBoth: boolean; readonly swapped: Ior; readonly left: Option; readonly right: Option; readonly onlyLeft: Option; readonly onlyRight: Option; readonly onlyLeftOrRight: Option>; readonly onlyBoth: Option<[A, B]>; readonly toOption: Option; readonly toEither: Either; readonly pad: [Option, Option]; map(g: (b: B) => D): Ior; leftMap(f: (a: A) => C): Ior; bimap(f: (a: A) => C, g: (b: B) => D): Ior; flatMap(S: Semigroup): (this: Ior, f: (b: B) => Ior) => Ior; combine(this: Ior, SA: Semigroup, SB: Semigroup): (that: Ior) => Ior; merge(this: Ior, S: Semigroup): AA; mergeWith(this: Ior, f: (l: AA, r: AA) => AA): AA; fold(onLeft: (a: A) => C1, onRight: (b: B) => C2, onBoth: (a: A, b: B) => C3): C1 | C2 | C3; } } //# sourceMappingURL=syntax.d.ts.map