/** * Battery-scoped exception constructors for the isolation battery. * * @remarks * Minted via `createException` from `@nhtio/adk/factories`, matching every other bundled battery's * convention (see e.g. the transformers.js STT adapter's `exceptions.ts`). */ /** * Thrown when `serveIsolated()` cannot duck-detect a supported guest environment — neither * `globalThis.self.postMessage` (Web Worker) nor `globalThis.process?.send` (node child_process) is * present. Fatal: there is no meaningful guest to serve. */ export declare const E_ISOLATION_UNSUPPORTED_ENV: import("../../factories").CreatedException<[ string ]>; /** * Thrown when the codec must escalate a value past the `'raw'` tier (an exotic leaf: function, Error, * or registered custom-encodable) but the optional `@nhtio/encoder` peer is not installed. Printf arg: * the offending argument path. Non-fatal: a caller can catch this and pass the value through their own * BYO codec instead. */ export declare const E_ISOLATION_ENCODER_REQUIRED: import("../../factories").CreatedException<[ string ]>; /** * Thrown when a value cannot be encoded even with the encoder peer available — most commonly a * circular reference that ALSO contains an exotic leaf (a plain circular raw value is fine; see * `codec.ts`), or the encoder itself rejects the value. Wraps the encoder's own * `E_CIRCULAR_REFERENCE`/`E_UNENCODABLE_VALUE` as `cause`. */ export declare const E_ISOLATION_UNENCODABLE: import("../../factories").CreatedException<[ string ]>; /** * Thrown by `IsolatedService` calls made while the guest has not yet signaled `ready` and the * configured `readyTimeoutMs` has elapsed. Printf arg: the elapsed timeout in milliseconds. */ export declare const E_ISOLATION_READY_TIMEOUT: import("../../factories").CreatedException<[ number ]>; /** * Thrown to reject every in-flight call and error every open stream when an `IsolatedService` is * disposed or recycled — the guest connection those calls/streams were bound to no longer exists. */ export declare const E_ISOLATED_TERMINATED: import("../../factories").CreatedException<[ string ]>; /** * Thrown by `IsolatedService` calls made (or in flight) after the guest crashed and * `autoRespawn`/manual `recycle()` has not yet brought it back. Printf arg: the service name. */ export declare const E_ISOLATED_CRASHED: import("../../factories").CreatedException<[ string ]>; /** * Thrown when an isolation battery options bag (spec input, host options, codec options, crash-policy * options) fails eager validation — e.g. an unknown top-level key, or a duplicate name across a spec's * `methods`/`streams`/`events`. Fatal: config bugs fail loud, not at first use. */ export declare const E_INVALID_ISOLATION_OPTIONS: import("../../factories").CreatedException<[ string ]>;