import { type Result } from "./result.js"; import type { Coroutine, Effect, Operation } from "./types.js"; export declare function trap(operation: () => Operation): Operation; export declare class Trap implements ErrorBoundary { routine: Coroutine; outcome: import("./maybe.js").Maybe>; constructor(routine: Coroutine); raise(error: Error): void; exit(): Effect; } export interface ErrorBoundary { raise(error: Error): void; } export declare const ErrorContext: import("./types.js").Context;