import type OpenFin from '@openfin/core'; import { ResponseModalContent } from '../../../common/src/utils/menu-config'; import type { OptionalExceptFor } from '../../../common/src/utils/types'; type MenuEventTypes = { 'response': [ModalResponseEvent]; 'ready': [OpenFin.Identity]; 'update': [string, Partial, string]; 'modal-opened': [name: string, parentName: string]; 'modal-closed': [string]; 'search-menu-opening': [string]; 'search-menu-closed': [string]; }; export interface ModalResponseEvent { data: { actionName: string; data?: { textInputValue?: string; }; }; name: string; } export declare const menuEvents: { emit: (event: EventKey, ...payload: MenuEventTypes[EventKey]) => Promise; addListener: (event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void; addListenerWithUUID: (uuid: string) => (event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void; removeListener: (event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void; once: (event: EventKey, listener: (...payload: MenuEventTypes[EventKey]) => void) => void; }; export declare const emitMenuResponse: (data: ModalResponseEvent["data"]) => Promise; type WindowOptionsWithBounds = OptionalExceptFor & { top: number; left: number; }; type ModalWindowOptions = WindowOptionsWithBounds & { preventBlur?: boolean; closeOnResponse?: boolean; }; export declare function createChildWindow(opts: OptionalExceptFor & { preventBlur?: boolean; }, route?: string, bounds?: Partial): Promise; export interface ShowChildOptions { options: ModalWindowOptions; parameters?: URLSearchParams; } export interface ResponseModalOptions { options: ModalWindowOptions; content: ResponseModalContent; parameters?: URLSearchParams; } export declare function createMenuPosition(windowOptions: OptionalExceptFor): Promise<{ top: number; left: number; }>; export declare function showChildWindow({ options, parameters }: ShowChildOptions): Promise; export declare const waitForModalResponse: ({ options, content, parameters }: ResponseModalOptions) => Promise<{ data: ModalResponseEvent["data"]; }>; export {};