import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { CplaceApiClient } from '../api.js'; export declare const WORKFLOW_SCRIPT_TOOL_DEFINITIONS: { readonly cplace_get_workflow_script: { readonly description: "Retrieves workflow script content (state entry action or transition scripts). Supports action scripts (executed when entering state or after transition), condition scripts (control button visibility), and confirmation condition scripts (control confirmation dialog)."; readonly inputSchema: { type: z.ZodEnum<["state", "transition"]>; stateName: z.ZodOptional; previousState: z.ZodOptional; nextState: z.ZodOptional; scriptType: z.ZodOptional>; workspaceId: z.ZodString; typeInternalName: z.ZodString; attributeName: z.ZodString; }; readonly annotations: { readonly title: "Get Workflow Script"; }; }; readonly cplace_manage_workflow_script: { readonly description: "Creates, updates, or deletes workflow scripts (state or transition). Provide non-empty script to create/update. Provide null or empty string to delete the script. Scripts are written in cplacejs and have access to page context."; readonly inputSchema: { script: z.ZodNullable>; type: z.ZodEnum<["state", "transition"]>; stateName: z.ZodOptional; previousState: z.ZodOptional; nextState: z.ZodOptional; scriptType: z.ZodOptional>; workspaceId: z.ZodString; typeInternalName: z.ZodString; attributeName: z.ZodString; }; readonly annotations: { readonly title: "Manage Workflow Script"; }; }; readonly cplace_edit_workflow_script: { readonly description: "Edit a workflow script using str_replace — find an exact text match and replace it. Reads the current script, applies the replacement, and writes back. Use this instead of cplace_manage_workflow_script when making small changes to avoid reproducing the entire script."; readonly inputSchema: { old_str: z.ZodString; new_str: z.ZodString; replace_all: z.ZodDefault>; type: z.ZodEnum<["state", "transition"]>; stateName: z.ZodOptional; previousState: z.ZodOptional; nextState: z.ZodOptional; scriptType: z.ZodOptional>; workspaceId: z.ZodString; typeInternalName: z.ZodString; attributeName: z.ZodString; }; readonly annotations: { readonly title: "Edit Workflow Script"; }; }; }; export declare function registerWorkflowScriptTools(server: McpServer, client: CplaceApiClient): void; //# sourceMappingURL=workflow-scripts.d.ts.map