import { GenericCallback } from "../../models.mjs"; import { Result, UnwrapValue } from "../models.mjs"; //#region src/result/work/pipe.d.ts type WrapValue = Result>; /** * Attempt to pipe a value through a function * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, pipe: (value: UnwrapValue) => Piped): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh, eighth: (value: UnwrapValue) => Eighth): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh, eighth: (value: UnwrapValue) => Eighth, ninth: (value: UnwrapValue) => Ninth): Promise>; /** * Attempt to pipe a value through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial value * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh, eighth: (value: UnwrapValue) => Eighth, ninth: (value: UnwrapValue) => Ninth, tenth: (value: UnwrapValue) => Tenth): Promise>; /** * Attempt to pipe a result through a series of functions * * _Available as `attemptAsyncPipe` and `attemptPipe.async`_ * * @param initial Initial result * @returns _Piped_ result */ declare function attemptAsyncPipe(initial: GenericCallback | Initial | Promise | Result, first?: (value: UnwrapValue) => unknown, ...seconds: Array<(value: unknown) => unknown>): Promise>; /** * Attempt to pipe a value through a function * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, pipe: (value: UnwrapValue) => Pipe): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh, eighth: (value: UnwrapValue) => Eighth): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh, eighth: (value: UnwrapValue) => Eighth, ninth: (value: UnwrapValue) => Ninth): WrapValue; /** * Attempt to pipe a value through a series of functions * * @param initial Initial value * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first: (value: UnwrapValue) => First, second: (value: UnwrapValue) => Second, third: (value: UnwrapValue) => Third, fourth: (value: UnwrapValue) => Fourth, fifth: (value: UnwrapValue) => Fifth, sixth: (value: UnwrapValue) => Sixth, seventh: (value: UnwrapValue) => Seventh, eighth: (value: UnwrapValue) => Eighth, ninth: (value: UnwrapValue) => Ninth, tenth: (value: UnwrapValue) => Tenth): WrapValue; /** * Attempt to pipe a result through a series of functions * * @param initial Initial result * @returns _Piped_ result */ declare function attemptPipe(initial: GenericCallback | Initial | Result, first?: (value: UnwrapValue) => unknown, ...seconds: Array<(value: unknown) => unknown>): WrapValue; declare namespace attemptPipe { var async: typeof attemptAsyncPipe; } //#endregion export { attemptAsyncPipe, attemptPipe };