�PNG  IHDR��;���IDATx��ܻn�0���K�� �)(�pA��� ���7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!� �x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t ��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ ��Rn��~G���R���C����� �wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L/��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R���IEND�B` declare namespace pPipe { type UnaryFunction = ( value: ValueType ) => ReturnType | PromiseLike; type Pipeline = ( value?: ValueType ) => Promise; } /** Compose promise-returning & async functions into a reusable pipeline. @param ...input - Iterated over sequentially when returned `function` is called. @returns The `input` functions are applied from left to right. @example ``` import pPipe = require('p-pipe'); const addUnicorn = async string => `${string} Unicorn`; const addRainbow = async string => `${string} Rainbow`; const pipeline = pPipe(addUnicorn, addRainbow); (async () => { console.log(await pipeline('❤️')); //=> '❤️ Unicorn Rainbow' })(); ``` */ declare function pPipe( f1: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ResultValue6, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction, f7: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ResultValue6, ResultValue7, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction, f7: pPipe.UnaryFunction, f8: pPipe.UnaryFunction ): pPipe.Pipeline; declare function pPipe< ValueType, ResultValue1, ResultValue2, ResultValue3, ResultValue4, ResultValue5, ResultValue6, ResultValue7, ResultValue8, ReturnType >( f1: pPipe.UnaryFunction, f2: pPipe.UnaryFunction, f3: pPipe.UnaryFunction, f4: pPipe.UnaryFunction, f5: pPipe.UnaryFunction, f6: pPipe.UnaryFunction, f7: pPipe.UnaryFunction, f8: pPipe.UnaryFunction, f9: pPipe.UnaryFunction ): pPipe.Pipeline; // Fallbacks if more than 9 functions are passed as input (not type-safe). declare function pPipe( ...functions: (pPipe.UnaryFunction)[] ): pPipe.Pipeline; export = pPipe;