import type { ApplyWorkspacePayload, CreateSavedWorkspaceRequest, GetCurrentWorkspaceOptions, RestoreLastSavedWorkspacePayload, RestoreLastSavedWorkspaceResult, Workspace } from '../../../../client-api-platform/src/shapes'; /** * Apply the given workspace and set it as active. * @param payload, the workspace to apply and the options to apply it with. * * @returns true if the workspace was applied, false if the user cancelled the switch or an error occurred. */ export declare function applyWorkspace(payload: ApplyWorkspacePayload): Promise; export declare function restoreLastSavedWorkspaceInternal(options?: RestoreLastSavedWorkspacePayload): Promise; /** * Set the current active workspace. */ export declare function setActiveWorkspace(workspace: Workspace): void; /** * Get the initial workspace data structure that represents the an untitled empty workspace. * @returns the current active workspace. */ export declare function getInitialWorkspace(): Promise; /** * Get a workspace data structure that represents the users current desktop. * @returns the current active workspace. */ export declare function getCurrentWorkspace(options?: GetCurrentWorkspaceOptions): Promise; export declare function getLastSavedWorkspace(): Promise; export declare const createWorkspaceInStorage: (req: CreateSavedWorkspaceRequest) => Promise; export declare const getWorkspacesInStorage: () => Promise; export declare const getWorkspaceInStorage: (id: string) => Promise; export declare const deleteWorkspaceInStorage: (id: string) => Promise; export declare const markUnsavedPagesAsSaved: () => Promise; export declare const saveWorkspace: (workspace: Workspace) => Promise; /** * Checks if a given workspace name is unique * If not, add a progressive number to it * @param initialName The initial name to test * @returns string: a unique workspace name */ export declare function getUniqueWorkspaceTitle(initialName?: string): Promise;