import { Service } from './metadata'; import { Qualifier } from '@scion/workbench-application-platform.api'; import { Observable } from 'rxjs'; /** * Allows issuing an intent to interact with the platform. */ export declare class IntentService implements Service { /** * Issues an intent to the application platform and receives a series of replies. * * The returned Observable never completes. It is up to the caller to unsubscribe from the stream. * E.g., use the pipeable operator `first` if expecting a single response. * * @returns a stream of replies. */ issueIntent$(type: string, qualifier?: Qualifier, payload?: any): Observable; /** * Issues an intent to the application platform. */ issueIntent(type: string, qualifier?: Qualifier, payload?: any): void; onDestroy(): void; }