import { withDisconnectListener } from '../../../../common/src/utils/channels'; import { SearchAPIClientChannelClient } from '../../../../common/src/api/protocol/shapes/search'; import type { WorkspaceAPIClientChannelClient, WorkspaceChannelProvider, WorkspaceComponentChannelClient } from './shapes/workspace'; export type { WorkspaceAPIClientChannelClient, WorkspaceComponentChannelClient, WorkspaceChannelProvider }; /** The name of the channel for the centralized workspace protocol. */ export declare const channelName: "__of_workspace_protocol__"; export declare const getChannelClient: () => Promise; export declare const getClientAPIChannelClient: () => Promise; export declare const getSearchClientAPIChannelClient: () => Promise>; export declare const getHomeVpwSearchClientAPIChannelClient: () => Promise>; /** * Launches the Workspace Provider. * If the Workspace Provider is already running, does nothing. */ export declare const launchProvider: () => Promise; /** * Launches the Workspace provider if it is not running. * Then gets a Channel Client that is connected to the Workspace Provider. * @returns the Channel Client that is connected to the Workspace Provider. */ export declare const getChannelClientAndLaunchProvider: () => Promise; /** * Gets the theme data from the Platform provider, then launches the Workspace provider if it is not running, and then dispatches the theme data to the Workspace provider. * Then gets a Channel Client that is connected to the Workspace Provider. * @returns the Channel Client that is connected to the Workspace Provider. */ export declare const getChannelClientAndInitializeWorkspaceProvider: () => Promise;