import type OpenFin from '@openfin/core'; import { ComponentName } from '../../../common/src/utils/usage-register'; /** * Constants for navigation source identifiers */ export declare const NavigationSource: { readonly DOCK_SEARCH_BUTTON: "dock-search-button"; readonly DOCK_STORE_BUTTON: "dock-store-button"; readonly DOCK3_SEARCH_BUTTON: "dock3-search-button"; readonly DOCK3_STORE_BUTTON: "dock3-store-button"; readonly HOME_ESC: "home-esc"; readonly HOME_COMMAND: "home-command"; }; export type NavigationSourceType = (typeof NavigationSource)[keyof typeof NavigationSource]; export interface NavigatePayload { componentName: ComponentName; platformIdentity: OpenFin.Identity; providerId?: string; source?: NavigationSourceType | null; } export interface NavigateToOptions { providerId?: string; source?: NavigationSourceType | null; } export declare const navigateTo: (componentName: ComponentName, platformIdentity: OpenFin.Identity, options?: NavigateToOptions) => Promise; /** True when Home/Storefront was opened from classic Dock or Dock3. */ export declare const wasOpenedFromDock: (source: string | null | undefined) => boolean; /** * Show/focus the dock that opened Home or Storefront (classic vs Dock3). * @returns true if the source was a dock opener (whether or not that dock was running). */ export declare const showOpenerDockForNavigationSource: (source: string | null | undefined, platformUuid: string) => Promise;