/** * @file 玄空飞星城门诀与特殊理气格局判定 * @传统依据 《沈氏玄空学》城门诀:向首两旁同元龙之位为城门候选;运星入中依元龙阴阳顺逆飞布,若旺星飞临城门宫位,为城门得位可用。 */ import { type FlyDirection } from './period-stars'; export type YuanLong = '天元龙' | '地元龙' | '人元龙'; export interface MountainProfile { mountain: string; gong: number; trigram: string; yuanLong: YuanLong; yinYang: '阳' | '阴'; } export declare const MOUNTAIN_PROFILES: Record; export interface CastleGateCandidate { gong: number; gongName: string; mountain: string; role: '正城门' | '副城门'; yunStar: number; flyDirection: FlyDirection; arrivalStar: number; status: '旺星到位' | '旺星未到位'; summary: string; } export interface CastleGateEvaluation { /** @deprecated 旧字段曾以旺星到位代表可用;缺实地水口、门路与形势时,实际可用性未定,此字段为 null。盘面判断使用 hasWangStarGate。 */ hasUsableGate: null; /** 仅表示按本宅运盘推得的城门旺星到位。 */ hasWangStarGate: boolean; candidates: CastleGateCandidate[]; summary: string; } /** * 计算给定当运与朝向的城门诀 */ export declare function evaluateCastleGate(params: { yun: number; facingMountain: string; yunPlate: number[]; }): CastleGateEvaluation;