import type { ComposerDraft } from "@opengeni/sdk"; import type { EmbeddedSessionClientLike } from "./client.js"; export type ComposerDraftMapContext = { operation: "read" | "save" | "submit"; workspaceId: string; sessionId: string; }; export type CreateEmbeddedSessionClientOptions = { /** * Explicit host-owned method replacements. Methods inherited from `base` * retain `base` as their receiver; overrides retain this object as theirs. */ overrides?: Partial | undefined; /** Presentation/policy projection for every draft entering the React layer. */ mapComposerDraft?: ((draft: ComposerDraft, context: ComposerDraftMapContext) => ComposerDraft) | undefined; }; /** * Build the exact client required by `@opengeni/react/session` from a full SDK * client or host proxy. The constructor binds every delegated method once, * supports a host-owned atomic composer-submit override, and fails at creation * time instead of waiting for a missing method to be exercised by a hook. */ export declare function createEmbeddedSessionClient(base: EmbeddedSessionClientLike, options?: CreateEmbeddedSessionClientOptions): EmbeddedSessionClientLike;