import type { TargetApp } from './shapes/fdc3v1'; import type { AppIdentifier, IntentResolution, Channel, PrivateChannel, Context } from './shapes/fdc3v2'; import type * as OpenFin from '../../../OpenFin'; import { PrivateChannelClient } from './PrivateChannelClient'; interface UnsupportedChannelApis { addContextListener(): Error; broadcast(): Error; getCurrentContext(): Error; } export declare const getUnsupportedChannelApis: (channelType?: string) => UnsupportedChannelApis; export declare class UnsupportedChannelApiError extends Error { constructor(apiName: string, channelType?: string); } export declare enum ResultError { /** Returned if the `IntentHandler` exited without returning a Promise or that * Promise was not resolved with a Context or Channel object. */ NoResultReturned = "NoResultReturned", /** Returned if the `IntentHandler` function processing the raised intent * throws an error or rejects the Promise it returned. */ IntentHandlerRejected = "IntentHandlerRejected" } export declare enum ChannelError { /** Returned if the specified channel is not found when attempting to join a * channel via the `joinUserChannel` function of the DesktopAgent (`fdc3`). */ NoChannelFound = "NoChannelFound", /** SHOULD be returned when a request to join a user channel or to a retrieve * a Channel object via the `joinUserChannel` or `getOrCreateChannel` methods * of the DesktopAgent (`fdc3`) object is denied. */ AccessDenied = "AccessDenied", /** SHOULD be returned when a channel cannot be created or retrieved via the * `getOrCreateChannel` method of the DesktopAgent (`fdc3`). */ CreationFailed = "CreationFailed" } export declare const buildPrivateChannelObject: (privateChannelClient: PrivateChannelClient) => PrivateChannel; export declare const buildAppChannelObject: (sessionContextGroup: OpenFin.SessionContextGroup) => Channel; export declare const connectPrivateChannel: (channelId: string) => Promise; export declare const isContext: (context: unknown) => context is Context; export declare const isChannel: (channel: unknown) => channel is Channel; export declare const getIntentResolution: (interopModule: OpenFin.InteropClient, context: Context, app?: AppIdentifier | TargetApp, intent?: string) => Promise; export {};