import { Events } from './internal'; import { Targeted, Transport } from './EventRouter'; /** * Data returned by the service when registering a platform. */ export interface NotificationsRegistration { /** * Version of the client API. */ clientAPIVersion: string; /** * Version of the notification service that is running. * A response of 'unknown' indicates that an older version of the service is running that does not support returning the service version. */ notificationsVersion: string; } /** * Options for using privately hosted notification service. */ export type CustomManifestOptions = { /** * A custom manifest location to start the notification service from. * The UUID cannot be OpenFin hosted Notification Service UUID, 'notifications-service'. */ manifestUrl: string; /** * The UUID of the provided custom notifications service manifest. * This value **MUST** match the UUID of the manifest provided in `manifestUrl`. */ manifestUuid: string; }; /** * Options for registering the notification service. * @property customManifest - Options for using privately hosted notification service. * @property toggleNotificationCenterHotkey - The hotkey combination to toggle the notification center. */ export type RegistrationOptions = { customManifest?: CustomManifestOptions; }; export declare class ChannelClientHandlers { static handleDefaultAction: () => boolean; static handleEventAction: (event: Targeted>) => void; static handleWarnAction: (warning: string) => Promise; static handleDisconnection: () => Promise; } /** * Launches Notifications and connects to its provider. * @returns A promise which resolves with object containing version of client API and version of Notifications provider running. See {@link NotificationsRegistration} for more details. */ export declare const register: (options?: RegistrationOptions) => Promise;