/** * `lazyChainProxy` — turns an async "resolve the real object" function into * a synchronously-importable stand-in that supports the SAME call shape as * the real thing, including nested member access * (`editor.document.query(...)`), by recording the property-access PATH and only * resolving + walking it down at the point of an actual function CALL. * * This is what makes `index.ts`'s top-level `export const editor = ...` work * as a plain value a script can `import { editor } from '@volter/live'` and * call immediately — each call transparently awaits the memoized `connect()` * first. * * Limitation (by design, documented on `index.ts`'s exports too): only * FUNCTION-shaped access resolves through this proxy — `editor.document.query(s)` * works, but reading a plain data property would return another inert proxy, * not the real value, since there is no function CALL to trigger resolution. * Every documented `editor` member is a method, so this never bites the * documented surface. */ /** * `resolveRoot` is called (and its result awaited) on every terminal * function call reached through the returned proxy — callers typically wire * it to a memoized `connect()` (see `index.ts`), so repeated calls across * many proxy invocations still resolve only once. * * `hint` names where a member the root does NOT have lives instead * (`member-hints.ts`): consulted for the FIRST step of the path only, because * that is the member the caller named on the façade — `editor.camera.set(…)` * fails at `camera`, not at `set`. */ export declare function lazyChainProxy(resolveRoot: () => Promise, path?: PropertyKey[], hint?: (member: PropertyKey) => string | undefined): T;