/**
 * Insight service — business logic for MCP query invocation and
 * workflow description generation.
 */
export interface McpQueryInput {
    prompt: string;
    tags?: string[];
    wait?: boolean;
    direct?: boolean;
    context?: Record<string, any>;
    userId?: string;
}
export interface McpQueryResult {
    workflow_id: string;
    status?: string;
    prompt: string;
    duration_ms?: number;
    [key: string]: unknown;
}
export interface DescribeInput {
    prompt: string;
    result_title?: string;
    result_summary?: string;
}
export interface DescribeResult {
    tool_name?: string;
    description: string;
    tags: string[];
}
export declare function startMcpQuery(input: McpQueryInput): Promise<McpQueryResult>;
export interface WorkflowBuilderInput {
    prompt: string;
    tags?: string[];
    wait?: boolean;
    feedback?: string;
    prior_yaml?: string;
    answers?: string;
    prior_questions?: string[];
    userId?: string;
}
export declare function startWorkflowBuilder(input: WorkflowBuilderInput): Promise<McpQueryResult>;
export interface WorkflowPlannerInput {
    specification: string;
    setId: string;
    wait?: boolean;
    userId?: string;
    /** When adding to an existing set, pass the current plan items so the planner avoids duplicates. */
    existingPlan?: Array<{
        name: string;
        description: string;
        namespace: string;
    }>;
    /** Sibling schemas from already-built workflows for composition context. */
    existingSchemas?: Array<{
        name: string;
        input_schema: Record<string, unknown>;
        output_schema: Record<string, unknown>;
        graph_topic: string;
    }>;
}
export declare function startWorkflowPlanner(input: WorkflowPlannerInput): Promise<McpQueryResult>;
export declare function describeWorkflow(input: DescribeInput): Promise<DescribeResult>;
