/** * Lifecycle re-exports — SDK-shaped forwarders so the app imports `init` / * `initNg` from `@ng-eventually/client` rather than from `@ng-org/*`. They * delegate to the REAL functions injected at `configure()`. Passthrough today; * a hook point later (e.g. opening the shared wallet on `init`). */ import { getConfig } from "./polyfill"; /** Forwards to the real `@ng-org/web` `init`. */ export function init(...args: any[]): any { const f = getConfig().init; if (!f) throw new Error("[ng-eventually] init() not injected — pass it to configure()"); return f(...args); } /** Forwards to the real `@ng-org/orm` `initNg` (ORM signals). */ export function initNg(...args: any[]): any { const f = getConfig().initNg; if (!f) throw new Error("[ng-eventually] initNg() not injected — pass it to configure()"); return f(...args); }