import { type Kind } from "../../common/kind"; import { type WrappedValue } from "../../common/wrapValue"; import { informationKind } from "../kind"; export declare const leftKind: import("../../common/kind").KindHandler>; /** * @deprecated use leftKind */ export declare const eitherLeftKind: import("../../common/kind").KindHandler>; type _Left = (Kind & Kind & WrappedValue); export interface Left extends _Left { } /** * @deprecated use Left */ export type EitherLeft = Left; /** * Builds an Left by associating mandatory business information (literal string) with a value representing the error. This is the fundamental brick to signal a contextualized failure. * * Signature: `left(information, value)` → returns a value * * The input value is not mutated. * * ```ts * const input = 0 as number; * * const result = pipe( * input, * P.when( * N.greaterThan(0), * (value) => E.right("number.positive", value), * ), * P.otherwise( * (value) => E.left("number.notPositive", value), * ), * ); * * // type: E.Right<"number.positive", number> | E.Left<"number.notPositive", number> * ``` * * @see https://utils.duplojs.dev/en/v1/api/either/left * * @namespace E * */ export declare function left(information: GenericInformation, value?: GenericValue): Left; export {};