@oscarpalmer/atoms 0.147.0 → 0.149.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,134 @@
1
+ import type { GenericCallback } from '../../models';
2
+ import type { Result, UnwrapValue } from '../models';
3
+ /**
4
+ * A synchronous Flow, a function that attempts to pipe values through a series of functions
5
+ */
6
+ export type AttemptFlow<Callback extends GenericCallback, Value> = (...args: Parameters<Callback>) => Result<UnwrapValue<Value>>;
7
+ /**
8
+ * An asynchronous Flow, a function that attempts to pipe values through a series of functions
9
+ */
10
+ export type AttemptFlowPromise<Callback extends GenericCallback, Value> = (...args: Parameters<Callback>) => Promise<Result<UnwrapValue<Value>>>;
11
+ /**
12
+ * Create an asynchronous Flow, a function that attempts to pipe a value through a series of functions
13
+ * @returns Flow function
14
+ */
15
+ declare function attemptAsyncFlow<Fn extends GenericCallback>(fn: Fn): AttemptFlowPromise<Fn, ReturnType<Fn>>;
16
+ /**
17
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
18
+ * @returns Flow function
19
+ */
20
+ declare function attemptAsyncFlow<First extends GenericCallback, Second>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second): AttemptFlowPromise<First, Second>;
21
+ /**
22
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
23
+ * @returns Flow function
24
+ */
25
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third): AttemptFlowPromise<First, Third>;
26
+ /**
27
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
28
+ * @returns Flow function
29
+ */
30
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth): AttemptFlowPromise<First, Fourth>;
31
+ /**
32
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
33
+ * @returns Flow function
34
+ */
35
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth, Fifth>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth, fifth: (value: Awaited<UnwrapValue<Fourth>>) => Fifth): AttemptFlowPromise<First, Fifth>;
36
+ /**
37
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
38
+ * @returns Flow function
39
+ */
40
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth, fifth: (value: Awaited<UnwrapValue<Fourth>>) => Fifth, sixth: (value: Awaited<UnwrapValue<Fifth>>) => Sixth): AttemptFlowPromise<First, Sixth>;
41
+ /**
42
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
43
+ * @returns Flow function
44
+ */
45
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth, fifth: (value: Awaited<UnwrapValue<Fourth>>) => Fifth, sixth: (value: Awaited<UnwrapValue<Fifth>>) => Sixth, seventh: (value: Awaited<UnwrapValue<Sixth>>) => Seventh): AttemptFlowPromise<First, Seventh>;
46
+ /**
47
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
48
+ * @returns Flow function
49
+ */
50
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth, fifth: (value: Awaited<UnwrapValue<Fourth>>) => Fifth, sixth: (value: Awaited<UnwrapValue<Fifth>>) => Sixth, seventh: (value: Awaited<UnwrapValue<Sixth>>) => Seventh, eighth: (value: Awaited<UnwrapValue<Seventh>>) => Eighth): AttemptFlowPromise<First, Eighth>;
51
+ /**
52
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
53
+ * @returns Flow function
54
+ */
55
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth, fifth: (value: Awaited<UnwrapValue<Fourth>>) => Fifth, sixth: (value: Awaited<UnwrapValue<Fifth>>) => Sixth, seventh: (value: Awaited<UnwrapValue<Sixth>>) => Seventh, eighth: (value: Awaited<UnwrapValue<Seventh>>) => Eighth, ninth: (value: Awaited<UnwrapValue<Eighth>>) => Ninth): AttemptFlowPromise<First, Ninth>;
56
+ /**
57
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
58
+ * @returns Flow function
59
+ */
60
+ declare function attemptAsyncFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth>(first: First, second: (value: Awaited<UnwrapValue<ReturnType<First>>>) => Second, third: (value: Awaited<UnwrapValue<Second>>) => Third, fourth: (value: Awaited<UnwrapValue<Third>>) => Fourth, fifth: (value: Awaited<UnwrapValue<Fourth>>) => Fifth, sixth: (value: Awaited<UnwrapValue<Fifth>>) => Sixth, seventh: (value: Awaited<UnwrapValue<Sixth>>) => Seventh, eighth: (value: Awaited<UnwrapValue<Seventh>>) => Eighth, ninth: (value: Awaited<UnwrapValue<Eighth>>) => Ninth, tenth: (value: Awaited<UnwrapValue<Ninth>>) => Tenth): AttemptFlowPromise<First, Tenth>;
61
+ /**
62
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
63
+ * @returns Flow function
64
+ */
65
+ declare function attemptAsyncFlow<Fn extends GenericCallback>(fn: Fn, ...fns: Array<(value: Awaited<UnwrapValue<ReturnType<Fn>>>) => unknown>): AttemptFlowPromise<Fn, ReturnType<Fn>>;
66
+ /**
67
+ * Create an asynchronous Flow, a function that pipes values through a series of functions
68
+ * @returns Flow function
69
+ */
70
+ declare function attemptAsyncFlow(...fns: GenericCallback[]): (...args: unknown[]) => Promise<Result<unknown>>;
71
+ /**
72
+ * Create a Flow, a function that attempts to pipe values through a function
73
+ * @returns Flow function
74
+ */
75
+ export declare function attemptFlow<Fn extends GenericCallback>(fn: Fn): AttemptFlow<Fn, ReturnType<Fn>>;
76
+ /**
77
+ * Create a Flow, a function that attempts to pipe values through a series of functions
78
+ * @returns Flow function
79
+ */
80
+ export declare function attemptFlow<First extends GenericCallback, Second>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second): AttemptFlow<First, Second>;
81
+ /**
82
+ * Create a Flow, a function that attempts to pipe values through a series of functions
83
+ * @returns Flow function
84
+ */
85
+ export declare function attemptFlow<First extends GenericCallback, Second, Third>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third): AttemptFlow<First, Third>;
86
+ /**
87
+ * Create a Flow, a function that attempts to pipe values through a series of functions
88
+ * @returns Flow function
89
+ */
90
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth): AttemptFlow<First, Fourth>;
91
+ /**
92
+ * Create a Flow, a function that attempts to pipe values through a series of functions
93
+ * @returns Flow function
94
+ */
95
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth, Fifth>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth): AttemptFlow<First, Fifth>;
96
+ /**
97
+ * Create a Flow, a function that attempts to pipe values through a series of functions
98
+ * @returns Flow function
99
+ */
100
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth): AttemptFlow<First, Sixth>;
101
+ /**
102
+ * Create a Flow, a function that attempts to pipe values through a series of functions
103
+ * @returns Flow function
104
+ */
105
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh): AttemptFlow<First, Seventh>;
106
+ /**
107
+ * Create a Flow, a function that attempts to pipe values through a series of functions
108
+ * @returns Flow function
109
+ */
110
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth): AttemptFlow<First, Eighth>;
111
+ /**
112
+ * Create a Flow, a function that attempts to pipe values through a series of functions
113
+ * @returns Flow function
114
+ */
115
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth): AttemptFlow<First, Ninth>;
116
+ /**
117
+ * Create a Flow, a function that attempts to pipe values through a series of functions
118
+ * @returns Flow function
119
+ */
120
+ export declare function attemptFlow<First extends GenericCallback, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth>(first: First, second: (value: UnwrapValue<ReturnType<First>>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth, tenth: (value: UnwrapValue<Ninth>) => Tenth): AttemptFlow<First, Tenth>;
121
+ /**
122
+ * Create a Flow, a function that attempts to pipe values through a series of functions
123
+ * @returns Flow function
124
+ */
125
+ export declare function attemptFlow<First extends GenericCallback>(first: First, ...fns: Array<(value: UnwrapValue<ReturnType<First>>) => unknown>): AttemptFlow<First, ReturnType<First>>;
126
+ /**
127
+ * Create a Flow, a function that attempts to pipe values through a series of functions
128
+ * @returns Flow function
129
+ */
130
+ export declare function attemptFlow(...fns: GenericCallback[]): (...args: unknown[]) => Result<unknown>;
131
+ export declare namespace attemptFlow {
132
+ var async: typeof attemptAsyncFlow;
133
+ }
134
+ export {};
@@ -0,0 +1,271 @@
1
+ import type { GenericCallback } from '../../models';
2
+ import type { Result, UnwrapValue } from '../models';
3
+ type WrapValue<Value> = Result<UnwrapValue<Value>>;
4
+ /**
5
+ * Attempt to pipe a result through a function
6
+ * @param initial Initial result
7
+ * @returns Piped result
8
+ */
9
+ declare function attemptAsyncPipe<Initial, Piped>(initial: Result<Initial>, pipe: (value: UnwrapValue<Initial>) => Piped): Promise<WrapValue<Piped>>;
10
+ /**
11
+ * Attempt to pipe a result through a series of functions
12
+ * @param initial Initial result
13
+ * @returns Piped result
14
+ */
15
+ declare function attemptAsyncPipe<Initial, First, Second>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second): Promise<WrapValue<Second>>;
16
+ /**
17
+ * Attempt to pipe a result through a series of functions
18
+ * @param initial Initial result
19
+ * @returns Piped result
20
+ */
21
+ declare function attemptAsyncPipe<Initial, First, Second, Third>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third): Promise<WrapValue<Third>>;
22
+ /**
23
+ * Attempt to pipe a result through a series of functions
24
+ * @param initial Initial result
25
+ * @returns Piped result
26
+ */
27
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth): Promise<WrapValue<Fourth>>;
28
+ /**
29
+ * Attempt to pipe a result through a series of functions
30
+ * @param initial Initial result
31
+ * @returns Piped result
32
+ */
33
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth): Promise<WrapValue<Fifth>>;
34
+ /**
35
+ * Attempt to pipe a result through a series of functions
36
+ * @param initial Initial result
37
+ * @returns Piped result
38
+ */
39
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth): Promise<WrapValue<Sixth>>;
40
+ /**
41
+ * Attempt to pipe a result through a series of functions
42
+ * @param initial Initial result
43
+ * @returns Piped result
44
+ */
45
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh): Promise<WrapValue<Seventh>>;
46
+ /**
47
+ * Attempt to pipe a result through a series of functions
48
+ * @param initial Initial result
49
+ * @returns Piped result
50
+ */
51
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth): Promise<WrapValue<Eighth>>;
52
+ /**
53
+ * Attempt to pipe a result through a series of functions
54
+ * @param initial Initial result
55
+ * @returns Piped result
56
+ */
57
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth): Promise<WrapValue<Ninth>>;
58
+ /**
59
+ * Attempt to pipe a result through a series of functions
60
+ * @param initial Initial result
61
+ * @returns Piped result
62
+ */
63
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth, tenth: (value: UnwrapValue<Ninth>) => Tenth): Promise<WrapValue<Tenth>>;
64
+ /**
65
+ * Attempt to pipe a value through a function
66
+ * @param initial Initial value
67
+ * @returns Piped result
68
+ */
69
+ declare function attemptAsyncPipe<Initial, Piped>(initial: GenericCallback | Initial, pipe: (value: UnwrapValue<Initial>) => Piped): Promise<WrapValue<Piped>>;
70
+ /**
71
+ * Attempt to pipe a value through a series of functions
72
+ * @param initial Initial value
73
+ * @returns Piped result
74
+ */
75
+ declare function attemptAsyncPipe<Initial, First, Second>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second): Promise<WrapValue<Second>>;
76
+ /**
77
+ * Attempt to pipe a value through a series of functions
78
+ * @param initial Initial value
79
+ * @returns Piped result
80
+ */
81
+ declare function attemptAsyncPipe<Initial, First, Second, Third>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third): Promise<WrapValue<Third>>;
82
+ /**
83
+ * Attempt to pipe a value through a series of functions
84
+ * @param initial Initial value
85
+ * @returns Piped result
86
+ */
87
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth): Promise<WrapValue<Fourth>>;
88
+ /**
89
+ * Attempt to pipe a value through a series of functions
90
+ * @param initial Initial value
91
+ * @returns Piped result
92
+ */
93
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth): Promise<WrapValue<Fifth>>;
94
+ /**
95
+ * Attempt to pipe a value through a series of functions
96
+ * @param initial Initial value
97
+ * @returns Piped result
98
+ */
99
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth): Promise<WrapValue<Sixth>>;
100
+ /**
101
+ * Attempt to pipe a value through a series of functions
102
+ * @param initial Initial value
103
+ * @returns Piped result
104
+ */
105
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh): Promise<WrapValue<Seventh>>;
106
+ /**
107
+ * Attempt to pipe a value through a series of functions
108
+ * @param initial Initial value
109
+ * @returns Piped result
110
+ */
111
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth): Promise<WrapValue<Eighth>>;
112
+ /**
113
+ * Attempt to pipe a value through a series of functions
114
+ * @param initial Initial value
115
+ * @returns Piped result
116
+ */
117
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth): Promise<WrapValue<Ninth>>;
118
+ /**
119
+ * Attempt to pipe a value through a series of functions
120
+ * @param initial Initial value
121
+ * @returns Piped result
122
+ */
123
+ declare function attemptAsyncPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth, tenth: (value: UnwrapValue<Ninth>) => Tenth): Promise<WrapValue<Tenth>>;
124
+ /**
125
+ * Attempt to pipe a result through a series of functions
126
+ * @param initial Initial result
127
+ * @returns Piped result
128
+ */
129
+ declare function attemptAsyncPipe<Initial>(initial: Result<Initial>, first?: (value: UnwrapValue<Initial>) => unknown, ...seconds: Array<(value: unknown) => unknown>): Promise<WrapValue<Initial>>;
130
+ /**
131
+ * Attempt to pipe an item through a series of functions
132
+ * @param item Initial value
133
+ * @returns Piped result
134
+ */
135
+ declare function attemptAsyncPipe<Initial>(initial: GenericCallback | Initial, first?: (value: UnwrapValue<Initial>) => unknown, ...seconds: Array<(value: unknown) => unknown>): Promise<WrapValue<Initial>>;
136
+ /**
137
+ * Attempt to pipe a result through a function
138
+ * @param initial Initial result
139
+ * @returns Piped result
140
+ */
141
+ export declare function attemptPipe<Initial, Piped>(initial: Result<Initial>, pipe: (value: UnwrapValue<Initial>) => Piped): WrapValue<Piped>;
142
+ /**
143
+ * Attempt to pipe a result through a series of functions
144
+ * @param initial Initial result
145
+ * @returns Piped result
146
+ */
147
+ export declare function attemptPipe<Initial, First, Second>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second): WrapValue<Second>;
148
+ /**
149
+ * Attempt to pipe a result through a series of functions
150
+ * @param initial Initial result
151
+ * @returns Piped result
152
+ */
153
+ export declare function attemptPipe<Initial, First, Second, Third>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third): WrapValue<Third>;
154
+ /**
155
+ * Attempt to pipe a result through a series of functions
156
+ * @param initial Initial result
157
+ * @returns Piped result
158
+ */
159
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth): WrapValue<Fourth>;
160
+ /**
161
+ * Attempt to pipe a result through a series of functions
162
+ * @param initial Initial result
163
+ * @returns Piped result
164
+ */
165
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth): WrapValue<Fifth>;
166
+ /**
167
+ * Attempt to pipe a result through a series of functions
168
+ * @param initial Initial result
169
+ * @returns Piped result
170
+ */
171
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth): WrapValue<Sixth>;
172
+ /**
173
+ * Attempt to pipe a result through a series of functions
174
+ * @param initial Initial result
175
+ * @returns Piped result
176
+ */
177
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh): WrapValue<Seventh>;
178
+ /**
179
+ * Attempt to pipe a result through a series of functions
180
+ * @param initial Initial result
181
+ * @returns Piped result
182
+ */
183
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth): WrapValue<Eighth>;
184
+ /**
185
+ * Attempt to pipe a result through a series of functions
186
+ * @param initial Initial result
187
+ * @returns Piped result
188
+ */
189
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth): WrapValue<Ninth>;
190
+ /**
191
+ * Attempt to pipe a result through a series of functions
192
+ * @param initial Initial result
193
+ * @returns Piped result
194
+ */
195
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth>(initial: Result<Initial>, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth, tenth: (value: UnwrapValue<Ninth>) => Tenth): WrapValue<Tenth>;
196
+ /**
197
+ * Attempt to pipe a value through a function
198
+ * @param initial Initial value
199
+ * @returns Piped result
200
+ */
201
+ export declare function attemptPipe<Initial, Pipe>(initial: GenericCallback | Initial, pipe: (value: UnwrapValue<Initial>) => Pipe): WrapValue<Pipe>;
202
+ /**
203
+ * Attempt to pipe a value through a series of functions
204
+ * @param initial Initial value
205
+ * @returns Piped result
206
+ */
207
+ export declare function attemptPipe<Initial, First, Second>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second): WrapValue<Second>;
208
+ /**
209
+ * Attempt to pipe a value through a series of functions
210
+ * @param initial Initial value
211
+ * @returns Piped result
212
+ */
213
+ export declare function attemptPipe<Initial, First, Second, Third>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third): WrapValue<Third>;
214
+ /**
215
+ * Attempt to pipe a value through a series of functions
216
+ * @param initial Initial value
217
+ * @returns Piped result
218
+ */
219
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth): WrapValue<Fourth>;
220
+ /**
221
+ * Attempt to pipe a value through a series of functions
222
+ * @param initial Initial value
223
+ * @returns Piped result
224
+ */
225
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth): WrapValue<Fifth>;
226
+ /**
227
+ * Attempt to pipe a value through a series of functions
228
+ * @param initial Initial value
229
+ * @returns Piped result
230
+ */
231
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth): WrapValue<Sixth>;
232
+ /**
233
+ * Attempt to pipe a value through a series of functions
234
+ * @param initial Initial value
235
+ * @returns Piped result
236
+ */
237
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh): WrapValue<Seventh>;
238
+ /**
239
+ * Attempt to pipe a value through a series of functions
240
+ * @param initial Initial value
241
+ * @returns Piped result
242
+ */
243
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth): WrapValue<Eighth>;
244
+ /**
245
+ * Attempt to pipe a value through a series of functions
246
+ * @param initial Initial value
247
+ * @returns Piped result
248
+ */
249
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth): WrapValue<Ninth>;
250
+ /**
251
+ * Attempt to pipe a value through a series of functions
252
+ * @param initial Initial value
253
+ * @returns Piped result
254
+ */
255
+ export declare function attemptPipe<Initial, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth>(initial: GenericCallback | Initial, first: (value: UnwrapValue<Initial>) => First, second: (value: UnwrapValue<First>) => Second, third: (value: UnwrapValue<Second>) => Third, fourth: (value: UnwrapValue<Third>) => Fourth, fifth: (value: UnwrapValue<Fourth>) => Fifth, sixth: (value: UnwrapValue<Fifth>) => Sixth, seventh: (value: UnwrapValue<Sixth>) => Seventh, eighth: (value: UnwrapValue<Seventh>) => Eighth, ninth: (value: UnwrapValue<Eighth>) => Ninth, tenth: (value: UnwrapValue<Ninth>) => Tenth): WrapValue<Tenth>;
256
+ /**
257
+ * Attempt to pipe a result through a series of functions
258
+ * @param initial Initial result
259
+ * @returns Piped result
260
+ */
261
+ export declare function attemptPipe<Initial>(initial: Result<Initial>, first?: (value: UnwrapValue<Initial>) => unknown, ...seconds: Array<(value: unknown) => unknown>): WrapValue<Initial>;
262
+ /**
263
+ * Attempt to pipe an item through a series of functions
264
+ * @param item Initial value
265
+ * @returns Piped result
266
+ */
267
+ export declare function attemptPipe<Initial>(initial: GenericCallback | Initial, first?: (value: UnwrapValue<Initial>) => unknown, ...seconds: Array<(value: unknown) => unknown>): WrapValue<Initial>;
268
+ export declare namespace attemptPipe {
269
+ var async: typeof attemptAsyncPipe;
270
+ }
271
+ export {};