import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { CplaceApiClient } from '../api.js'; export declare const EMBEDDED_WIDGET_LAYOUT_TOOL_DEFINITIONS: { readonly cplace_add_widget_to_embedded_layout: { readonly description: "Add a single child widget into a container widget's embedded layout (e.g. a \"Grouped Attributes\" widget: cf.cplace.platform.attributesGroup or cf.cplace.platform.connectedAttributesGroup), in place, and return the new widget's server-assigned id.\n\nUse this to add ONE embedded child without rebuilding the whole container. Unlike cplace_edit_layout (which regenerates EVERY widget id), this preserves the ids of all other widgets.\n\nWorks on both page and type layouts (set via context). Placement is index-based: rowIndex/columnIndex/widgetIndex. There is no before/after-widget placement. A non-existing rowIndex appends a new full-width row; a non-existing columnIndex adds to the last existing column.\n\nDISCOVERY: find the container widget id with cplace_get_layout_widget_details; verify the child widgetType and its config attribute names with cplace_get_widget_definition.\n\nReturns newWidgetId — use it to configure or cross-reference the widget you just added."; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly containerWidgetId: z.ZodString; readonly layoutAttributeName: z.ZodDefault>; readonly widgetType: z.ZodString; readonly rowIndex: z.ZodEffects; readonly columnIndex: z.ZodEffects; readonly widgetIndex: z.ZodOptional>; readonly configuration: z.ZodOptional>; }; readonly annotations: { readonly title: "Add Widget to Embedded Layout"; }; }; readonly cplace_remove_widget_from_embedded_layout: { readonly description: "Remove a single child widget from a container widget's embedded layout (e.g. a \"Grouped Attributes\" widget: cf.cplace.platform.attributesGroup or cf.cplace.platform.connectedAttributesGroup), by widget id, in place.\n\nUse this to delete ONE embedded child without rebuilding the whole container. Unlike cplace_edit_layout (which round-trips through layout.define and regenerates EVERY widget id), this preserves the ids of all other widgets — the safe choice when embedded widgets are cross-referenced.\n\nWorks on both page and type layouts (set via context).\n\nDISCOVERY: find the container widget id and its embedded children with cplace_get_layout_widget_details. layoutAttributeName defaults to the standard grouped-attributes key; look it up with cplace_get_widget_definition only for other container kinds.\n\nIf the widget id is not present in the container, the call fails with a clear error (it does NOT silently succeed)."; readonly inputSchema: { readonly context: z.ZodEffects; pageUID: z.ZodString; }, "strip", z.ZodTypeAny, { type: "page"; pageUID: string; }, { type: "page"; pageUID: string; }>, z.ZodObject<{ type: z.ZodLiteral<"type">; workspaceId: z.ZodString; typeInternalName: z.ZodString; alternativeLayoutName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }>]>, { type: "page"; pageUID: string; } | { type: "type"; workspaceId: string; typeInternalName: string; alternativeLayoutName?: string | undefined; }, unknown>; readonly containerWidgetId: z.ZodString; readonly layoutAttributeName: z.ZodDefault>; readonly widgetId: z.ZodString; }; readonly annotations: { readonly title: "Remove Widget from Embedded Layout"; }; }; }; export declare function registerEmbeddedWidgetLayoutTools(server: McpServer, client: CplaceApiClient): void; //# sourceMappingURL=embedded-widget-layout.d.ts.map