import { type Right } from "./create"; import { type Left } from "../left"; import { type Success } from "./success"; import { type Unwrap } from "../../common"; type Either = Right | Left; type RightPipeFunction = (input: GenericInput extends Either ? Unwrap> : GenericInput) => GenericOutput; type RightPipeResult = (Extract | Exclude, Left>); /** * Chains synchronous transformations on an Either as long as it remains Right. The pipeline stops as soon as a Left is returned. * * Signature: `rightPipe(input, pipe1, pipe2)` → returns a value * * The input value is not mutated. * * ```ts * import { E } from "../.."; * * const input: ( * | E.Fail * | E.NullableEmpty * | E.Right<"right", 1> * ) = E.right("right", 1); * * const result = E.rightPipe( * input, * (value) => { * // type: 1 | 2 * return value; * }, * ); * ``` * * @remarks * - Stops at the first Left and forwards it as-is. * * @see https://utils.duplojs.dev/en/v1/api/either/rightPipe * * @namespace E * */ export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction, pipe10: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction, pipe10: RightPipeFunction, pipe11: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction, pipe10: RightPipeFunction, pipe11: RightPipeFunction, pipe12: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction, pipe10: RightPipeFunction, pipe11: RightPipeFunction, pipe12: RightPipeFunction, pipe13: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction, pipe10: RightPipeFunction, pipe11: RightPipeFunction, pipe12: RightPipeFunction, pipe13: RightPipeFunction, pipe14: RightPipeFunction): Extract, any>; export declare function rightPipe(input: GenericInput, pipe1: RightPipeFunction, pipe2: RightPipeFunction, pipe3: RightPipeFunction, pipe4: RightPipeFunction, pipe5: RightPipeFunction, pipe6: RightPipeFunction, pipe7: RightPipeFunction, pipe8: RightPipeFunction, pipe9: RightPipeFunction, pipe10: RightPipeFunction, pipe11: RightPipeFunction, pipe12: RightPipeFunction, pipe13: RightPipeFunction, pipe14: RightPipeFunction, pipe15: RightPipeFunction): Extract, any>; export {};