import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { CplaceApiClient } from '../api.js'; interface StepConfigSpec { configType: string; attributes: Array<{ attr: string; out: string; }>; } export declare const STEP_CONFIG_MAP: Record; export declare function fetchStepConfig(client: CplaceApiClient, stepPage: any): Promise | null>; export declare const WIZARD_TOOL_DEFINITIONS: { readonly cplace_manage_wizard: { readonly description: "Create or update a Forms Wizard configuration. Wizards define multi-step guided workflows for data entry and process automation. Use 'create' to define a new wizard with display names, target workspaces, and behavior options. Use 'update' to modify an existing wizard's properties."; readonly inputSchema: { readonly operation: z.ZodEnum<["create", "update"]>; readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; readonly localizedDisplayNames: z.ZodOptional>; readonly description: z.ZodOptional; readonly targetWorkspaces: z.ZodOptional>; readonly triggeringTypes: z.ZodOptional>; readonly autoPersist: z.ZodOptional; readonly refreshAfterFinish: z.ZodOptional; readonly showProgressBar: z.ZodOptional; readonly showPercent: z.ZodOptional; }; readonly annotations: { readonly title: "Manage Wizard"; }; }; readonly cplace_manage_wizard_step: { readonly description: "Create or update a wizard step. Steps are the individual screens in a wizard flow. Each step has a type (form, info, table, decision, script) that determines its behavior and configuration options. Step type is immutable after creation."; readonly inputSchema: { readonly operation: z.ZodEnum<["create", "update"]>; readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; readonly identifier: z.ZodString; readonly stepType: z.ZodOptional>; readonly title: z.ZodOptional>; readonly description: z.ZodOptional; readonly targetTypes: z.ZodOptional>; readonly formAttributes: z.ZodOptional>>; }; readonly annotations: { readonly title: "Manage Wizard Step"; }; }; readonly cplace_delete_wizard: { readonly description: "Delete a wizard and optionally all its child steps. By default, cascade-deletes all steps. Set cascadeDeleteSteps to false to delete only the wizard page."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; readonly cascadeDeleteSteps: z.ZodDefault>; }; readonly annotations: { readonly title: "Delete Wizard"; }; }; readonly cplace_delete_wizard_step: { readonly description: "Delete a single wizard step by its identifier. The step is removed from the wizard; any flow references to this step should be updated separately."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; readonly identifier: z.ZodString; }; readonly annotations: { readonly title: "Delete Wizard Step"; }; }; readonly cplace_configure_wizard_flow: { readonly description: "Configure the complete step flow graph for a wizard in a single call. Sets the start step, final steps, optional summary/cleanup steps, and all step-to-step connections. All referenced step identifiers must already exist."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; readonly startStep: z.ZodString; readonly finalSteps: z.ZodArray; readonly summaryStep: z.ZodOptional; readonly cleanupScriptStep: z.ZodOptional; readonly stepConnections: z.ZodArray; skipTo: z.ZodOptional; skipToFinish: z.ZodOptional; skipToLabel: z.ZodOptional>; }, "strip", z.ZodTypeAny, { from: string; nextSteps: string[]; skipTo?: string | undefined; skipToFinish?: boolean | undefined; skipToLabel?: Record | undefined; }, { from: string; nextSteps: string[]; skipTo?: string | undefined; skipToFinish?: boolean | undefined; skipToLabel?: Record | undefined; }>, "many">; }; readonly annotations: { readonly title: "Configure Wizard Flow"; }; }; readonly cplace_activate_wizard: { readonly description: "Activate or deactivate a wizard. On activation, runs the server-side analysis check (validates start step, final steps, step reachability, etc.). If activation fails, automatically runs analysis and returns detailed error information."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; readonly activationState: z.ZodOptional>; }; readonly annotations: { readonly title: "Activate Wizard"; }; }; readonly cplace_get_wizard_details: { readonly description: "Get detailed information about a wizard including all its steps, flow configuration, and activation state. Returns structured wizard-domain data with step identifiers, types, and connections."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; }; readonly annotations: { readonly title: "Get Wizard Details"; }; }; readonly cplace_list_wizards: { readonly description: "List all wizards in a workspace. Returns wizard names, display names, and basic configuration summary."; readonly inputSchema: { readonly workspaceId: z.ZodString; }; readonly annotations: { readonly title: "List Wizards"; }; }; readonly cplace_analyze_wizard: { readonly description: "Run the wizard analysis checks without changing activation state. Returns results from all wizard-level analyzers (start step, step reachability, final steps, leaf nodes, skip configuration, external access) plus per-step type-specific analysis. Use this to validate wizard configuration before activation or to debug why activation fails."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; }; readonly annotations: { readonly title: "Analyze Wizard Configuration"; }; }; readonly cplace_get_wizard_activation_state: { readonly description: "Get the current activation state of a wizard without changing it. Returns whether the wizard is ACTIVE or INACTIVE, and whether the state can be changed. Use this for pre-flight checks before activation, or to monitor wizard states across workspaces."; readonly inputSchema: { readonly workspaceId: z.ZodString; readonly wizardName: z.ZodString; }; readonly annotations: { readonly title: "Get Wizard Activation State"; }; }; }; export declare function registerWizardTools(server: McpServer, client: CplaceApiClient): void; export {}; //# sourceMappingURL=wizards.d.ts.map