import { type Kind } from "../../common/kind"; import { type Left } from "./create"; export declare const failKind: import("../../common/kind").KindHandler>; /** * @deprecated use failKind */ export declare const eitherFailKind: import("../../common/kind").KindHandler>; type _Fail = (Left<"fail", void> & Kind); export interface Fail extends _Fail { } /** * @deprecated use Fail */ export type EitherFail = Fail; /** * Returns an Left<"fail", void>: perfect to signal a failure without carrying extra data. * * Signature: `fail()` → returns a value * * ```ts * const input = 3 as number; * * const result = pipe( * input, * whenElse( * N.lessThan(3), * (value) => pipe( * value, * N.add(1), * E.success, * ), * E.fail, * ), * ); * * // type: E.Success | E.Fail * ``` * * @see https://utils.duplojs.dev/en/v1/api/either/fail * * @namespace E * */ export declare function fail(): Fail; export {};