import { InvocationType } from './invocation-type'; export interface HasInvocationType { type: InvocationType; } export interface HasInvocationId { invocationId: number; } export interface Subscription extends HasInvocationType, HasInvocationId { type: InvocationType.Subscription; method: string; arguments: Map; } export interface Unsubscription extends HasInvocationType, HasInvocationId { type: InvocationType.Unsubscription; } export interface KeepAlive extends HasInvocationType { type: InvocationType.KeepAlive; } export declare type Invocation = Subscription | Unsubscription | KeepAlive; export declare class Invocations { static subscription(id: number, method: string, args: Map): Subscription; static unsubscription(id: number): Unsubscription; static keepAlive(): KeepAlive; }