/** * This file contains definition for the VSC <-> Avatar platform comms, this is * not needed to be documented */ import { AssetReference } from "./virtual-styling"; /** * @hidden */ export type IncommingApiMessages = { shop_domain?: string; direction: "incoming"; } & ({ type: "version"; } | { type: "subscripe_avatars"; } | { type: "connect_shop"; }); /** * @hidden */ export declare function isIncommingMessage(message: any): message is IncommingApiMessages; /** * @hidden */ export type OutgoingApiMessages = { direction: "outgoing"; } & ({ type: "version"; version: string; } | { type: "avatars"; avatars: Array; } | { type: "auth_required"; uri: string; } | { type: "auth_done"; actions: { new_avatar: string; edit_avatar: string; }; } | { type: "rr_api_ready"; } | { type: "state"; state: "shop_allowed" | "shop_disallowed"; logged_in: boolean; } | { type: "logout_success"; } | { type: "login_success"; token: string; }); export type IncommingEvent = MessageEvent;