import { Operation } from '../operation'; /** * Sleep for the given amount of milliseconds. If no duration is given, then * sleep indefinitely. * * ### Example * * ```typescript * import { main, sleep } from 'effection'; * * main(function*() { * yield sleep(2000); * console.log("Hello lazy world!"); * }); * ``` * * @param duration the number of milliseconds to sleep */ export declare function sleep(duration?: number): Operation; //# sourceMappingURL=sleep.d.ts.map