/** * Determine if the given item is a promise * @param item Item to check */ export declare const isPromise: (item: T | Promise) => item is Promise; /** * Error raised when promise timeout */ export declare class TimeoutError extends Error { constructor(message?: string); } /** * Apply timeout to a given promise * @param promise Promise to timeout * @param timeout timeout of the given promise (in ms) */ export declare const withTimeout: (promise: Promise, timeout?: number) => Promise; //# sourceMappingURL=helpers.d.ts.map