/** * SPDX-License-Identifier: Apache-2.0 * Copyright FINOS FDC3 contributors - see NOTICE file */ import { AppIdentifier, AppIntent, Channel, ContextHandler, IntentHandler, IntentResolution, Listener, ImplementationMetadata, AppMetadata, PrivateChannel, Intent, StandardContextType, StandardIntent, ContextType, FDC3EventTypes, EventHandler } from '../index.js'; import { Context } from '@finos/fdc3-context'; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function open(app: AppIdentifier | string, context?: Context): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function findIntent(intent: Intent, context?: Context, resultType?: string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function findIntentsByContext(context: Context, resultType?: string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function broadcast(context: Context): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function raiseIntent(intent: Intent, context: Context, app?: AppIdentifier | string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function raiseIntentForContext(context: Context, app?: AppIdentifier | string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function addIntentListener(intent: Intent, handler: IntentHandler): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function addContextListener(contextTypeOrHandler: ContextType | null | ContextHandler, handler?: ContextHandler): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function addEventListener(eventType: FDC3EventTypes, handler: EventHandler): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function getUserChannels(): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function getSystemChannels(): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function joinUserChannel(channelId: string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function joinChannel(channelId: string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function getOrCreateChannel(channelId: string): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function getCurrentChannel(): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function leaveCurrentChannel(): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function createPrivateChannel(): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function getInfo(): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function getAppMetadata(app: AppIdentifier): Promise; /** * @deprecated Importing individual FDC3 API calls is deprecated. Use `getAgent` to retrieve * an FDC3 API reference and use the functions that it provides instead. */ export declare function findInstances(app: AppIdentifier): Promise; /** * Check if the given context is a standard context type. * @param contextType */ export declare function isStandardContextType(contextType: ContextType): contextType is StandardContextType; /** * Check if the given intent is a standard intent. * @param intent */ export declare function isStandardIntent(intent: Intent): intent is StandardIntent; /** * Compare numeric semver version number strings (in the form `1.2.3`). * * Returns `-1` if the first argument is a lower version number than the second, * `1` if the first argument is greater than the second, 0 if the arguments are * equal and `null` if an error occurred during the comparison. * * @param a * @param b */ export declare const compareVersionNumbers: (a: string, b: string) => number | null; /** * Check if the FDC3 version in an ImplementationMetadata object is greater than * or equal to the supplied numeric semver version number string (in the form `1.2.3`). * * Returns a boolean or null if an error occurred while comparing the version numbers. * * @param metadata * @param version */ export declare const versionIsAtLeast: (metadata: ImplementationMetadata, version: string) => boolean | null;