/** * HostFacade factory. * * Creates a HostFacade that bridges host and product via a Transport. * Each handler method translates between the versioned wire format * (v1 tagged enums with Ok/Err results) and plain TypeScript types. * * Ported from triangle-js-sdks host-container/createHostFacade.ts, * simplified to use plain Result objects instead of neverthrow. */ import type { Messaging } from "../shared/transport/provider.js"; import type { HostFacade } from "./types.js"; export type CreateHostFacadeOptions = { /** How the host communicates with the product. */ messaging: Messaging; /** * Whether to allow the product to upgrade the codec after handshake. * When `true` (the default), the host registers a codec upgrade handler * that negotiates structured clone as the preferred format. */ allowCodecUpgrade?: boolean; }; export declare function createHostFacade(options: CreateHostFacadeOptions): HostFacade; //# sourceMappingURL=protocolHandler.d.ts.map