import type { Operation } from "./types.js"; /** * Sleep for the given amount of milliseconds. * * @example * ```typescript * import { main, sleep } from 'effection'; * * await main(function*() { * yield* sleep(2000); * console.log("Hello lazy world!"); * }); * ``` * * @param duration - the number of milliseconds to sleep * @since 3.0 */ export declare function sleep(duration: number): Operation;