/** * Math Skill - Evaluates mathematical expressions safely. * * Tier 1 built-in skill: no external dependencies required. * Uses a safe parser that only allows digits, basic arithmetic operators, * parentheses, decimal points, and spaces. */ import { SkillBase } from '../SkillBase.js'; import type { SkillToolDefinition, SkillPromptSection, SkillConfig, ParameterSchemaEntry } from '../SkillBase.js'; /** * Evaluates mathematical expressions safely using a sandboxed parser. * * Tier 1 built-in skill with no external dependencies. Only allows digits, * basic arithmetic operators, parentheses, decimal points, and spaces. * * Registers a single SWAIG tool: `calculate`. * * @example * ```ts * agent.addSkill('math'); * ``` */ export declare class MathSkill extends SkillBase { static SKILL_NAME: string; static SKILL_DESCRIPTION: string; static SKILL_VERSION: string; static REQUIRED_PACKAGES: readonly string[]; static REQUIRED_ENV_VARS: readonly string[]; static getParameterSchema(): Record; /** @returns A single `calculate` tool that evaluates a math expression string. */ getTools(): SkillToolDefinition[]; protected _getPromptSections(): SkillPromptSection[]; } /** * Factory function for creating MathSkill instances. * @param config - Optional skill configuration. * @returns A new MathSkill instance. */ export declare function createSkill(config?: SkillConfig): MathSkill;