import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { CplaceApiClient } from '../api.js'; import type { WidgetSpecifications } from '../plugins/widget-specifications.js'; export declare const WIDGET_TOOL_DEFINITIONS: { readonly cplace_list_widget_definitions: { readonly description: "Get a list of all available widget definitions in the system that support the specified embedding context, with their basic metadata including names, descriptions, and apps.\n\n⚠️ APP DEPENDENCY CHECK: Each widget includes a 'requiredApp' field:\n- null: Widget is always available (platform widget, no app dependency)\n- \"cf.cplace.someApp\": Widget requires this app to be installed in the workspace\n\nBEFORE SELECTING A WIDGET for a specific workspace, verify the required app is installed using cplace_list_workspace_apps. Widgets with uninstalled requiredApp cannot be added to layouts."; readonly inputSchema: { readonly embeddingContext: z.ZodDefault>; readonly tags: z.ZodOptional>; }; readonly annotations: { readonly title: "List Widget Definitions"; }; }; readonly cplace_get_widget_definition: { readonly description: "Get widget definition as a markdown Config Reference Card optimized for writing layout.define() scripts.\n\nALWAYS includes:\n- Widget kind as heading\n- Summary paragraph\n\nOPTIONAL depth control:\n- includeOverview: true → adds conceptual documentation (## Overview)\n- includeDetails: true → adds implementation hints (## Implementation) and config attributes grouped by required/optional (## Config Attributes)\n\nCOMMON USAGE:\n- Quick check: just widgetKinds (minimal response)\n- Understanding: includeOverview: true\n- Implementation: includeDetails: true\n- Full details: both flags true\n\nWidget kinds: 'cf.platform.connectedBarChart', 'cf.platform.wiki', etc.\nMultiple widgets in one call are separated by --- horizontal rules."; readonly inputSchema: { readonly widgetKinds: z.ZodArray; readonly includeOverview: z.ZodEffects, boolean, unknown>; readonly includeDetails: z.ZodEffects, boolean, unknown>; }; readonly annotations: { readonly title: "Get Widget Definition"; }; }; }; export declare function registerWidgetTools(server: McpServer, client: CplaceApiClient, widgetSpecs: WidgetSpecifications): void; //# sourceMappingURL=widgets.d.ts.map