cook-mcp-windy
Version:
HowToCook MCP Server - Intelligent Chinese recipe management and meal planning for AI assistants
45 lines • 1.61 kB
TypeScript
import { Recipe, RecipeCategory, DifficultyLevel, SearchParams } from '../types/index.js';
/**
* Filter recipes by category
*/
export declare function filterRecipesByCategory(recipes: Recipe[], category: RecipeCategory): Recipe[];
/**
* Search recipes by query string
*/
export declare function searchRecipes(recipes: Recipe[], searchParams: SearchParams): Recipe[];
/**
* Parse time string to minutes (e.g., "30分钟" -> 30, "1小时" -> 60)
*/
export declare function parseTimeInMinutes(timeStr: string): number;
/**
* Format minutes to Chinese time string
*/
export declare function formatTimeFromMinutes(minutes: number): string;
/**
* Calculate total cooking time for a recipe
*/
export declare function calculateTotalTime(prepTime: string, cookTime: string): string;
/**
* Get recipes suitable for a specific number of people
*/
export declare function getRecipesForServings(recipes: Recipe[], targetServings: number, tolerance?: number): Recipe[];
/**
* Scale recipe ingredients for different serving sizes
*/
export declare function scaleRecipeIngredients(recipe: Recipe, targetServings: number): Recipe;
/**
* Get recipe difficulty distribution
*/
export declare function getRecipeDifficultyDistribution(recipes: Recipe[]): Record<DifficultyLevel, number>;
/**
* Get recipe category distribution
*/
export declare function getRecipeCategoryDistribution(recipes: Recipe[]): Record<RecipeCategory, number>;
/**
* Validate recipe data
*/
export declare function validateRecipe(recipe: Recipe): {
isValid: boolean;
errors: string[];
};
//# sourceMappingURL=recipeUtils.d.ts.map