import type { GuestMetadata } from "@adobe/uix-core"; import type { SharedContext, AppConnection } from "./guest"; import { Guest } from "./guest"; /** * A Guest to be used in the "main" or primary frame of an extension, the frame * the Host loads first. * * @remarks This is the Guest object returned from {@link register}. It can * expose internal methods to the Host via the {@link GuestServer.register} * method. * * * @public */ export declare class GuestServer extends Guest { private localMethods; metadata: GuestMetadata; protected getLocalMethods(): { apis: App["outgoing"]; metadata: GuestMetadata; emit: (type: "contextchange" | "beforeconnect" | "connected" | "error", detail: ({ context: Record; } & Record & { guest: Guest; }) | (Record & { guest: Guest; }) | ({ error: Error; } & Record & { guest: Guest; })) => void; }; /** * {@inheritDoc BaseGuest.sharedContext} */ sharedContext: SharedContext; /** * {@inheritdoc BaseGuest.host} */ host: Guest["host"]; /** * Pass an interface of methods which Host may call as callbacks. * * @remarks It is preferable to use {@link register} to obtain a guest object * and register local methods in one step. The returned guest object will be * pre-registered and connected. * @public */ register(implementedMethods: App["outgoing"], metadata: GuestMetadata): Promise; } //# sourceMappingURL=guest-server.d.ts.map