import { type PathConstraintConfig } from "@ai-kod/common"; import { z } from "zod"; import type { ActionDescriptor, ApiClient } from "../types.js"; export declare const WorkflowsRunInput: z.ZodObject<{ workflowId: z.ZodString; inputs: z.ZodOptional>; prompt: z.ZodOptional; runMode: z.ZodOptional>; testMetadata: z.ZodOptional>; engineProfile: z.ZodOptional, z.ZodNull]>>; engineOptions: z.ZodOptional>; engineOverride: z.ZodOptional; profile: z.ZodOptional, z.ZodNull]>>; options: z.ZodOptional>; }, "strip", z.ZodTypeAny, { options?: Record | undefined; profile?: string | null | undefined; engine?: string | undefined; }, { options?: Record | undefined; profile?: string | null | undefined; engine?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { workflowId: string; prompt?: any; inputs?: Record | undefined; runMode?: "default" | "step_by_step" | undefined; engineProfile?: string | null | undefined; testMetadata?: Record | undefined; engineOptions?: Record | undefined; engineOverride?: { options?: Record | undefined; profile?: string | null | undefined; engine?: string | undefined; } | undefined; }, { workflowId: string; prompt?: any; inputs?: Record | undefined; runMode?: "default" | "step_by_step" | undefined; engineProfile?: string | null | undefined; testMetadata?: Record | undefined; engineOptions?: Record | undefined; engineOverride?: { options?: Record | undefined; profile?: string | null | undefined; engine?: string | undefined; } | undefined; }>; export type WorkflowsRunInput = z.infer; export interface WorkflowsRunOutput { success?: boolean; taskId?: string; status?: string; raw?: unknown; } export interface WorkflowInputDefinition { path: string; type?: string; required: boolean; defaultValue?: unknown; description?: string; format?: string; pathConstraint?: PathConstraintConfig; } export interface WorkflowInputIssue { path: string; message: string; keyword?: string; expected?: unknown; received?: unknown; } export interface WorkflowInputSchemaDescriptor { available: boolean; schemaId?: string; schemaVersion?: number; jsonSchema: Record; template: Record; required: string[]; definitions: WorkflowInputDefinition[]; files: { schema: string; template: string; }; } export interface WorkflowInputValidationResult { valid: boolean; issues: WorkflowInputIssue[]; } export declare function fetchWorkflowInputSchema(client: ApiClient, workflowId: string): Promise; export declare function validateWorkflowInputs(descriptor: WorkflowInputSchemaDescriptor, data: unknown): WorkflowInputValidationResult; export declare function formatWorkflowInputIssues(issues: WorkflowInputIssue[]): string[]; export declare const workflowsRunAction: ActionDescriptor;