export declare class PromisePoolError extends Error { /** * Returns the item that caused this error. */ item: T; /** * Returns the original, raw error instance. */ raw: E; /** * Create a new instance for the given `message` and `item`. * * @param error The original error * @param item The item causing the error */ constructor(error: E, item: T); /** * Returns a new promise pool error instance wrapping the `error` and `item`. */ static createFrom(error: E, item: T): PromisePoolError; /** * Returns the error message from the given `error`. */ private messageFrom; }