import { Store } from 'redux'; import { Action } from 'redux-actions'; export declare const FIN_NOT_INJECTED_MSG = "fin handler is not injected or initialized"; export declare const LIB_REDUX_DISPATCH_FIELD_NAME = "REDUX_OPENFIN_LIB_REDUX_DISPATCH_FIELD_NAME"; export declare type ActionHandlerParams = { fin: any; store: Store; next: Function; action: Action; }; export interface IFinIdentity { uuid: string; name: string; batch?: boolean; entityType?: string; parentFrame?: string; } export declare type FinWindowState = 'minimized' | 'maximized' | 'restored'; export declare type FinWindowBounds = { height: number; left: number; top: number; width: number; right: number; bottom: number; }; export interface WindowOptions { accelerator: { devtools?: boolean; reload?: boolean; reloadIgnoringCache?: boolean; zoom?: boolean; }; alwaysOnTop: boolean; autoShow: boolean; backgroundColor: string; contentNavigation: { whitelist?: string[]; }; contextMenu: boolean; cornerRounding: { height?: number; width?: number; }; customData: string; customRequestHeaders: { urlPatterns?: string[]; headers?: any[]; }; defaultCentered: boolean; defaultHeight: number; defaultLeft: number; defaultTop: number; defaultWidth: number; frame: boolean; icon: string; maxHeight: number; maximizable: boolean; maxWidth: number; minHeight: number; minimizable: boolean; minWidth: number; name: string; opacity: number; preloadScripts: { url?: string; mandatory?: boolean; }[]; resizable: boolean; resizeRegion: { bootomRightCorner?: number; size?: number; sides?: { top?: boolean; right?: boolean; bottom?: boolean; left?: boolean; }; }; saveWindowState: boolean; shadow: boolean; showTaskbarIcon: boolean; smallWindow: boolean; state: string; taskbarIconGroup: any; string: any; url: string; uuid: string; waitForPageLoad: boolean; } export declare type ErrorCallback = (error: Object) => void; declare type FinCallback = (...args: any[]) => void; declare type FinErrCallback = (reason: string | Error) => void; export interface LegacyFinWindow { name: string; constructor: (options: { name: string; }, callback?: () => void, errorCallback?: ErrorCallback) => LegacyFinWindow; addEventListener: (type: string, listener: (event?: any) => void, callback?: FinCallback, errorCallback?: FinErrCallback) => void; authenticate: (userName: string, password: string, callback?: FinCallback, errorCallback?: FinErrCallback) => void; bringToFront: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; close: (force?: boolean, callback?: FinCallback, errorCallback?: FinErrCallback) => void; disableFrame: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; enableFrame: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; focus: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; getGroup: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; getBounds: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; getState: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; getOptions: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; hide: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; joinGroup: (target: LegacyFinWindow, callback?: FinCallback, errorCallback?: FinErrCallback) => void; leaveGroup: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; maximize: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; mergeGroups: (target: LegacyFinWindow, callback?: FinCallback, errorCallback?: FinErrCallback) => void; minimize: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; moveBy: (deltaLeft: number, deltaTop: number, callback?: FinCallback, errorCallback?: FinErrCallback) => void; moveTo: (left: number, top: number, callback?: FinCallback, errorCallback?: FinErrCallback) => void; removeEventListener: (type: string, listener: (event?: any) => void, callback?: FinCallback, errorCallback?: FinErrCallback) => void; restore: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; show: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; setAsForeground: (callback?: FinCallback, errorCallback?: FinErrCallback) => void; setBounds: (left: number, top: number, width: number, height: number, callback?: FinCallback, errorCallback?: FinErrCallback) => void; updateOptions: (options: Partial, callback?: FinCallback, errorCallback?: FinErrCallback) => void; } export interface FinWindow { nativeWindow?: any; identity: IFinIdentity; addListener: (type: string, listener: (event?: any) => void, options?: any) => Promise; authenticate: (userName: string, password: string) => Promise; bringToFront: () => Promise; close: (force?: boolean) => Promise; disableUserMovement: () => Promise; enableUserMovement: () => Promise; focus: () => Promise; getGroup: () => Promise; getBounds: () => Promise; getState: () => Promise; getOptions: () => Promise; hide: () => Promise; isShowing: () => Promise; joinGroup: (target: FinWindow) => Promise; leaveGroup: () => Promise; maximize: () => Promise; mergeGroups: (target: FinWindow) => Promise; minimize: () => Promise; moveBy: (deltaLeft: number, deltaTop: number) => Promise; moveTo: (left: number, top: number) => Promise; removeListener: (type: string, listener: (event?: any) => void, options?: any) => Promise; restore: () => Promise; show: (force?: boolean) => Promise; setAsForeground: () => Promise; setBounds: (bounds: { left: number; top: number; width: number; height: number; } | Partial) => Promise; updateOptions: (options: Partial) => Promise; } export interface ISetShortCutsConfig { desktop?: boolean; startMenu?: boolean; systemStartUp?: boolean; } export interface ITrayIconHoverEvent { x: number; y: number; bounds: { height: number; width: number; x: number; y: number; }; monitorInfo: any; } export interface FinApplication { getWindow: () => Promise; addListener: (type: string, listener: (event?: any) => void, options?: any) => Promise; close: (force: boolean) => Promise; getChildWindows: () => Promise; getGroups: () => Promise; getInfo: () => Promise<{ isRunning: boolean; uuid: string; parentUuid: string; }>; getManifest: () => Promise; getParentUuid: () => Promise; getShortcuts: () => Promise<{ desktop: boolean; startMenu: boolean; systemStartup: boolean; }>; getTrayIconInfo: () => Promise<{ bounds: any; monitorInfo: any; x: number; y: number; }>; getZoomLevel: () => Promise; isRunning: () => Promise; registerUser: (userName: string, appName: string) => Promise; removeListener: (type: string, listener: (event?: any) => void, options?: any) => Promise; removeTrayIcon: () => Promise; restart: () => Promise; start: () => Promise; scheduleRestart: () => Promise; sendApplicationLog: () => Promise; setAppLogUsername: (username: string) => Promise; setShortcuts: (config: ISetShortCutsConfig) => Promise; setTrayIcon: (iconUrl: string) => Promise; setZoomLevel: (level: number) => Promise; terminate: () => Promise; } export {};