mini-todo-list-mcp
Version:
A streamlined Model Context Protocol (MCP) server for todo management with essential CRUD operations, bulk functionality, and workflow support
36 lines (35 loc) • 771 B
TypeScript
/**
* RuleService.ts - Rule management service
*
* Core business logic for managing rules.
* Includes: Add rules from file, get rules, and clear all rules.
*/
import { Rule } from '../models/Rule.js';
/**
* RuleService Class
*/
declare class RuleService {
/**
* Add rules from a file
*/
addRules(data: {
filePath: string;
clearAll?: boolean;
}): Promise<Rule[]>;
/**
* Get all rules or a specific rule by ID
*/
getRules(data?: {
id?: number;
}): Rule[];
/**
* Clear all rules from the database
*/
clearAllRules(): number;
/**
* Helper to convert a database row to a Rule object
*/
private rowToRule;
}
export declare const ruleService: RuleService;
export {};