UNPKG

mcp-tung-shing

Version:

A Model Context Protocol plugin for Chinese Tung Shing (黄历/通勝/通胜) almanac calculations

71 lines (70 loc) 2.15 kB
import { z } from 'zod'; export declare enum ContentType { 宜 = "\u5B9C", 忌 = "\u5FCC", 吉凶 = "\u5409\u51F6", 五行 = "\u4E94\u884C", 冲煞 = "\u51B2\u715E", 值神 = "\u503C\u795E", 建除十二神 = "\u5EFA\u9664\u5341\u4E8C\u795E", 二十八星宿 = "\u4E8C\u5341\u516B\u661F\u5BBF", 吉神宜趋 = "\u5409\u795E\u5B9C\u8D8B", 凶煞宜忌 = "\u51F6\u715E\u5B9C\u5FCC", 彭祖百忌 = "\u5F6D\u7956\u767E\u5FCC", 方位 = "\u65B9\u4F4D" } export declare enum TabooType { 宜 = 1, 忌 = 2 } export interface AlmanacContentItem { [key: string]: string | string[]; } export interface DailyAlmanac { 公历: string; 农历: string; 当日: AlmanacContentItem; 分时?: Record<string, AlmanacContentItem>; [key: string]: string | AlmanacContentItem | Record<string, AlmanacContentItem> | undefined; } export declare const tabooFilterSchema: z.ZodObject<{ type: z.ZodNativeEnum<typeof TabooType>; value: z.ZodEnum<[string, ...string[]]>; }, "strip", z.ZodTypeAny, { type: TabooType; value: string; }, { type: TabooType; value: string; }>; export declare const getTungShingParamsSchema: z.ZodObject<{ startDate: z.ZodDefault<z.ZodOptional<z.ZodString>>; days: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>>>; includeHours: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; tabooFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodNativeEnum<typeof TabooType>; value: z.ZodEnum<[string, ...string[]]>; }, "strip", z.ZodTypeAny, { type: TabooType; value: string; }, { type: TabooType; value: string; }>, "many">>; }, "strip", z.ZodTypeAny, { startDate: string; days: number; includeHours: boolean; tabooFilters?: { type: TabooType; value: string; }[] | undefined; }, { startDate?: string | undefined; days?: string | number | undefined; includeHours?: boolean | undefined; tabooFilters?: { type: TabooType; value: string; }[] | undefined; }>;