- 八卦基础数据(先天数/五行/方位/生克关系) - 六十四卦完整数据(卦名/卦辞/象辞/吉凶/关键词) - 体用分析引擎(动爻→体用→五行生克→旺衰判定) - 变卦/互卦计算 - 三种起卦方式:数字法、时间法、外应法(梅花心易) - CLI入口:JSON/文本双格式输出 - 断卦分析 prompt + 梅花心易 prompt + 海报版 prompt - HTML海报模板(古风暗色系)
17 lines
518 B
TypeScript
17 lines
518 B
TypeScript
export interface Trigram {
|
|
number: number;
|
|
name: string;
|
|
symbol: string;
|
|
element: string;
|
|
direction: string;
|
|
attribute: string;
|
|
bodyPart: string;
|
|
family: string;
|
|
nature: string;
|
|
}
|
|
export declare const TRIGRAMS: Record<number, Trigram>;
|
|
export declare const WUXING_SHENG: Record<string, string>;
|
|
export declare const WUXING_KE: Record<string, string>;
|
|
export declare function getRelation(a: string, b: string): string;
|
|
export declare function getTrigramByNumber(n: number): Trigram;
|