/** * SkillKit Runtime Engine * Execution engine that ties together parsing, configuration, and model interaction. * Handles skill loading, model selection, execution, and tool calling. */ import { EventEmitter } from 'events'; import { SkillDefinition, SkillExecutionResult, ExecutionOptions, BatchExecutionRequest, BatchExecutionResult, SkillRunnerOptions } from './types.js'; /** * Main skill runner class */ export declare class SkillRunner extends EventEmitter { private config; private options; private executionCache; constructor(options?: SkillRunnerOptions); /** * Load a skill from file or registry */ loadSkill(skillPath: string): Promise; /** * Download skill from ClawHub registry */ private downloadSkill; /** * Execute a skill */ executeSkill(skillPath: string, input: Record, options?: ExecutionOptions): Promise; /** * Execute skill with timeout protection */ private executeWithTimeout; /** * Internal execution logic */ private executeInternal; /** * Validate input against skill definition */ private validateInput; /** * Build model configuration */ private buildModelConfig; /** * Execute batch of skills */ executeBatch(request: BatchExecutionRequest): Promise; /** * Clear execution cache */ clearCache(): void; /** * Get cache statistics */ getCacheStats(): { size: number; entries: number; }; } /** * Convenience function to execute a skill */ export declare function executeSkill(skillPath: string, input: Record, options?: ExecutionOptions): Promise; /** * Convenience function for batch execution */ export declare function executeBatch(request: BatchExecutionRequest): Promise; //# sourceMappingURL=runtime.d.ts.map