UNPKG

claude-gemini-multimodal-bridge

Version:

Enterprise-grade AI integration bridge connecting Claude Code, Gemini CLI, and Google AI Studio with intelligent routing and advanced multimodal processing capabilities

1,223 lines 121 kB
import { z } from 'zod'; export declare const LayerTypeSchema: z.ZodEnum<["claude", "gemini", "aistudio", "workflow", "tool", "orchestrator"]>; export type LayerType = z.infer<typeof LayerTypeSchema>; export declare const TargetLayerSchema: z.ZodEnum<["gemini", "aistudio", "adaptive"]>; export type TargetLayer = z.infer<typeof TargetLayerSchema>; export declare const ExecutionModeSchema: z.ZodEnum<["sequential", "parallel", "adaptive"]>; export type ExecutionMode = z.infer<typeof ExecutionModeSchema>; export declare const QualityLevelSchema: z.ZodEnum<["fast", "balanced", "quality"]>; export type QualityLevel = z.infer<typeof QualityLevelSchema>; export declare const WorkflowTypeSchema: z.ZodEnum<["analysis", "conversion", "extraction", "generation"]>; export type WorkflowType = z.infer<typeof WorkflowTypeSchema>; export type AnalysisType = 'content' | 'comparative' | 'thematic' | 'sentiment' | 'trend' | 'statistical' | 'comprehensive' | 'contextual' | 'summarization' | 'extraction'; export declare const FileTypeSchema: z.ZodEnum<["image", "audio", "pdf", "document", "text", "video"]>; export type FileType = z.infer<typeof FileTypeSchema>; export declare const FileReferenceSchema: z.ZodObject<{ path: z.ZodString; type: z.ZodEnum<["image", "audio", "pdf", "document", "text", "video"]>; size: z.ZodOptional<z.ZodNumber>; encoding: z.ZodOptional<z.ZodString>; content: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { path: string; type: "image" | "audio" | "pdf" | "document" | "text" | "video"; content?: string | undefined; size?: number | undefined; encoding?: string | undefined; }, { path: string; type: "image" | "audio" | "pdf" | "document" | "text" | "video"; content?: string | undefined; size?: number | undefined; encoding?: string | undefined; }>; export type FileReference = z.infer<typeof FileReferenceSchema>; export declare const ProcessingOptionsSchema: z.ZodObject<{ layer_priority: z.ZodOptional<z.ZodEnum<["claude", "gemini", "aistudio", "adaptive"]>>; execution_mode: z.ZodOptional<z.ZodEnum<["sequential", "parallel", "adaptive"]>>; output_format: z.ZodOptional<z.ZodString>; quality_level: z.ZodOptional<z.ZodEnum<["fast", "balanced", "quality"]>>; temperature: z.ZodOptional<z.ZodNumber>; max_tokens: z.ZodOptional<z.ZodNumber>; timeout: z.ZodOptional<z.ZodNumber>; use_cache: z.ZodOptional<z.ZodBoolean>; depth: z.ZodOptional<z.ZodEnum<["shallow", "medium", "deep"]>>; extractMetadata: z.ZodOptional<z.ZodBoolean>; structured: z.ZodOptional<z.ZodBoolean>; requiresGrounding: z.ZodOptional<z.ZodBoolean>; parallelProcessing: z.ZodOptional<z.ZodBoolean>; batchMode: z.ZodOptional<z.ZodBoolean>; detailed: z.ZodOptional<z.ZodBoolean>; extractionType: z.ZodOptional<z.ZodString>; outputFormat: z.ZodOptional<z.ZodString>; preserveQuality: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }>; export type ProcessingOptions = z.infer<typeof ProcessingOptionsSchema>; export declare const MultimodalProcessArgsSchema: z.ZodObject<{ prompt: z.ZodString; workingDirectory: z.ZodOptional<z.ZodString>; files: z.ZodArray<z.ZodObject<{ path: z.ZodString; type: z.ZodEnum<["image", "audio", "pdf", "document", "text", "video"]>; size: z.ZodOptional<z.ZodNumber>; encoding: z.ZodOptional<z.ZodString>; content: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { path: string; type: "image" | "audio" | "pdf" | "document" | "text" | "video"; content?: string | undefined; size?: number | undefined; encoding?: string | undefined; }, { path: string; type: "image" | "audio" | "pdf" | "document" | "text" | "video"; content?: string | undefined; size?: number | undefined; encoding?: string | undefined; }>, "many">; workflow: z.ZodEnum<["analysis", "conversion", "extraction", "generation"]>; options: z.ZodOptional<z.ZodObject<{ layer_priority: z.ZodOptional<z.ZodEnum<["claude", "gemini", "aistudio", "adaptive"]>>; execution_mode: z.ZodOptional<z.ZodEnum<["sequential", "parallel", "adaptive"]>>; output_format: z.ZodOptional<z.ZodString>; quality_level: z.ZodOptional<z.ZodEnum<["fast", "balanced", "quality"]>>; temperature: z.ZodOptional<z.ZodNumber>; max_tokens: z.ZodOptional<z.ZodNumber>; timeout: z.ZodOptional<z.ZodNumber>; use_cache: z.ZodOptional<z.ZodBoolean>; depth: z.ZodOptional<z.ZodEnum<["shallow", "medium", "deep"]>>; extractMetadata: z.ZodOptional<z.ZodBoolean>; structured: z.ZodOptional<z.ZodBoolean>; requiresGrounding: z.ZodOptional<z.ZodBoolean>; parallelProcessing: z.ZodOptional<z.ZodBoolean>; batchMode: z.ZodOptional<z.ZodBoolean>; detailed: z.ZodOptional<z.ZodBoolean>; extractionType: z.ZodOptional<z.ZodString>; outputFormat: z.ZodOptional<z.ZodString>; preserveQuality: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { workflow: "analysis" | "conversion" | "extraction" | "generation"; prompt: string; files: { path: string; type: "image" | "audio" | "pdf" | "document" | "text" | "video"; content?: string | undefined; size?: number | undefined; encoding?: string | undefined; }[]; options?: { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; } | undefined; workingDirectory?: string | undefined; }, { workflow: "analysis" | "conversion" | "extraction" | "generation"; prompt: string; files: { path: string; type: "image" | "audio" | "pdf" | "document" | "text" | "video"; content?: string | undefined; size?: number | undefined; encoding?: string | undefined; }[]; options?: { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; } | undefined; workingDirectory?: string | undefined; }>; export type MultimodalProcessArgs = z.infer<typeof MultimodalProcessArgsSchema>; export declare const DocumentAnalysisArgsSchema: z.ZodObject<{ documents: z.ZodArray<z.ZodString, "many">; workingDirectory: z.ZodOptional<z.ZodString>; analysis_type: z.ZodEnum<["summary", "comparison", "extraction", "translation"]>; output_requirements: z.ZodOptional<z.ZodString>; options: z.ZodOptional<z.ZodObject<{ layer_priority: z.ZodOptional<z.ZodEnum<["claude", "gemini", "aistudio", "adaptive"]>>; execution_mode: z.ZodOptional<z.ZodEnum<["sequential", "parallel", "adaptive"]>>; output_format: z.ZodOptional<z.ZodString>; quality_level: z.ZodOptional<z.ZodEnum<["fast", "balanced", "quality"]>>; temperature: z.ZodOptional<z.ZodNumber>; max_tokens: z.ZodOptional<z.ZodNumber>; timeout: z.ZodOptional<z.ZodNumber>; use_cache: z.ZodOptional<z.ZodBoolean>; depth: z.ZodOptional<z.ZodEnum<["shallow", "medium", "deep"]>>; extractMetadata: z.ZodOptional<z.ZodBoolean>; structured: z.ZodOptional<z.ZodBoolean>; requiresGrounding: z.ZodOptional<z.ZodBoolean>; parallelProcessing: z.ZodOptional<z.ZodBoolean>; batchMode: z.ZodOptional<z.ZodBoolean>; detailed: z.ZodOptional<z.ZodBoolean>; extractionType: z.ZodOptional<z.ZodString>; outputFormat: z.ZodOptional<z.ZodString>; preserveQuality: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }>>; analysisType: z.ZodOptional<z.ZodEnum<["summary", "comparison", "extraction", "translation"]>>; extractImages: z.ZodOptional<z.ZodBoolean>; extractStructuredData: z.ZodOptional<z.ZodBoolean>; requiresGrounding: z.ZodOptional<z.ZodBoolean>; depth: z.ZodOptional<z.ZodEnum<["shallow", "medium", "deep"]>>; summaryLength: z.ZodOptional<z.ZodString>; dataTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; comparisonType: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { documents: string[]; analysis_type: "extraction" | "summary" | "comparison" | "translation"; options?: { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; } | undefined; depth?: "shallow" | "medium" | "deep" | undefined; requiresGrounding?: boolean | undefined; workingDirectory?: string | undefined; output_requirements?: string | undefined; analysisType?: "extraction" | "summary" | "comparison" | "translation" | undefined; extractImages?: boolean | undefined; extractStructuredData?: boolean | undefined; summaryLength?: string | undefined; dataTypes?: string[] | undefined; comparisonType?: string | undefined; }, { documents: string[]; analysis_type: "extraction" | "summary" | "comparison" | "translation"; options?: { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; } | undefined; depth?: "shallow" | "medium" | "deep" | undefined; requiresGrounding?: boolean | undefined; workingDirectory?: string | undefined; output_requirements?: string | undefined; analysisType?: "extraction" | "summary" | "comparison" | "translation" | undefined; extractImages?: boolean | undefined; extractStructuredData?: boolean | undefined; summaryLength?: string | undefined; dataTypes?: string[] | undefined; comparisonType?: string | undefined; }>; export type DocumentAnalysisArgs = z.infer<typeof DocumentAnalysisArgsSchema>; export declare const DocumentAnalysisResultSchema: z.ZodObject<{ success: z.ZodBoolean; analysis_type: z.ZodEnum<["summary", "comparison", "extraction", "translation"]>; content: z.ZodString; documents_processed: z.ZodArray<z.ZodString, "many">; processing_time: z.ZodNumber; insights: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; metadata: z.ZodObject<{ total_duration: z.ZodNumber; tokens_used: z.ZodOptional<z.ZodNumber>; cost: z.ZodOptional<z.ZodNumber>; quality_score: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { total_duration: number; tokens_used?: number | undefined; cost?: number | undefined; quality_score?: number | undefined; }, { total_duration: number; tokens_used?: number | undefined; cost?: number | undefined; quality_score?: number | undefined; }>; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { content: string; analysis_type: "extraction" | "summary" | "comparison" | "translation"; success: boolean; documents_processed: string[]; processing_time: number; metadata: { total_duration: number; tokens_used?: number | undefined; cost?: number | undefined; quality_score?: number | undefined; }; insights?: string[] | undefined; error?: string | undefined; }, { content: string; analysis_type: "extraction" | "summary" | "comparison" | "translation"; success: boolean; documents_processed: string[]; processing_time: number; metadata: { total_duration: number; tokens_used?: number | undefined; cost?: number | undefined; quality_score?: number | undefined; }; insights?: string[] | undefined; error?: string | undefined; }>; export type DocumentAnalysisResult = z.infer<typeof DocumentAnalysisResultSchema>; export declare const WorkflowStepSchema: z.ZodObject<{ id: z.ZodString; layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; action: z.ZodString; input: z.ZodRecord<z.ZodString, z.ZodAny>; dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; timeout: z.ZodOptional<z.ZodNumber>; retries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }>; export type WorkflowStep = z.infer<typeof WorkflowStepSchema>; export declare const ExecutionPlanSchema: z.ZodObject<{ steps: z.ZodArray<z.ZodObject<{ id: z.ZodString; layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; action: z.ZodString; input: z.ZodRecord<z.ZodString, z.ZodAny>; dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; timeout: z.ZodOptional<z.ZodNumber>; retries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }>, "many">; dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; fallbackStrategies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ replace: z.ZodString; with: z.ZodObject<{ id: z.ZodString; layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; action: z.ZodString; input: z.ZodRecord<z.ZodString, z.ZodAny>; dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; timeout: z.ZodOptional<z.ZodNumber>; retries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }>; }, "strip", z.ZodTypeAny, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }>>>; timeout: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { steps: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }[]; timeout?: number | undefined; dependencies?: Record<string, string[]> | undefined; fallbackStrategies?: Record<string, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }> | undefined; }, { steps: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }[]; timeout?: number | undefined; dependencies?: Record<string, string[]> | undefined; fallbackStrategies?: Record<string, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }> | undefined; }>; export type ExecutionPlan = z.infer<typeof ExecutionPlanSchema>; export declare const WorkflowDefinitionArgsSchema: z.ZodObject<{ workflow_definition: z.ZodObject<{ steps: z.ZodArray<z.ZodObject<{ id: z.ZodString; layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; action: z.ZodString; input: z.ZodRecord<z.ZodString, z.ZodAny>; dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; timeout: z.ZodOptional<z.ZodNumber>; retries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }>, "many">; dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; fallbackStrategies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ replace: z.ZodString; with: z.ZodObject<{ id: z.ZodString; layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; action: z.ZodString; input: z.ZodRecord<z.ZodString, z.ZodAny>; dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; timeout: z.ZodOptional<z.ZodNumber>; retries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }, { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }>; }, "strip", z.ZodTypeAny, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }>>>; timeout: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { steps: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }[]; timeout?: number | undefined; dependencies?: Record<string, string[]> | undefined; fallbackStrategies?: Record<string, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }> | undefined; }, { steps: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }[]; timeout?: number | undefined; dependencies?: Record<string, string[]> | undefined; fallbackStrategies?: Record<string, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }> | undefined; }>; input_data: z.ZodRecord<z.ZodString, z.ZodAny>; execution_mode: z.ZodOptional<z.ZodEnum<["sequential", "parallel", "adaptive"]>>; options: z.ZodOptional<z.ZodObject<{ layer_priority: z.ZodOptional<z.ZodEnum<["claude", "gemini", "aistudio", "adaptive"]>>; execution_mode: z.ZodOptional<z.ZodEnum<["sequential", "parallel", "adaptive"]>>; output_format: z.ZodOptional<z.ZodString>; quality_level: z.ZodOptional<z.ZodEnum<["fast", "balanced", "quality"]>>; temperature: z.ZodOptional<z.ZodNumber>; max_tokens: z.ZodOptional<z.ZodNumber>; timeout: z.ZodOptional<z.ZodNumber>; use_cache: z.ZodOptional<z.ZodBoolean>; depth: z.ZodOptional<z.ZodEnum<["shallow", "medium", "deep"]>>; extractMetadata: z.ZodOptional<z.ZodBoolean>; structured: z.ZodOptional<z.ZodBoolean>; requiresGrounding: z.ZodOptional<z.ZodBoolean>; parallelProcessing: z.ZodOptional<z.ZodBoolean>; batchMode: z.ZodOptional<z.ZodBoolean>; detailed: z.ZodOptional<z.ZodBoolean>; extractionType: z.ZodOptional<z.ZodString>; outputFormat: z.ZodOptional<z.ZodString>; preserveQuality: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }, { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { workflow_definition: { steps: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }[]; timeout?: number | undefined; dependencies?: Record<string, string[]> | undefined; fallbackStrategies?: Record<string, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }> | undefined; }; input_data: Record<string, any>; options?: { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; } | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; }, { workflow_definition: { steps: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }[]; timeout?: number | undefined; dependencies?: Record<string, string[]> | undefined; fallbackStrategies?: Record<string, { replace: string; with: { id: string; layer: "claude" | "gemini" | "aistudio"; action: string; input: Record<string, any>; timeout?: number | undefined; dependsOn?: string[] | undefined; retries?: number | undefined; }; }> | undefined; }; input_data: Record<string, any>; options?: { layer_priority?: "claude" | "gemini" | "aistudio" | "adaptive" | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; output_format?: string | undefined; quality_level?: "fast" | "balanced" | "quality" | undefined; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; use_cache?: boolean | undefined; depth?: "shallow" | "medium" | "deep" | undefined; extractMetadata?: boolean | undefined; structured?: boolean | undefined; requiresGrounding?: boolean | undefined; parallelProcessing?: boolean | undefined; batchMode?: boolean | undefined; detailed?: boolean | undefined; extractionType?: string | undefined; outputFormat?: string | undefined; preserveQuality?: boolean | undefined; } | undefined; execution_mode?: "adaptive" | "sequential" | "parallel" | undefined; }>; export type WorkflowDefinitionArgs = z.infer<typeof WorkflowDefinitionArgsSchema>; export declare const LayerResultSchema: z.ZodObject<{ success: z.ZodBoolean; data: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; metadata: z.ZodObject<{ layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; duration: z.ZodNumber; tokens_used: z.ZodOptional<z.ZodNumber>; cost: z.ZodOptional<z.ZodNumber>; model: z.ZodOptional<z.ZodString>; fast_mode: z.ZodOptional<z.ZodBoolean>; optimization: z.ZodOptional<z.ZodString>; retry_attempt: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }, { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }>; }, "strip", z.ZodTypeAny, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }>; export type LayerResult = z.infer<typeof LayerResultSchema>; export declare const WorkflowResultSchema: z.ZodObject<{ success: z.ZodBoolean; results: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{ success: z.ZodBoolean; data: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; metadata: z.ZodObject<{ layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; duration: z.ZodNumber; tokens_used: z.ZodOptional<z.ZodNumber>; cost: z.ZodOptional<z.ZodNumber>; model: z.ZodOptional<z.ZodString>; fast_mode: z.ZodOptional<z.ZodBoolean>; optimization: z.ZodOptional<z.ZodString>; retry_attempt: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }, { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }>; }, "strip", z.ZodTypeAny, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }>>, z.ZodArray<z.ZodObject<{ success: z.ZodBoolean; data: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; metadata: z.ZodObject<{ layer: z.ZodEnum<["claude", "gemini", "aistudio"]>; duration: z.ZodNumber; tokens_used: z.ZodOptional<z.ZodNumber>; cost: z.ZodOptional<z.ZodNumber>; model: z.ZodOptional<z.ZodString>; fast_mode: z.ZodOptional<z.ZodBoolean>; optimization: z.ZodOptional<z.ZodString>; retry_attempt: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }, { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }>; }, "strip", z.ZodTypeAny, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }>, "many">]>; summary: z.ZodOptional<z.ZodString>; metadata: z.ZodObject<{ total_duration: z.ZodNumber; steps_completed: z.ZodNumber; steps_failed: z.ZodNumber; total_cost: z.ZodOptional<z.ZodNumber>; workflow: z.ZodOptional<z.ZodString>; execution_mode: z.ZodOptional<z.ZodString>; layers_used: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; optimization: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { total_duration: number; steps_completed: number; steps_failed: number; workflow?: string | undefined; execution_mode?: string | undefined; optimization?: string | undefined; total_cost?: number | undefined; layers_used?: string[] | undefined; }, { total_duration: number; steps_completed: number; steps_failed: number; workflow?: string | undefined; execution_mode?: string | undefined; optimization?: string | undefined; total_cost?: number | undefined; layers_used?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { success: boolean; metadata: { total_duration: number; steps_completed: number; steps_failed: number; workflow?: string | undefined; execution_mode?: string | undefined; optimization?: string | undefined; total_cost?: number | undefined; layers_used?: string[] | undefined; }; results: Record<string, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }> | { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }[]; summary?: string | undefined; }, { success: boolean; metadata: { total_duration: number; steps_completed: number; steps_failed: number; workflow?: string | undefined; execution_mode?: string | undefined; optimization?: string | undefined; total_cost?: number | undefined; layers_used?: string[] | undefined; }; results: Record<string, { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }> | { success: boolean; metadata: { layer: "claude" | "gemini" | "aistudio"; duration: number; tokens_used?: number | undefined; cost?: number | undefined; model?: string | undefined; fast_mode?: boolean | undefined; optimization?: string | undefined; retry_attempt?: number | undefined; }; error?: string | undefined; data?: any; }[]; summary?: string | undefined; }>; export type WorkflowResult = z.infer<typeof WorkflowResultSchema>; export interface LayerInterface { initialize(): Promise<void>; isAvailable(): Promise<boolean>; canHandle(task: any): boolean; execute(task: any): Promise<LayerResult>; getCapabilities(): string[]; getCost(task: any): number; getEstimatedDuration(task: any): number; translateToEnglish?(text: string, sourceLang: string): Promise<string>; } export interface ToolResult { content: Array<{ type: 'text' | 'image' | 'resource'; text?: string; data?: string; mimeType?: string; }>; isError?: boolean; } export declare const ConfigSchema: z.ZodObject<{ gemini: z.ZodObject<{ api_key: z.ZodString; model: z.ZodDefault<z.ZodString>; timeout: z.ZodDefault<z.ZodNumber>; max_tokens: z.ZodDefault<z.ZodNumber>; temperature: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { temperature: number; max_tokens: number; timeout: number; model: string; api_key: string; }, { api_key: string; temperature?: number | undefined; max_tokens?: number | undefined; timeout?: number | undefined; model?: string | undefined; }>; claude: z.ZodObject<{ code_path: z.ZodDefault<z.ZodString>; timeout: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { timeout: number; code_path: string; }, { timeout?: number | undefined; code_path?: string | undefined; }>; aistudio: z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; max_files: z.ZodDefault<z.ZodN