import { type RemoteChannel as LegacyRemoteChannel } from '@remote-ui/core'; import { type RemoteConnection } from '@remote-dom/core'; export interface LegacyRemoteChannelElementMap { [key: string]: string; } export interface LegacyRemoteChannelOptions { /** * A map of element types to their corresponding remote-ui element types. */ elements?: LegacyRemoteChannelElementMap; slotProps?: { /** * The element type to use for slots. */ wrapper?: string; }; } /** * Adapts a Remote DOM `RemoteConnection` object into a `remote-ui` `RemoteChannel`. * This allows you to use a Remote DOM receiver class on the host, even if the remote * environment is using `remote-ui`. * * @example * ```tsx * import {DOMRemoteReceiver} from '@remote-dom/core/receivers'; * import {adaptToLegacyRemoteChannel} from '@remote-dom/compat'; * * const receiver = new DOMRemoteReceiver(); * const channel = adaptToLegacyRemoteChannel(receiver.connection); * * // Do something with the channel * sendChannelToRemoteEnvironment(channel); * ``` */ export declare function adaptToLegacyRemoteChannel(connection: RemoteConnection, options?: LegacyRemoteChannelOptions): LegacyRemoteChannel; //# sourceMappingURL=host.d.ts.map