@openfin/fdc3-api 36.78.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1241 @@
1
+ /// <reference types="node" />
2
+
3
+ import { EventEmitter } from 'events';
4
+
5
+ declare type ApiCall<Request, Response> = {
6
+ request: Request;
7
+ response: Response;
8
+ };
9
+
10
+ declare interface AuthorizationPayload {
11
+ token: string;
12
+ file: string;
13
+ }
14
+
15
+ declare class Base {
16
+ /* Excluded from this release type: wire */
17
+ /* Excluded from this release type: __constructor */
18
+ protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
19
+ /**
20
+ * Provides access to the OpenFin representation of the current code context (usually a document
21
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
22
+ *
23
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
24
+ * on the context in which the devtools panel was opened.
25
+ */
26
+ get me(): Identity;
27
+ protected isNodeEnvironment: () => boolean;
28
+ protected isOpenFinEnvironment: () => boolean;
29
+ protected isBrowserEnvironment: () => boolean;
30
+ }
31
+
32
+ declare type BaseConfig = {
33
+ uuid?: string;
34
+ address?: string;
35
+ name?: string;
36
+ nonPersistent?: boolean;
37
+ runtimeClient?: boolean;
38
+ licenseKey?: string;
39
+ client?: any;
40
+ manifestUrl?: string;
41
+ startupApp?: any;
42
+ lrsUrl?: string;
43
+ assetsUrl?: string;
44
+ devToolsPort?: number;
45
+ installerUI?: boolean;
46
+ runtime?: RuntimeConfig;
47
+ services?: ServiceConfig[];
48
+ appAssets?: [
49
+ {
50
+ src: string;
51
+ alias: string;
52
+ target: string;
53
+ version: string;
54
+ args: string;
55
+ }
56
+ ];
57
+ customItems?: [any];
58
+ timeout?: number;
59
+ };
60
+
61
+ declare interface ChildContentOptions {
62
+ options: any;
63
+ entityType: EntityType_3;
64
+ }
65
+
66
+ declare type ConfigWithRuntime = BaseConfig & {
67
+ runtime: RuntimeConfig;
68
+ };
69
+
70
+ declare type ConfigWithUuid = BaseConfig & {
71
+ uuid: string;
72
+ };
73
+
74
+ declare type DataChannelReadyState = RTCDataChannel['readyState'];
75
+
76
+ declare type EmitterAccessor = string[];
77
+
78
+ declare class EmitterMap {
79
+ private storage;
80
+ constructor();
81
+ private hashKeys;
82
+ getOrCreate(keys: EmitterAccessor): EventEmitter;
83
+ has(keys: EmitterAccessor): boolean;
84
+ delete(keys: EmitterAccessor): boolean;
85
+ }
86
+
87
+ declare type EntityType = OpenFin.EntityType;
88
+
89
+ declare type EntityType_2 = OpenFin.EntityType;
90
+
91
+ declare type EntityType_3 = OpenFin.EntityType;
92
+
93
+ declare type EntityTypeHelpers<T extends EntityType_2> = T extends 'view' ? {
94
+ isView: true;
95
+ isWindow: false;
96
+ isExternal: false;
97
+ isFrame: false;
98
+ } : T extends 'window' ? {
99
+ isView: false;
100
+ isWindow: true;
101
+ isExternal: false;
102
+ isFrame: false;
103
+ } : T extends 'iframe' ? {
104
+ isView: false;
105
+ isWindow: false;
106
+ isExternal: false;
107
+ isFrame: true;
108
+ } : T extends 'external connection' ? {
109
+ isView: false;
110
+ isWindow: false;
111
+ isExternal: true;
112
+ isFrame: false;
113
+ } : T extends 'unknown' ? {
114
+ isView: false;
115
+ isWindow: false;
116
+ isExternal: false;
117
+ isFrame: false;
118
+ } : never;
119
+
120
+ declare interface Environment {
121
+ initLayoutManager(fin: OpenFin.Fin<OpenFin.EntityType>, wire: Transport, options: OpenFin.InitLayoutOptions): Promise<OpenFin.LayoutManager<OpenFin.LayoutSnapshot>>;
122
+ createLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, options: OpenFin.CreateLayoutOptions): Promise<void>;
123
+ destroyLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<void>;
124
+ resolveLayout(layoutManager: OpenFin.LayoutManager<OpenFin.LayoutSnapshot>, layoutIdentity: OpenFin.LayoutIdentity): Promise<any>;
125
+ initPlatform(fin: OpenFin.Fin<OpenFin.EntityType>, ...args: Parameters<OpenFin.Fin['Platform']['init']>): ReturnType<OpenFin.Fin['Platform']['init']>;
126
+ observeBounds(element: Element, onChange: (bounds: DOMRect) => Promise<void> | void): () => void;
127
+ writeToken(path: string, token: string): Promise<string>;
128
+ retrievePort(config: NewConnectConfig): Promise<number>;
129
+ getNextMessageId(): any;
130
+ getRandomId(): string;
131
+ createChildContent(options: ChildContentOptions): Promise<any>;
132
+ getWebWindow(identity: OpenFin.Identity): globalThis.Window;
133
+ getCurrentEntityIdentity(): OpenFin.EntityInfo;
134
+ getCurrentEntityType(): EntityType_3;
135
+ raiseEvent(eventName: string, eventArgs: any): void;
136
+ childViews: boolean;
137
+ getUrl(): string;
138
+ getDefaultChannelOptions(): {
139
+ create: OpenFin.ChannelCreateOptions;
140
+ connect: OpenFin.ChannelConnectOptions;
141
+ };
142
+ getRtcPeer(): RTCPeerConnection;
143
+ getWsConstructor(): typeof WebSocket;
144
+ whenReady(): Promise<void>;
145
+ }
146
+
147
+ /**
148
+ * This function converts JS errors into plain objects
149
+ */
150
+ declare type ErrorPlainObject = {
151
+ stack?: string;
152
+ message: string;
153
+ name?: string;
154
+ toString(): string;
155
+ };
156
+
157
+ declare class EventAggregator extends EmitterMap {
158
+ dispatchEvent: (message: Message<any>) => boolean;
159
+ }
160
+
161
+ declare type ExistingConnectConfig = ConfigWithUuid & {
162
+ address: string;
163
+ };
164
+
165
+ export declare function fdc3FromFin(fin: OpenFin.Fin<OpenFin.EntityType>, version?: Fdc3Version): Promise<Fdc3Module | Fdc3Module2>;
166
+
167
+ /**
168
+ * @version 1.2
169
+ * The FDC3 Client Library provides a set APIs to be used for FDC3 compliance,
170
+ * while using our Interop API under the hood. In order to use this set of APIs
171
+ * you will need to set up your own {@link InteropBroker InteropBroker} or use a Platform application, which does the setup for you. Refer to our documentation on
172
+ * our {@link https://developers.openfin.co/of-docs/docs/enable-color-linking Interop API}.
173
+ *
174
+ * To enable the FDC3 APIs in a {@link Window Window} or {@link View View}, add the fdc3InteropApi
175
+ * property to its options:
176
+ *
177
+ * ```js
178
+ * {
179
+ * autoShow: false,
180
+ * saveWindowState: true,
181
+ * url: 'https://openfin.co',
182
+ * fdc3InteropApi: '1.2'
183
+ * }
184
+ * ```
185
+ *
186
+ * If using a {@link Platform Platform } application, you can set this property in defaultWindowOptions and defaultViewOptions.
187
+ *
188
+ * In order to ensure that the FDC3 Api is ready before use, you can use the 'fdc3Ready' event fired on the DOM Window object:
189
+ *
190
+ * ```js
191
+ * function fdc3Action() {
192
+ * // Make some fdc3 API calls here
193
+ * }
194
+ *
195
+ * if (window.fdc3) {
196
+ * fdc3Action();
197
+ * } else {
198
+ * window.addEventListener('fdc3Ready', fdc3Action);
199
+ * }
200
+ * ```
201
+ */
202
+ export declare class Fdc3Module extends Base implements v1.DesktopAgent {
203
+ /**
204
+ * Add a context handler for incoming context. If an entity is part of a context group, and then sets its context handler, it will receive all of its declared contexts. If you wish to listen for all incoming contexts, pass `null` for the contextType argument.
205
+ * @param contextType - The type of context you wish to handle.
206
+ * @param handler - Handler for incoming context.
207
+ *
208
+ * @tutorial fdc3.addContextListener
209
+ * @static
210
+ */
211
+ addContextListener(contextType: string | null, handler: v1.ContextHandler): v1.Listener & Promise<v1.Listener>;
212
+ /**
213
+ * Broadcasts a context for the channel of the current entity.
214
+ * @param context - New context to set.
215
+ *
216
+ * @tutorial fdc3.broadcast
217
+ * @static
218
+ */
219
+ broadcast(context: v1.Context): Promise<void>;
220
+ /**
221
+ * Returns the Interop-Broker-defined context groups available for an entity to join.
222
+ *
223
+ * @tutorial fdc3.getSystemChannels
224
+ * @static
225
+ */
226
+ getSystemChannels(): Promise<v1.SystemChannel[]>;
227
+ /**
228
+ * Join all Interop Clients at the given identity to context group `contextGroupId`.
229
+ * If no target is specified, it adds the sender to the context group.
230
+ * Because multiple Channel connections/Interop Clients can potentially exist at a `uuid`/`name` combo, we currently join all Channel connections/Interop Clients at the given identity to the context group.
231
+ * If an `endpointId` is provided (which is unlikely, unless the call is coming from an external adapter), then we only join that single connection to the context group.
232
+ * For all intents and purposes, there will only be 1 connection present in Platform and Browser implementations, so this point is more-or-less moot.
233
+ * @param channelId - Id of the context group.
234
+ *
235
+ * @tutorial fdc3.joinChannel
236
+ * @static
237
+ */
238
+ joinChannel(channelId: string): Promise<void>;
239
+ /**
240
+ * Removes the specified target from a context group.
241
+ * If no target is specified, it removes the sender from their context group.
242
+ *
243
+ * @tutorial fdc3.leaveCurrentChannel
244
+ * @static
245
+ */
246
+ leaveCurrentChannel(): Promise<void>;
247
+ /**
248
+ * Adds a listener for incoming Intents.
249
+ * @param intent - Name of the Intent
250
+ * @param handler - Handler for incoming Intent
251
+ *
252
+ * @tutorial fdc3.addIntentListener
253
+ * @static
254
+ */
255
+ addIntentListener(intent: string, handler: v1.ContextHandler): v1.Listener & Promise<v1.Listener>;
256
+ /**
257
+ * Raises a specific intent.
258
+ * @param intent Name of the Intent.
259
+ * @param context Context associated with the Intent.
260
+ * @param app App that will resolve the Intent. This is added as metadata to the Intent. Can be accessed by the app provider in {@link InteropBroker#handleFiredIntent InteropBroker.handleFiredIntent}.
261
+ *
262
+ * @tutorial fdc3.raiseIntent
263
+ * @static
264
+ */
265
+ raiseIntent(intent: string, context: v1.Context, app?: v1.TargetApp): Promise<v1.IntentResolution>;
266
+ /**
267
+ * Returns the Channel that the entity is subscribed to. Returns null if not joined to a channel.
268
+ *
269
+ * @tutorial fdc3.getCurrentChannel
270
+ */
271
+ getCurrentChannel(): Promise<v1.Channel | null>;
272
+ /**
273
+ * Find out more information about a particular intent by passing its name, and optionally its context.
274
+ * @param intent Name of the Intent
275
+ * @param context
276
+ *
277
+ * @tutorial fdc3.findIntent
278
+ */
279
+ findIntent(intent: string, context?: v1.Context): Promise<v1.AppIntent>;
280
+ /**
281
+ * Find all the available intents for a particular context.
282
+ * @param context
283
+ *
284
+ * @tutorial fdc3.findIntentsByContext
285
+ */
286
+ findIntentsByContext(context: v1.Context): Promise<Array<v1.AppIntent>>;
287
+ /**
288
+ * Finds and raises an intent against a target app based purely on context data.
289
+ * @param context
290
+ * @param app
291
+ *
292
+ * @tutorial fdc3.raiseIntentForContext
293
+ */
294
+ raiseIntentForContext(context: v1.Context, app?: v1.TargetApp): Promise<v1.IntentResolution>;
295
+ /**
296
+ * Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
297
+ * @param channelId
298
+ *
299
+ * @tutorial fdc3.getOrCreateChannel
300
+ */
301
+ getOrCreateChannel(channelId: string): Promise<v1.Channel>;
302
+ /**
303
+ * Returns metadata relating to the FDC3 object and its provider, including the supported version of the FDC3 specification and the name of the provider of the implementation.
304
+ *
305
+ * @tutorial fdc3.getInfo
306
+ */
307
+ getInfo(): v1.ImplementationMetadata;
308
+ /**
309
+ * Launches an app with target information, which can either be a string or an AppMetadata object.
310
+ * @param app
311
+ * @param context
312
+ *
313
+ * @tutorial fdc3.open
314
+ */
315
+ open(app: v1.TargetApp, context?: v1.Context): Promise<void>;
316
+ private getCurrentContextGroupInfo;
317
+ private buildChannelObject;
318
+ }
319
+
320
+ /**
321
+ * @version 2.0
322
+ * The FDC3 Client Library provides a set APIs to be used for FDC3 compliance,
323
+ * while using our Interop API under the hood. In order to use this set of APIs
324
+ * you will need to set up your own {@link InteropBroker InteropBroker} or use a Platform application, which does the setup for you. Refer to our documentation on
325
+ * our {@link https://developers.openfin.co/of-docs/docs/enable-context-sharing Interop API}.
326
+ *
327
+ * To enable the FDC3 APIs in a {@link Window Window} or {@link View View}, add the fdc3InteropApi
328
+ * property to its options:
329
+ *
330
+ * ```js
331
+ * {
332
+ * autoShow: false,
333
+ * saveWindowState: true,
334
+ * url: 'https://openfin.co',
335
+ * fdc3InteropApi: '2.0'
336
+ * }
337
+ * ```
338
+ *
339
+ * If using a {@link Platform Platform } application, you can set this property in defaultWindowOptions and defaultViewOptions.
340
+ *
341
+ * In order to ensure that the FDC3 Api is ready before use, you can use the 'fdc3Ready' event fired on the DOM Window object:
342
+ *
343
+ * ```js
344
+ * function fdc3Action() {
345
+ * // Make some fdc3 API calls here
346
+ * }
347
+ *
348
+ * if (window.fdc3) {
349
+ * fdc3Action();
350
+ * } else {
351
+ * window.addEventListener('fdc3Ready', fdc3Action);
352
+ * }
353
+ * ```
354
+ */
355
+ export declare class Fdc3Module2 extends Base implements v2.DesktopAgent {
356
+ private fdc3Module;
357
+ constructor(wire: Transport);
358
+ /**
359
+ * Launches an app, specified via an AppIdentifier object.
360
+ * @param app
361
+ * @param context
362
+ *
363
+ * @tutorial fdc3.open
364
+ */
365
+ open(app: v2.AppIdentifier | v1.TargetApp, context?: v2.Context): Promise<v2.AppIdentifier>;
366
+ /**
367
+ * Find all the available instances for a particular application.
368
+ * @param app
369
+ *
370
+ * @tutorial fdc3v2.findInstances
371
+ */
372
+ findInstances(app: v2.AppIdentifier): Promise<Array<v2.AppIdentifier>>;
373
+ /**
374
+ * Retrieves the AppMetadata for an AppIdentifier, which provides additional metadata (such as icons, a title and description) from the App Directory record for the application, that may be used for display purposes.
375
+ * @param app
376
+ *
377
+ * @tutorial fdc3v2.getAppMetadata
378
+ */
379
+ getAppMetadata(app: v2.AppIdentifier): Promise<v2.AppMetadata>;
380
+ /**
381
+ * Broadcasts a context for the channel of the current entity.
382
+ * @param context - New context to set.
383
+ *
384
+ * @tutorial fdc3.broadcast
385
+ */
386
+ broadcast(context: v2.Context): Promise<void>;
387
+ /**
388
+ * Add a context handler for incoming context. If an entity is part of a context group, and then sets its context handler, it will receive all of its declared contexts. If you wish to listen for all incoming contexts, pass `null` for the contextType argument.
389
+ * @param contextType
390
+ * @param handler
391
+ *
392
+ * @tutorial fdc3.addContextListener
393
+ */
394
+ addContextListener(contextType: string | null, handler: v2.ContextHandler): Promise<v2.Listener>;
395
+ /**
396
+ * Find out more information about a particular intent by passing its name, and optionally its context and resultType.
397
+ * @param intent Name of the Intent
398
+ * @param context Context
399
+ * @param resultType The type of result returned for any intent specified during resolution.
400
+ *
401
+ * @tutorial fdc3.findIntent
402
+ */
403
+ findIntent(intent: string, context?: v2.Context, resultType?: string): Promise<v2.AppIntent>;
404
+ /**
405
+ * Find all the available intents for a particular context.
406
+ * @param context
407
+ * @param resultType The type of result returned for any intent specified during resolution.
408
+ *
409
+ * @tutorial fdc3v2.findIntentsByContext
410
+ */
411
+ findIntentsByContext(context: v2.Context, resultType?: string): Promise<Array<v2.AppIntent>>;
412
+ /**
413
+ * Raises a specific intent for resolution against apps registered with the desktop agent.
414
+ * @param intent Name of the Intent
415
+ * @param context Context associated with the Intent
416
+ * @param app
417
+ *
418
+ * @tutorial fdc3v2.raiseIntent
419
+ */
420
+ raiseIntent(intent: string, context: v2.Context, app?: v2.AppIdentifier | v1.TargetApp): Promise<v2.IntentResolution>;
421
+ /**
422
+ * Finds and raises an intent against apps registered with the desktop agent based purely on the type of the context data.
423
+ * @param context Context associated with the Intent
424
+ * @param app
425
+ *
426
+ * @tutorial fdc3v2.raiseIntentForContext
427
+ */
428
+ raiseIntentForContext(context: v2.Context, app?: v2.AppIdentifier | v1.TargetApp): Promise<v2.IntentResolution>;
429
+ /**
430
+ * Adds a listener for incoming intents.
431
+ * @param intent Name of the Intent
432
+ * @param handler A callback that handles a context event and may return a promise of a Context or Channel object to be returned to the application that raised the intent.
433
+ *
434
+ * @tutorial fdc3.addIntentListener
435
+ */
436
+ addIntentListener(intent: string, handler: v2.IntentHandler): Promise<v1.Listener>;
437
+ /**
438
+ * Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
439
+ * @param channelId
440
+ *
441
+ * @tutorial fdc3.getOrCreateChannel
442
+ */
443
+ getOrCreateChannel(channelId: string): Promise<v2.Channel>;
444
+ /**
445
+ * Returns a Channel with an auto-generated identity that is intended for private communication between applications. Primarily used to create channels that will be returned to other applications via an IntentResolution for a raised intent.
446
+ *
447
+ * @tutorial fdc3v2.createPrivateChannel
448
+ */
449
+ createPrivateChannel(): Promise<v2.PrivateChannel>;
450
+ /**
451
+ * Retrieves a list of the User Channels available for the app to join.
452
+ *
453
+ * @tutorial fdc3v2.getUserChannels
454
+ */
455
+ getUserChannels(): Promise<Array<v1.SystemChannel>>;
456
+ /**
457
+ * Retrieves a list of the User Channels available for the app to join.
458
+ *
459
+ * @deprecated Please use {@link fdc3.getUserChannels fdc3.getUserChannels} instead
460
+ * @tutorial fdc3.getSystemChannels
461
+ */
462
+ getSystemChannels(): Promise<Array<v1.SystemChannel>>;
463
+ /**
464
+ * Join an app to a specified User channel.
465
+ * @param channelId Channel name
466
+ *
467
+ * @tutorial fdc3v2.joinUserChannel
468
+ */
469
+ joinUserChannel(channelId: string): Promise<void>;
470
+ /**
471
+ * Join an app to a specified User channel.
472
+ * @param channelId Channel name
473
+ * @deprecated Please use {@link fdc3.joinUserChannel fdc3.joinUserChannel} instead
474
+ *
475
+ * @tutorial fdc3.joinChannel
476
+ */
477
+ joinChannel(channelId: string): Promise<void>;
478
+ /**
479
+ * Returns the Channel object for the current User channel membership
480
+ *
481
+ * @tutorial fdc3.getCurrentChannel
482
+ */
483
+ getCurrentChannel(): Promise<v2.Channel | null>;
484
+ /**
485
+ * Removes the app from any User channel membership.
486
+ *
487
+ * @tutorial fdc3.leaveCurrentChannel
488
+ */
489
+ leaveCurrentChannel(): Promise<void>;
490
+ /**
491
+ * Retrieves information about the FDC3 implementation, including the supported version of the FDC3 specification, the name of the provider of the implementation, its own version number, details of whether optional API features are implemented and the metadata of the calling application according to the desktop agent.
492
+ * fdc3HandleGetInfo must be overridden in the InteropBroker so that the ImplementationMetadata will have the appMetadata info.
493
+ *
494
+ * @tutorial fdc3v2.getInfo
495
+ */
496
+ getInfo(): Promise<v2.ImplementationMetadata>;
497
+ }
498
+
499
+ export declare type Fdc3Version = '1.2' | '2.0';
500
+
501
+ declare type FlexReadyState = WebSocketReadyState | DataChannelReadyState;
502
+
503
+ declare type GetterCall<T> = ApiCall<void, T>;
504
+
505
+ declare type Identity = OpenFin.Identity;
506
+
507
+ declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
508
+
509
+ declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
510
+
511
+ declare interface Message<T> {
512
+ action: string;
513
+ payload: T;
514
+ correlationId?: number;
515
+ }
516
+
517
+ declare type MessageHandler = (data: any) => boolean;
518
+
519
+ declare interface MessageReceiver {
520
+ addEventListener(e: 'open', listener: (ev: Event) => void): void;
521
+ addEventListener(e: 'error', listener: (ev: Event) => void): void;
522
+ addEventListener(e: 'message', listener: (ev: MessageEvent) => void): void;
523
+ addEventListener(e: 'close', listener: (ev: Event) => void): void;
524
+ send(data: unknown): void;
525
+ close(): void;
526
+ readyState: FlexReadyState;
527
+ }
528
+
529
+ declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
530
+
531
+ declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
532
+
533
+ declare namespace OpenFin {
534
+ {
535
+ FinApi,
536
+ Fin,
537
+ Application,
538
+ ApplicationModule,
539
+ ExternalApplication,
540
+ ExternalApplicationModule,
541
+ _Frame as Frame,
542
+ _FrameModule,
543
+ GlobalHotkey,
544
+ Channel,
545
+ ChannelClient,
546
+ ChannelProvider,
547
+ Platform,
548
+ PlatformModule,
549
+ Layout,
550
+ LayoutModule,
551
+ View_2 as View,
552
+ ViewModule,
553
+ ColumnOrRow,
554
+ TabStack,
555
+ _Window as Window,
556
+ _WindowModule,
557
+ InteropClient,
558
+ InteropBroker,
559
+ InteropModule,
560
+ SnapshotSource,
561
+ SnapshotSourceModule,
562
+ System,
563
+ LayoutEntityDefinition,
564
+ LayoutEntityTypes,
565
+ LayoutPosition,
566
+ WebContent,
567
+ PlatformProvider,
568
+ ApplicationIdentity_2 as ApplicationIdentity,
569
+ Identity_5 as Identity,
570
+ ClientIdentity,
571
+ ClientInfo,
572
+ ClientIdentityMultiRuntime,
573
+ ClientConnectionPayload,
574
+ EntityInfo_2 as EntityInfo,
575
+ EntityType_4 as EntityType,
576
+ Bounds,
577
+ WindowBounds,
578
+ Rectangle,
579
+ ApplicationCreationOptions,
580
+ ApplicationOptions,
581
+ CustomProtocolMissingState,
582
+ CustomProtocolMalformedState,
583
+ CustomProtocolRegisteredState,
584
+ CustomProtocolState,
585
+ CustomProtocolOptions,
586
+ InteropBrokerOptions,
587
+ ContextGroupInfo,
588
+ DisplayMetadata_3 as DisplayMetadata,
589
+ LegacyWinOptionsInAppOptions,
590
+ Snapshot,
591
+ ContextGroupStates,
592
+ Context_3 as Context,
593
+ MonitorInfo,
594
+ Point,
595
+ PointTopLeft,
596
+ RectangleByEdgePositions,
597
+ MonitorDetails,
598
+ DipRect,
599
+ DipScaleRects,
600
+ TaskBar,
601
+ WindowCreationOptions,
602
+ UpdatableWindowOptions,
603
+ WindowOptions,
604
+ ViewVisibilityOption,
605
+ ShowViewOnWindowResizeOptions,
606
+ ViewVisibilityOptions,
607
+ WindowState,
608
+ AutoplayPolicyOptions,
609
+ ConstWindowOptions,
610
+ MutableWindowOptions,
611
+ WorkspacePlatformOptions,
612
+ WebRequestHeader,
613
+ CustomRequestHeaders,
614
+ WindowOptionDiff,
615
+ ResizeRegion,
616
+ Accelerator,
617
+ Api,
618
+ InjectionType,
619
+ NavigationRules,
620
+ ContentNavigation,
621
+ ContentRedirect,
622
+ CornerRounding,
623
+ DownloadPreloadOption,
624
+ DownloadPreloadInfo,
625
+ RGB,
626
+ ContextMenuSettings,
627
+ Hotkey,
628
+ ShortcutOverride,
629
+ PreloadScript,
630
+ AutoResizeOptions,
631
+ InteropConfig,
632
+ ViewInfo,
633
+ UpdatableViewOptions,
634
+ ViewCreationOptions,
635
+ MutableViewOptions,
636
+ ViewOptions,
637
+ ConstViewOptions,
638
+ ViewState,
639
+ Certificate,
640
+ HostContextChangedPayload,
641
+ ApplySnapshotOptions,
642
+ ApplySnapshotPayload,
643
+ AddViewToStackOptions,
644
+ CreateViewTarget,
645
+ CreateViewPayload,
646
+ AddViewOptions,
647
+ ReplaceViewPayload,
648
+ ReplaceViewOptions,
649
+ CloseViewPayload,
650
+ CloseViewOptions,
651
+ FetchManifestPayload,
652
+ ReplaceLayoutOpts,
653
+ ReplaceLayoutPayload,
654
+ ReplaceLayoutOptions,
655
+ SetWindowContextPayload,
656
+ LaunchIntoPlatformPayload,
657
+ GetWindowContextPayload,
658
+ ApplicationPermissions,
659
+ LaunchExternalProcessRule,
660
+ SystemPermissions,
661
+ WebPermission,
662
+ VerboseWebPermission,
663
+ OpenExternalPermission,
664
+ DeviceInfo,
665
+ Permissions_2 as Permissions,
666
+ PlatformWindowCreationOptions,
667
+ PlatformWindowOptions,
668
+ PlatformViewCreationOptions,
669
+ ProcessAffinityStrategy,
670
+ PlatformOptions,
671
+ Manifest,
672
+ LayoutContent,
673
+ LayoutItemConfig,
674
+ LayoutRow,
675
+ LayoutColumn,
676
+ LayoutComponent,
677
+ LayoutOptions,
678
+ OverrideCallback,
679
+ ConstructorOverride,
680
+ Constructor,
681
+ HostContextChangedReasons,
682
+ WindowCreationReason,
683
+ InitPlatformOptions,
684
+ ProcessDetails,
685
+ FrameProcessDetails,
686
+ EntityProcessDetails,
687
+ AppProcessInfo,
688
+ NonAppProcessDetails,
689
+ SystemProcessInfo,
690
+ ClearCacheOption,
691
+ CookieInfo,
692
+ CookieOption,
693
+ CrashReporterOptions,
694
+ CrashReporterState,
695
+ Time,
696
+ CpuInfo,
697
+ GpuInfo,
698
+ HostSpecs,
699
+ PrinterInfo_2 as PrinterInfo,
700
+ Dpi,
701
+ Margins,
702
+ PrintOptions,
703
+ ScreenshotPrintOptions,
704
+ WindowViewsPrintOptions,
705
+ WindowPrintOptions,
706
+ ImageFormatOptions,
707
+ ClipboardSelectionType,
708
+ BaseClipboardRequest,
709
+ WriteClipboardRequest,
710
+ ReadImageClipboardRequest,
711
+ WriteImageClipboardRequest,
712
+ WriteAnyClipboardRequest,
713
+ WriteRequestType,
714
+ WriteAnyRequestType,
715
+ SubscriptionOptions,
716
+ SharedWorkerInfo,
717
+ ServiceIdentifier,
718
+ ServiceConfiguration,
719
+ RVMInfo,
720
+ AppVersionProgress,
721
+ AppVersionError,
722
+ AppVersionRuntimeInfo,
723
+ LaunchEmitter,
724
+ RvmLaunchOptions,
725
+ ShortCutConfig,
726
+ TerminateExternalRequestType,
727
+ TrayInfo,
728
+ Transition,
729
+ Size,
730
+ Opacity,
731
+ TransitionBase,
732
+ Position,
733
+ AnchorType,
734
+ TransitionOptions,
735
+ tween,
736
+ FindInPageOptions,
737
+ FindInPageResult,
738
+ FrameInfo,
739
+ ExternalApplicationInfo,
740
+ ExternalConnection,
741
+ ExternalProcessRequestType,
742
+ CertificationInfo,
743
+ ExitCode,
744
+ LaunchExternalProcessListener,
745
+ ExternalProcessInfo,
746
+ AppAssetInfo,
747
+ RuntimeDownloadOptions,
748
+ AppAssetRequest,
749
+ RuntimeDownloadProgress,
750
+ CertifiedAppInfo,
751
+ JumpListCategory,
752
+ JumpListItem,
753
+ JumpListTask,
754
+ JumpListSeparator,
755
+ ApplicationInfo,
756
+ ManifestInfo,
757
+ ClickedMenuResult,
758
+ ClosedMenuResult,
759
+ MenuResult,
760
+ ShowPopupMenuOptions,
761
+ ShowTrayIconPopupMenuOptions,
762
+ MenuItemTemplate,
763
+ NativeWindowIntegrationProviderAuthorization,
764
+ RuntimeInfo,
765
+ DefaultDomainSettings,
766
+ DefaultDomainSettingsRule,
767
+ DomainSettings,
768
+ ApiInjection,
769
+ DomainSettingsRule,
770
+ FileDownloadBehaviorNames,
771
+ FileDownloadSettings,
772
+ DownloadRule,
773
+ ContextHandler_3 as ContextHandler,
774
+ Intent_2 as Intent,
775
+ IntentMetadata_3 as IntentMetadata,
776
+ IntentHandler_2 as IntentHandler,
777
+ ContentCreationBehaviorNames,
778
+ MatchPattern,
779
+ BaseContentCreationRule,
780
+ WindowContentCreationRule,
781
+ ViewContentCreationRule,
782
+ BrowserContentCreationRule,
783
+ BlockedContentCreationRule,
784
+ ContentCreationRule,
785
+ ContentCreationOptions,
786
+ SnapshotProvider,
787
+ QueryPermissionResult,
788
+ SessionContextGroup,
789
+ MessagingProtocols,
790
+ ChannelCreateOptions,
791
+ ChannelConnectOptions,
792
+ ContextForIntent,
793
+ InfoForIntentOptions,
794
+ FindIntentsByContextOptions,
795
+ ProviderIdentity_7 as ProviderIdentity,
796
+ RegisterUsageData,
797
+ ViewsPreventingUnloadPayload,
798
+ BeforeUnloadUserDecision,
799
+ ViewStatuses,
800
+ CloseWindowPayload,
801
+ ProxyInfo_2 as ProxyInfo,
802
+ ProxyConfig_2 as ProxyConfig,
803
+ ProxySystemInfo,
804
+ ChannelAction_2 as ChannelAction,
805
+ ChannelMiddleware_2 as ChannelMiddleware,
806
+ ErrorMiddleware_2 as ErrorMiddleware,
807
+ ApplicationState_2 as ApplicationState,
808
+ InstalledApps_2 as InstalledApps,
809
+ InstallationInfo,
810
+ GetLogRequestType_2 as GetLogRequestType,
811
+ LogInfo_2 as LogInfo,
812
+ SendApplicationLogResponse,
813
+ LogLevel_2 as LogLevel,
814
+ PermissionState_2 as PermissionState,
815
+ RegistryInfo_2 as RegistryInfo,
816
+ ApplicationType,
817
+ WindowInfo,
818
+ ApplicationWindowInfo_2 as ApplicationWindowInfo,
819
+ WindowDetail,
820
+ LayoutPresetType,
821
+ LayoutIdentity,
822
+ LayoutSnapshot,
823
+ InitLayoutOptions,
824
+ LayoutManagerConstructor,
825
+ LayoutManagerOverride,
826
+ LayoutManager,
827
+ CreateLayoutOptions,
828
+ PresetLayoutOptions_2 as PresetLayoutOptions,
829
+ ResultBehavior,
830
+ PopupBaseBehavior,
831
+ PopupResultBehavior,
832
+ PopupBlurBehavior,
833
+ Optional,
834
+ PopupOptions,
835
+ PopupInteraction,
836
+ PopupResult,
837
+ SystemShutdownHandler,
838
+ AppVersionProgressEvent,
839
+ AppVersionErrorEvent,
840
+ AppVersionCompleteEvent,
841
+ AppVersionRuntimeStatusEvent,
842
+ Events,
843
+ BaseEvent_9 as BaseEvent,
844
+ WebContentsEvent_2 as WebContentsEvent,
845
+ SystemEvent_2 as SystemEvent,
846
+ ApplicationEvent_2 as ApplicationEvent,
847
+ WindowEvent_2 as WindowEvent,
848
+ ViewEvent_2 as ViewEvent,
849
+ GlobalHotkeyEvent_2 as GlobalHotkeyEvent,
850
+ FrameEvent_2 as FrameEvent,
851
+ PlatformEvent_2 as PlatformEvent,
852
+ ExternalApplicationEvent_2 as ExternalApplicationEvent,
853
+ ContextMenuOptions,
854
+ PrebuiltContextMenuItem,
855
+ InteropBrokerDisconnectionEvent,
856
+ InteropClientOnDisconnectionListener,
857
+ InteropActionLoggingOption,
858
+ InteropLoggingActions,
859
+ InteropLoggingOptions,
860
+ Me,
861
+ CapturePageOptions,
862
+ ProcessLoggingOptions,
863
+ PositioningOptions,
864
+ ChannelClientConnectionListener,
865
+ ChannelClientDisconnectionListener,
866
+ ChannelProviderDisconnectionListener,
867
+ RoutingInfo,
868
+ DownloadShelfOptions,
869
+ ApplicationEvents,
870
+ BaseEvents,
871
+ ExternalApplicationEvents,
872
+ FrameEvents,
873
+ GlobalHotkeyEvents,
874
+ PlatformEvents,
875
+ SystemEvents,
876
+ ViewEvents,
877
+ WebContentsEvents,
878
+ WindowEvents
879
+ }
880
+ }
881
+
882
+ declare type Payload<Success extends boolean = boolean, Data = any> = {
883
+ success: Success;
884
+ data: Success extends true ? Data : never;
885
+ reason: Success extends false ? string : never;
886
+ error?: Success extends false ? ErrorPlainObject | undefined : never;
887
+ };
888
+
889
+ declare interface ProtocolMap extends ProtocolMapBase {
890
+ 'request-external-authorization': {
891
+ request: any;
892
+ response: void;
893
+ specialResponse: AuthorizationPayload;
894
+ };
895
+ 'application-get-views': {
896
+ request: OpenFin.ApplicationIdentity;
897
+ response: OpenFin.Identity[];
898
+ };
899
+ 'set-jump-list': {
900
+ request: {
901
+ config: OpenFin.JumpListCategory[] | null;
902
+ } & OpenFin.ApplicationIdentity;
903
+ response: void;
904
+ };
905
+ 'clipboard-read-formats': {
906
+ request: {
907
+ type?: OpenFin.ClipboardSelectionType;
908
+ };
909
+ response: Array<string>;
910
+ };
911
+ 'clipboard-read-image': {
912
+ request: OpenFin.ReadImageClipboardRequest;
913
+ response: string;
914
+ };
915
+ 'clipboard-write-image': {
916
+ request: OpenFin.WriteImageClipboardRequest;
917
+ response: void;
918
+ };
919
+ 'clipboard-write': {
920
+ request: OpenFin.WriteAnyRequestType;
921
+ response: void;
922
+ };
923
+ 'get-view-window': IdentityCall<{}, OpenFin.Identity>;
924
+ 'create-view': IdentityCall<OpenFin.ViewCreationOptions & {
925
+ uuid: string;
926
+ }>;
927
+ 'destroy-view': IdentityCall;
928
+ 'attach-view': IdentityCall<{
929
+ target: OpenFin.Identity;
930
+ }>;
931
+ 'set-view-bounds': IdentityCall<{
932
+ bounds: OpenFin.Bounds;
933
+ }>;
934
+ 'get-view-bounds': IdentityCall<{}, OpenFin.Bounds>;
935
+ 'get-view-info': IdentityCall<{}, OpenFin.ViewInfo>;
936
+ 'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
937
+ 'hide-view': IdentityCall;
938
+ 'show-view': IdentityCall;
939
+ 'update-view-options': IdentityCall<{
940
+ options: OpenFin.UpdatableViewOptions;
941
+ }>;
942
+ 'trigger-before-unload': IdentityCall<{}, boolean>;
943
+ 'window-get-views': IdentityCall<{}, OpenFin.Identity[]>;
944
+ 'print': {
945
+ request: OpenFin.Identity & {
946
+ options: OpenFin.PrintOptions;
947
+ };
948
+ response: void;
949
+ };
950
+ 'print-screenshot': {
951
+ request: OpenFin.Identity;
952
+ response: void;
953
+ };
954
+ 'print-views': {
955
+ request: OpenFin.Identity & {
956
+ options: OpenFin.WindowViewsPrintOptions;
957
+ };
958
+ response: void;
959
+ };
960
+ 'launch-manifest': {
961
+ request: {
962
+ manifestUrl: string;
963
+ opts?: Omit<OpenFin.RvmLaunchOptions, 'subscribe'> & {
964
+ appVersionId?: string;
965
+ };
966
+ };
967
+ response: {
968
+ manifest: OpenFin.Manifest;
969
+ };
970
+ };
971
+ 'get-system-app-configuration': {
972
+ request: {
973
+ name: string;
974
+ };
975
+ response: any;
976
+ };
977
+ 'show-popup-menu': {
978
+ request: OpenFin.Identity & {
979
+ options: OpenFin.ShowPopupMenuOptions;
980
+ };
981
+ response: OpenFin.MenuResult;
982
+ };
983
+ 'enable-native-window-integration-provider': {
984
+ request: {
985
+ permissions: any;
986
+ };
987
+ response: OpenFin.NativeWindowIntegrationProviderAuthorization;
988
+ };
989
+ 'get-permissions': GetterCall<any>;
990
+ 'get-all-channels': GetterCall<OpenFin.ProviderIdentity[]>;
991
+ 'set-file-download-location': {
992
+ request: OpenFin.Identity & {
993
+ downloadLocation: string;
994
+ };
995
+ response: void;
996
+ };
997
+ 'get-file-download-location': {
998
+ request: OpenFin.ApplicationIdentity;
999
+ response: string;
1000
+ };
1001
+ 'close-popup-menu': IdentityCall;
1002
+ 'fdc3-add-context-listener': VoidCall;
1003
+ 'fdc3-broadcast': VoidCall;
1004
+ 'fdc3-get-system-channels': VoidCall;
1005
+ 'fdc3-join-channel': VoidCall;
1006
+ 'fdc3-leave-current-channel': VoidCall;
1007
+ 'interop-connect-sync': VoidCall;
1008
+ 'interop-client-set-context': VoidCall;
1009
+ 'interop-client-add-context-handler': VoidCall;
1010
+ 'interop-client-get-context-groups': VoidCall;
1011
+ 'interop-client-join-context-group': VoidCall;
1012
+ 'interop-client-remove-from-context-group': VoidCall;
1013
+ 'interop-client-get-all-clients-in-context-group': VoidCall;
1014
+ 'interop-client-get-info-for-context-group': VoidCall;
1015
+ 'interop-broker-add-client-to-context-group': VoidCall;
1016
+ 'interop-broker-get-all-clients-in-context-group': VoidCall;
1017
+ 'interop-broker-get-context-groups': VoidCall;
1018
+ 'interop-broker-get-info-for-context-group': VoidCall;
1019
+ 'interop-broker-is-action-authorized': VoidCall;
1020
+ 'interop-broker-is-connection-authorized': VoidCall;
1021
+ 'interop-broker-join-context-group': VoidCall;
1022
+ 'interop-broker-remove-client-from-context-group': VoidCall;
1023
+ 'interop-broker-remove-from-context-group': VoidCall;
1024
+ 'interop-broker-set-context': VoidCall;
1025
+ 'query-permission-for-current-context': {
1026
+ request: {
1027
+ apiName: string;
1028
+ identity: OpenFin.Identity;
1029
+ };
1030
+ response: OpenFin.QueryPermissionResult;
1031
+ };
1032
+ 'try-create-popup-window': {
1033
+ request: OpenFin.Identity & {
1034
+ options: OpenFin.PopupOptions;
1035
+ };
1036
+ response: {
1037
+ willOpen: boolean;
1038
+ options: OpenFin.PopupOptions;
1039
+ };
1040
+ };
1041
+ 'show-popup-window': {
1042
+ request: OpenFin.Identity & {
1043
+ options: OpenFin.PopupOptions;
1044
+ };
1045
+ response: OpenFin.PopupResult;
1046
+ };
1047
+ 'dispatch-popup-result': IdentityCall<{
1048
+ data: any;
1049
+ }>;
1050
+ 'render-overlay': {
1051
+ request: {
1052
+ bounds: OpenFin.Bounds;
1053
+ };
1054
+ response: void;
1055
+ };
1056
+ 'set-overlay-style': {
1057
+ request: {
1058
+ style: Partial<CSSStyleDeclaration>;
1059
+ };
1060
+ response: void;
1061
+ };
1062
+ 'detach-overlay': VoidCall;
1063
+ 'set-ignore-all-view-mouse-events': {
1064
+ request: {
1065
+ enabled: boolean;
1066
+ };
1067
+ response: void;
1068
+ };
1069
+ 'system-get-printers': GetterCall<OpenFin.PrinterInfo[]>;
1070
+ 'system-register-shutdown-handler': VoidCall;
1071
+ 'get-domain-settings': ApiCall<OpenFin.ApplicationIdentity, OpenFin.DefaultDomainSettings>;
1072
+ 'set-domain-settings': ApiCall<OpenFin.ApplicationIdentity & {
1073
+ domainSettings: OpenFin.DefaultDomainSettings;
1074
+ }, void>;
1075
+ 'move-window-by': IdentityCall<WithPositioningOptions<{
1076
+ deltaLeft: number;
1077
+ deltaTop: number;
1078
+ }>>;
1079
+ 'move-window': IdentityCall<WithPositioningOptions<{
1080
+ left: number;
1081
+ top: number;
1082
+ }>>;
1083
+ 'resize-window-by': IdentityCall<WithPositioningOptions<{
1084
+ deltaWidth: number;
1085
+ deltaHeight: number;
1086
+ anchor: OpenFin.AnchorType;
1087
+ }>>;
1088
+ 'resize-window': IdentityCall<WithPositioningOptions<{
1089
+ width: number;
1090
+ height: number;
1091
+ anchor: OpenFin.AnchorType;
1092
+ }>>;
1093
+ 'set-window-bounds': IdentityCall<WithPositioningOptions<Partial<OpenFin.Bounds>>>;
1094
+ 'register-custom-protocol': ApiCall<OpenFin.CustomProtocolOptions, void>;
1095
+ 'unregister-custom-protocol': ApiCall<{
1096
+ protocolName: string;
1097
+ }, void>;
1098
+ 'get-custom-protocol-state': ApiCall<{
1099
+ protocolName: string;
1100
+ }, OpenFin.CustomProtocolState>;
1101
+ }
1102
+
1103
+ declare interface ProtocolMapBase {
1104
+ [action: string]: {
1105
+ request: any;
1106
+ response: any;
1107
+ specialResponse?: any;
1108
+ };
1109
+ }
1110
+
1111
+ declare interface ReceiverConfig extends Omit<RemoteConfig, 'address'> {
1112
+ receiver: MessageReceiver;
1113
+ }
1114
+
1115
+ declare interface RemoteConfig extends ExistingConnectConfig {
1116
+ token: string;
1117
+ }
1118
+
1119
+ declare type RuntimeConfig = {
1120
+ version: string;
1121
+ fallbackVersion?: string;
1122
+ securityRealm?: string;
1123
+ verboseLogging?: boolean;
1124
+ arguments?: string;
1125
+ rvmDir?: string;
1126
+ };
1127
+
1128
+ declare type RuntimeErrorPayload = {
1129
+ reason: string;
1130
+ error?: ErrorPlainObject;
1131
+ };
1132
+
1133
+ declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
1134
+ data: ProtocolMap[T]['response'];
1135
+ } & ProtocolMap[T]['specialResponse']>;
1136
+
1137
+ declare type SentMessage<Value> = Promise<Value> & {
1138
+ cancel: (reason?: any) => void;
1139
+ messageId: ReturnType<Environment['getNextMessageId']>;
1140
+ };
1141
+
1142
+ declare type ServiceConfig = {
1143
+ name: string;
1144
+ manifestUrl: string;
1145
+ };
1146
+
1147
+ declare class Transport<MeType extends EntityType = EntityType> extends EventEmitter {
1148
+ #private;
1149
+ protected wireListeners: Map<number, {
1150
+ resolve: Function;
1151
+ handleNack: (payload: RuntimeErrorPayload) => void;
1152
+ }>;
1153
+ protected uncorrelatedListener: Function;
1154
+ me: OpenFin.EntityInfo & EntityTypeHelpers<MeType>;
1155
+ environment: Environment;
1156
+ topicRefMap: Map<string, number>;
1157
+ sendRaw: Wire['send'];
1158
+ eventAggregator: EventAggregator;
1159
+ protected messageHandlers: MessageHandler[];
1160
+ constructor(WireType: WireConstructor, environment: Environment, config: OpenFin.Identity);
1161
+ getFin(): OpenFin.Fin<MeType>;
1162
+ registerFin(_fin: OpenFin.Fin<MeType>): void;
1163
+ connectSync: () => void;
1164
+ getPort: () => string;
1165
+ shutdown(): Promise<void>;
1166
+ connect(config: InternalConnectConfig | RemoteConfig | ReceiverConfig): Promise<string | void>;
1167
+ private connectRemote;
1168
+ connectByPort(config: ExistingConnectConfig): Promise<void>;
1169
+ private authorize;
1170
+ sendAction<T extends keyof ProtocolMap = string>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
1171
+ protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?: NodeJS.CallSite[]): void;
1172
+ ferryAction(origData: any): Promise<Message<any>>;
1173
+ registerMessageHandler(handler: MessageHandler): void;
1174
+ protected addWireListener(id: number, resolve: Function, handleNack: NackHandler, uncorrelated: boolean): void;
1175
+ protected onmessage(data: Message<Payload>): void;
1176
+ protected handleMessage(data: Message<Payload>): boolean;
1177
+ }
1178
+
1179
+ declare namespace v1 {
1180
+ {
1181
+ Listener,
1182
+ AppMetadata,
1183
+ IntentMetadata,
1184
+ AppIntent,
1185
+ DisplayMetadata,
1186
+ ImplementationMetadata,
1187
+ ContextHandler,
1188
+ TargetApp,
1189
+ Context,
1190
+ IntentResolution,
1191
+ Channel_3 as Channel,
1192
+ SystemChannel,
1193
+ DesktopAgent
1194
+ }
1195
+ }
1196
+
1197
+ declare namespace v2 {
1198
+ {
1199
+ IntentMetadata_2 as IntentMetadata,
1200
+ AppIdentifier,
1201
+ Listener_2 as Listener,
1202
+ AppIntent_2 as AppIntent,
1203
+ ImplementationMetadata_2 as ImplementationMetadata,
1204
+ ContextMetadata,
1205
+ Icon,
1206
+ Image_2 as Image,
1207
+ AppMetadata_2 as AppMetadata,
1208
+ DisplayMetadata_2 as DisplayMetadata,
1209
+ ContextHandler_2 as ContextHandler,
1210
+ IntentHandler,
1211
+ IntentResult,
1212
+ Context_2 as Context,
1213
+ Intent,
1214
+ IntentResolution_2 as IntentResolution,
1215
+ Channel_4 as Channel,
1216
+ PrivateChannel,
1217
+ DesktopAgent_2 as DesktopAgent
1218
+ }
1219
+ }
1220
+
1221
+ declare type VoidCall = ApiCall<void, void>;
1222
+
1223
+ declare type WebSocketReadyState = WebSocket['readyState'];
1224
+
1225
+ declare type Wire = EventEmitter & {
1226
+ connect(messageReciever: MessageReceiver): Promise<any>;
1227
+ connectSync(): any;
1228
+ send(data: any): Promise<any>;
1229
+ shutdown(): Promise<void>;
1230
+ getPort(): string;
1231
+ };
1232
+
1233
+ declare type WireConstructor = {
1234
+ new (onmessage: (data: any) => void): Wire;
1235
+ };
1236
+
1237
+ declare type WithPositioningOptions<T extends {} = {}> = T & {
1238
+ positioningOptions?: OpenFin.PositioningOptions;
1239
+ };
1240
+
1241
+ export { }