/** * @since 2.2.0 */ import * as BA from './BooleanAlgebra.js'; import * as E from './Eq.js'; import { LazyArg } from './function.js'; import { Monoid } from './Monoid.js'; import * as O from './Ord.js'; import { Refinement } from './Refinement.js'; import { Semigroup } from './Semigroup.js'; import * as S from './Show.js'; /** * @category refinements * @since 2.11.0 */ export declare const isBoolean: Refinement; /** * Less strict version of [`match`](#match). * * The `W` suffix (short for **W**idening) means that the handler return types will be merged. * * @category pattern matching * @since 2.10.0 */ export declare const matchW: (onFalse: LazyArg, onTrue: LazyArg) => (value: boolean) => A | B; /** * Alias of [`matchW`](#matchw). * * @category pattern matching * @since 2.10.0 */ export declare const foldW: (onFalse: LazyArg, onTrue: LazyArg) => (value: boolean) => A | B; /** * Defines the fold over a boolean value. * Takes two thunks `onTrue`, `onFalse` and a `boolean` value. * If `value` is false, `onFalse()` is returned, otherwise `onTrue()`. * * @example * import { some, map } from 'fp-ts/Option' * import { pipe } from 'fp-ts/function' * import { match } from 'fp-ts/boolean' * * assert.deepStrictEqual( * pipe( * some(true), * map(match(() => 'false', () => 'true')) * ), * some('true') * ) * * @category pattern matching * @since 2.10.0 */ export declare const match: (onFalse: LazyArg, onTrue: LazyArg) => (value: boolean) => A; /** * Alias of [`match`](#match). * * @category pattern matching * @since 2.2.0 */ export declare const fold: (onFalse: LazyArg, onTrue: LazyArg) => (value: boolean) => A; /** * @category instances * @since 2.10.0 */ export declare const Eq: E.Eq; /** * @category instances * @since 2.10.0 */ export declare const BooleanAlgebra: BA.BooleanAlgebra; /** * `boolean` semigroup under conjunction. * * @example * import { SemigroupAll } from 'fp-ts/boolean' * * assert.deepStrictEqual(SemigroupAll.concat(true, true), true) * assert.deepStrictEqual(SemigroupAll.concat(true, false), false) * * @category instances * @since 2.10.0 */ export declare const SemigroupAll: Semigroup; /** * `boolean` semigroup under disjunction. * * @example * import { SemigroupAny } from 'fp-ts/boolean' * * assert.deepStrictEqual(SemigroupAny.concat(true, true), true) * assert.deepStrictEqual(SemigroupAny.concat(true, false), true) * assert.deepStrictEqual(SemigroupAny.concat(false, false), false) * * @category instances * @since 2.10.0 */ export declare const SemigroupAny: Semigroup; /** * `boolean` monoid under conjunction. * * The `empty` value is `true`. * * @example * import { MonoidAll } from 'fp-ts/boolean' * * assert.deepStrictEqual(MonoidAll.concat(true, true), true) * assert.deepStrictEqual(MonoidAll.concat(true, false), false) * * @category instances * @since 2.10.0 */ export declare const MonoidAll: Monoid; /** * `boolean` monoid under disjunction. * * The `empty` value is `false`. * * @example * import { MonoidAny } from 'fp-ts/boolean' * * assert.deepStrictEqual(MonoidAny.concat(true, true), true) * assert.deepStrictEqual(MonoidAny.concat(true, false), true) * assert.deepStrictEqual(MonoidAny.concat(false, false), false) * * @category instances * @since 2.10.0 */ export declare const MonoidAny: Monoid; /** * @category instances * @since 2.10.0 */ export declare const Ord: O.Ord; /** * @category instances * @since 2.10.0 */ export declare const Show: S.Show;