/** * Compose functions left-to-right. The first function can take multiple arguments, * subsequent functions take a single argument (the result of the previous function). * * @param fns - Functions to compose * @returns Composed function * * @example * const process = pipeFast( * (s: string) => s.trim(), * s => s.toLowerCase(), * s => s.split(' ') * ); * process(' HELLO WORLD '); // ['hello', 'world'] */ export declare function pipeFast(f1: (...args: A) => B): (...args: A) => B; export declare function pipeFast(f1: (...args: A) => B, f2: (b: B) => C): (...args: A) => C; export declare function pipeFast(f1: (...args: A) => B, f2: (b: B) => C, f3: (c: C) => D): (...args: A) => D; export declare function pipeFast(f1: (...args: A) => B, f2: (b: B) => C, f3: (c: C) => D, f4: (d: D) => E): (...args: A) => E; export declare function pipeFast(f1: (...args: A) => B, f2: (b: B) => C, f3: (c: C) => D, f4: (d: D) => E, f5: (e: E) => F): (...args: A) => F; /** * Compose functions right-to-left. The last function can take multiple arguments, * preceding functions take a single argument. * * @param fns - Functions to compose * @returns Composed function * * @example * const process = composeFast( * s => s.split(' '), * s => s.toLowerCase(), * (s: string) => s.trim() * ); * process(' HELLO WORLD '); // ['hello', 'world'] */ export declare function composeFast(f1: (...args: A) => B): (...args: A) => B; export declare function composeFast(f2: (b: B) => C, f1: (...args: A) => B): (...args: A) => C; export declare function composeFast(f3: (c: C) => D, f2: (b: B) => C, f1: (...args: A) => B): (...args: A) => D; export declare function composeFast(f4: (d: D) => E, f3: (c: C) => D, f2: (b: B) => C, f1: (...args: A) => B): (...args: A) => E; export declare function composeFast(f5: (e: E) => F, f4: (d: D) => E, f3: (c: C) => D, f2: (b: B) => C, f1: (...args: A) => B): (...args: A) => F; //# sourceMappingURL=pipe.d.ts.map