import { AmazonConnectProvider, ConnectLogger } from "@amazon-connect/core"; import { AppConfig, AppManagerData, AppParameters, AppScope, LaunchSource } from "@amazon-connect/workspace-types"; import { AppManagerClient } from "../../app-manager-client"; import { ComponentState, CurrentState } from "../../component-state"; import { Host, HostStateManager } from "../../host"; import { AppStartedResult, AppStoppedResult, StateChangeResult } from "../../types"; import { AppDestroyedHandler, AppDestroyingHandler, AppErrorHandler, AppFocusedHandler, AppProvisionedHandler, AppRestartingHandler, AppRunningHandler, AppStateChangedHandler, AppStoppedHandler } from "../app-event-types"; import { AppScopeKey } from "../app-scope-key"; import { AppHostParams } from "./app-host-params"; export declare abstract class AppHost implements Host { readonly instanceId: string; /** * @deprecated This property is deprecated. Use `instanceId` instead. */ readonly appInstanceId: string; /** * @deprecated This property is deprecated. Use `config` instead. */ readonly appConfig: Readonly; readonly config: Readonly; readonly connectionId: string; readonly scope: Readonly | undefined; readonly scopeKey: AppScopeKey | undefined; readonly appCreateOrder: number; readonly parameters: Readonly | undefined; readonly launchSource: string | undefined; readonly launchedBy: LaunchSource; readonly appManagerData: Readonly | undefined; readonly preventUserClose: boolean | undefined; readonly launchKey: string | undefined; /** The current user-facing display name of the app instance. */ readonly displayName: string | undefined; protected readonly provider: AmazonConnectProvider; protected readonly appManagerClient: AppManagerClient; protected readonly logger: ConnectLogger; private readonly relays; private readonly destroyedHandler; protected hostStateManager: HostStateManager; constructor({ provider, appInstanceId, instanceId, connectionId, appConfig, config, scope, scopeKey, appCreateOrder, parameters, launchKey, launchSource, launchedBy, appManagerData, preventUserClose, displayName, }: AppHostParams); getState(): Promise; protected updateState(state: ComponentState, omitLogMessages?: boolean): Promise; start(): Promise; stop(): Promise; destroy(options?: { waitForCompletion?: boolean; }): Promise<{ destroyStarted: boolean; destroyCompleted: boolean; }>; onStateChanged(handler: AppStateChangedHandler): void; offStateChanged(handler: AppStateChangedHandler): void; onProvisioned(handler: AppProvisionedHandler): void; offProvisioned(handler: AppProvisionedHandler): void; onRunning(handler: AppRunningHandler): void; offRunning(handler: AppRunningHandler): void; onStopped(handler: AppStoppedHandler): void; offStopped(handler: AppStoppedHandler): void; onRestarting(handler: AppRestartingHandler): void; offRestarting(handler: AppRestartingHandler): void; onDestroying(handler: AppDestroyingHandler): void; offDestroying(handler: AppDestroyingHandler): void; onDestroyed(handler: AppDestroyedHandler): void; offDestroyed(handler: AppDestroyedHandler): void; onError(handler: AppErrorHandler): void; offError(handler: AppErrorHandler): void; onFocus(handler: AppFocusedHandler): void; offFocus(handler: AppFocusedHandler): void; private handleDestroyed; } //# sourceMappingURL=app-host.d.ts.map