import { Disposable, Service } from './metadata'; import { Observable } from 'rxjs'; import { ActivityAction, ActivityProperties } from '@scion/workbench-application-platform.api'; /** * Allows interaction with workbench activities. * * Activities are top-level navigation elements to open activity panels or views. * They are placed in the activity bar on the far left-hand side. */ export declare class ActivityService implements Service { private _destroy$; private _active$; private _disposables; constructor(); private onHostMessage; /** * Sets properties of the activity which is currently showing this application. */ setProperties(properties: ActivityProperties): void; /** * Gets properties of the activity which is currently showing this application. */ getProperties(): Promise; /** * Associates an action with the activity showing this application. * The action is displayed in the upper right corner of the activity panel header. * * Returns {Disposable} to remove the action. */ addAction(action: ActivityAction): Disposable; /** * Indicates whether this activity is the active activity. * Emits the current state upon subscription. */ get active$(): Observable; private handleActiveChange; onDestroy(): void; }