import { PageType_DUPE_1, PaneRemWindowTree, RemId, RemIdWindowTree } from '../interfaces'; import { InternalCallMethod, NamespaceBase } from './base'; import { RemObject } from './rem'; /** * # Window Namespace * * The API Window namespace. */ export declare class WindowNamespace extends NamespaceBase { /** @hidden */ constructor(_call: InternalCallMethod); /** * Steal keys which are typically intercepted by the editor, such as * the tab and enter keys. * * Stolen keys will automatically be released when the floating widget closes. */ stealKeys: (floatingWidgetId: string, keys: string[]) => Promise; /** * Release keys stolen with the `stealKeys` method. */ releaseKeys: (floatingWidgetId: string, keys: string[]) => Promise; /** * Open a floating widget in a popup window at a certain position. */ openFloatingWidget: (fileName: string, position: { top?: number; left?: number; right?: number; bottom?: number; }, classContainer?: string, closeWhenClickOutside?: boolean) => Promise; /** * Close a floating widget. */ closeFloatingWidget: (floatingWidgetId: string) => Promise; /** * Check if a floating widget is open. */ isFloatingWidgetOpen: (floatingWidgetId: string) => Promise; /** * Update the position of an existing floating widget. */ setFloatingWidgetPosition: (floatingWidgetId: string, position: { top?: number; left?: number; right?: number; bottom?: number; }) => Promise; /** * Close all open floating widgets. */ closeAllFloatingWidgets: () => Promise; /** * Get an object describing the current pane layout. */ getCurrentWindowTree: () => Promise; /** * Set the current pane layout. */ setRemWindowTree: (tree: RemIdWindowTree) => Promise; /** * Get the last focused pane. */ getLastFocusedPane: () => Promise; /** * Set the current window tree using a string. */ setCurrentWindowTreeFromString: (treeString: string) => Promise; /** * Get the paneIds of all currently open panes. */ getOpenPaneIds: () => Promise; /** * Get the currently focused paneId. */ getFocusedPaneId: () => Promise; /** * Set the currently focused paneId. */ setFocusedPaneId: (paneId: string) => Promise; /** * Get the current URL in the address bar. */ getURL: () => Promise; /** * Set the URL in the address bar. */ setURL: (url: string) => Promise; /** * Open a Rem in the current focused pane. */ openRem: (rem: RemObject) => Promise; /** * Get the RemIds from all currently open panes. */ getOpenPaneRemIds: () => Promise; /** * Get RemId for a currently open pane. */ getOpenPaneRemId: (paneId: string | undefined) => Promise; /** * Open a widget in a pane. */ openWidgetInPane: (fileName: string, contextData?: Record) => Promise; /** * Open a widget in a pane. */ openWidgetInRightSidebar: (fileName: string, contextData?: Record) => Promise; /** * Check if the user is on a certain page. */ isOnPage: (page: PageType_DUPE_1) => Promise; }