�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 class TimeoutErrorClass extends Error { readonly name: 'TimeoutError'; constructor(message?: string); } declare namespace pTimeout { type TimeoutError = TimeoutErrorClass; } declare const pTimeout: { /** Timeout a promise after a specified amount of time. If you pass in a cancelable promise, specifically a promise with a `.cancel()` method, that method will be called when the `pTimeout` promise times out. @param input - Promise to decorate. @param milliseconds - Milliseconds before timing out. @param message - Specify a custom error message or error. If you do a custom error, it's recommended to sub-class `pTimeout.TimeoutError`. Default: `'Promise timed out after 50 milliseconds'`. @returns A decorated `input` that times out after `milliseconds` time. @example ``` import delay = require('delay'); import pTimeout = require('p-timeout'); const delayedPromise = delay(200); pTimeout(delayedPromise, 50).then(() => 'foo'); //=> [TimeoutError: Promise timed out after 50 milliseconds] ``` */ ( input: PromiseLike, milliseconds: number, message?: string | Error ): Promise; /** Timeout a promise after a specified amount of time. If you pass in a cancelable promise, specifically a promise with a `.cancel()` method, that method will be called when the `pTimeout` promise times out. @param input - Promise to decorate. @param milliseconds - Milliseconds before timing out. Passing `Infinity` will cause it to never time out. @param fallback - Do something other than rejecting with an error on timeout. You could for example retry. @returns A decorated `input` that times out after `milliseconds` time. @example ``` import delay = require('delay'); import pTimeout = require('p-timeout'); const delayedPromise = () => delay(200); pTimeout(delayedPromise(), 50, () => { return pTimeout(delayedPromise(), 300); }); ``` */ ( input: PromiseLike, milliseconds: number, fallback: () => ReturnType | Promise ): Promise; TimeoutError: typeof TimeoutErrorClass; // TODO: Remove this for the next major release default: typeof pTimeout; }; export = pTimeout;