import type { Operation } from "./types.js"; /** * Indefinitely pause execution of the current operation. * * A suspended operation will remain paused until its enclosing scope * is destroyed, at which point it proceeds as though return had been * called from the point of suspension. * * @example * ```js * import { main, suspend } from "effection"; * * await main(function* (resolve) { * try { * console.log('suspending'); * yield* suspend(); * } finally { * console.log('done!'); * } * }); * ``` * * @returns an operation that suspends the current operation * @since 3.0 */ export declare function suspend(): Operation;