/** * Wraps a promise with an optional timeout * If no timeout is provided, returns the original promise unchanged */ export declare function withTimeout(promise: Promise, timeoutMs?: number): Promise; /** * Wraps an async generator with optional timeout per iteration * If no timeout is provided, returns the original generator unchanged */ export declare function withTimeoutStream(generator: AsyncGenerator, timeoutMs?: number): AsyncGenerator; //# sourceMappingURL=withTimeout.d.ts.map