import type OpenFin from '@openfin/core'; import { ResponseModalConfig } from '../../../common/src/utils/menu-config'; import { IntentResolverResponse, ShowIntentsResolverModalRequestInternal } from '../../../client-api-platform/src/shapes'; import { ModalResponseEvent } from './menu-window-provider'; export type DeleteWorkspaceMenuPayload = { workspaceTitle: string; windowIdentity?: OpenFin.Identity; }; export declare const restoreChangesMenu: (windowIdentity: OpenFin.Identity) => Promise; export declare const deletePageMenu: (windowIdentity: OpenFin.Identity, pageTitle: string) => Promise; /** * * @param targetWindowIdentity Parent or Current OpenFin Window Identity * @param workspaceTitle The platform label that was selected to be switched to * @param shouldCenterOnMonitor Boolean - determines if modal window is centered on the monitor. * @returns Boolean - Affirmative or Negative response from user */ export declare const showSwitchWorkspaceModal: (targetWindowIdentity: OpenFin.Identity | undefined, workspaceTitle: string, shouldCenterOnMonitor?: boolean) => Promise; export declare const showDeleteWorkspaceModal: ({ workspaceTitle, windowIdentity }: DeleteWorkspaceMenuPayload) => Promise; /** * * @param windowIdentity Parent or Current OpenFin Window Identity * @param workspaceTitle The platform label * @param shouldCenterOnMonitor Boolean - determines if modal window is centered on the monitor. * @returns Boolean - Affirmative or Negative response from user */ export declare const showPlatformQuitModal: (windowIdentity: OpenFin.Identity, workspaceTitle: string, shouldCenterOnMonitor?: boolean) => Promise; export declare const showQuitBrowserModal: (windowIdentity: OpenFin.Identity) => Promise; export declare const showRestoreChangesModal: (windowIdentity: OpenFin.Identity) => Promise; export declare const getOverwriteWorkspaceMenu: (workspaceTitle: string) => Promise; export declare const showDeletePageModal: (windowIdentity: OpenFin.Identity, pageTitle: string) => Promise; export declare const showUpdateVersionModal: ({ identity, title, description }: { identity: OpenFin.Identity; title: string; description: string; }) => Promise; export declare const showApplyAndPublishModal: (identity: OpenFin.Identity) => Promise; export declare const showPublishOnCloseModal: (windowIdentity: OpenFin.Identity) => Promise<{ data: ModalResponseEvent["data"]; }>; /** * Shows the intents resolver modal and returns the user's selection * @param request - The request containing modal configuration * @returns Promise resolving to the user's intent resolution response */ export declare const showIntentsResolverModal: (request: ShowIntentsResolverModalRequestInternal) => Promise;