import * as effect_Cause from 'effect/Cause'; import * as effect_Types from 'effect/Types'; import { Effect } from 'effect'; import { doc } from './url.js'; import './types-R6f5p55r.js'; import 'zod'; type BrowserRuntimeGlobal = typeof globalThis & { OkraRuntime?: { doc: typeof doc; }; }; type BrowserRuntimeOperation = 'install'; declare const BrowserRuntimeError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & { readonly _tag: "BrowserRuntimeError"; } & Readonly; /** * Safe browser-runtime failure: the payload carries an operation label only — * never the global object's contents or the host's exception message. The * original cause is kept in a module-level WeakMap and restored by * `browserRuntimeCause` / `restoreBrowserRuntimeError`, so a host that throws * on the global assignment (frozen realm, hostile getter/setter) rejects with * the exact value the plain assignment would have thrown. */ declare class BrowserRuntimeError extends BrowserRuntimeError_base<{ readonly operation: BrowserRuntimeOperation; readonly message: string; }> { } declare function browserRuntimeCause(error: BrowserRuntimeError): unknown; /** Restore the original cause so callers observe the legacy thrown value. */ declare function restoreBrowserRuntimeError(program: Effect.Effect): Effect.Effect; /** * Install the `doc` URL builder onto `OkraRuntime` on the given global. This * module's entire purpose is that import-time side effect, so the assignment * itself is the native program; the `*Effect` export is what the module runs. */ declare const installOkraBrowserRuntimeEffect: (target: BrowserRuntimeGlobal) => Effect.Effect; declare const _default: { doc: typeof doc; }; export { BrowserRuntimeError, type BrowserRuntimeOperation, browserRuntimeCause, _default as default, doc, installOkraBrowserRuntimeEffect, restoreBrowserRuntimeError };