import { Operation } from '../operation'; /** * Runs the given operation and throws an error if it takes more than the given * number of milliseconds. See also {@link timeout}. * * ### Example * * ```typescript * import { main, spawn, withTimeout } from 'effection'; * * main(function*() { * yield withTimeout(2000, fetch('http://google.com')); * }); * ``` * * @param duration the timeout duration in milliseconds */ export declare function withTimeout(duration: number, operation: Operation): Operation; //# sourceMappingURL=with-timeout.d.ts.map