cook-mcp-windy
Version:
HowToCook MCP Server - Intelligent Chinese recipe management and meal planning for AI assistants
71 lines • 1.83 kB
TypeScript
import { Recipe } from '../types/index.js';
export declare const sampleRecipes: Recipe[];
/**
* Recipe data manager class
*/
export declare class RecipeDataManager {
private recipes;
constructor(initialRecipes?: Recipe[]);
/**
* Get all recipes
*/
getAllRecipes(): Recipe[];
/**
* Get recipe by ID
*/
getRecipeById(id: string): Recipe | undefined;
/**
* Get recipes by category
*/
getRecipesByCategory(category: string): Recipe[];
/**
* Search recipes by name or ingredients
*/
searchRecipes(query: string): Recipe[];
/**
* Add a new recipe
*/
addRecipe(recipe: Recipe): void;
/**
* Update an existing recipe
*/
updateRecipe(id: string, updatedRecipe: Partial<Recipe>): Recipe | null;
/**
* Delete a recipe
*/
deleteRecipe(id: string): boolean;
/**
* Get recipes by multiple criteria
*/
getRecipesByCriteria(criteria: {
categories?: string[];
difficulty?: string;
maxPrepTime?: number;
maxCookTime?: number;
tags?: string[];
}): Recipe[];
/**
* Get recipe statistics
*/
getStatistics(): {
totalRecipes: number;
categoryCounts: Record<string, number>;
difficultyCounts: Record<string, number>;
averagePrepTime: number;
averageCookTime: number;
};
/**
* Parse time string to minutes
*/
private parseTimeInMinutes;
/**
* Get random recipes
*/
getRandomRecipes(count: number): Recipe[];
/**
* Get recipes suitable for a number of people
*/
getRecipesForServings(targetServings: number, tolerance?: number): Recipe[];
}
export declare const recipeDataManager: RecipeDataManager;
//# sourceMappingURL=recipeData.d.ts.map