import { WebPluginMount } from "@agimon-ai/po-core/web"; import { Store } from "@tanstack/store"; //#region src/web/lib/pluginCompositions.d.ts export type WebPluginCompositionPhase = 'idle' | 'loading' | 'ready' | 'error'; export interface WebPluginMountState { phase: WebPluginCompositionPhase; error?: string; } /** The server's launch-context template choice; it survives navigation and reconnects. */ export interface WebTemplateDecision { id?: string; /** `web.backdrop`: `none` or `/`; unset means Po's default background. */ backdrop?: string; mount: Extract; } export interface WebPluginCompositionState extends WebPluginMountState { mounts: Record; template?: WebTemplateDecision; templateError?: string; } /** Readiness belongs to the verified host, not a mounted dashboard. */ export declare const webPluginCompositionStore: Store; /** The client binds its verified composition loader once at bootstrap. */ export declare function bindWebPluginCompositions(actions: { refresh: () => Promise; retry: () => Promise; focusWorkspace: (workspaceId: string | null) => Promise; reloadTemplate: () => Promise; }): void; export declare function refreshWebPluginCompositions(): Promise; export declare function retryWebPluginCompositions(): Promise; export declare function focusWorkspaceWebPlugins(workspaceId: string | null): Promise; /** Only explicit Settings actions re-read the server's launch-context choice. */ export declare function reloadWebTemplateDecision(): Promise; export declare function webPluginMountState(mount: WebPluginMount, state?: WebPluginCompositionState): WebPluginMountState; //#endregion //# sourceMappingURL=pluginCompositions.d.mts.map