/** * KP System — Sub Lord Calculation * * The Krishnamurti Paddhati (KP) system divides each Nakshatra into * sub-divisions proportional to Vimshottari Dasha years. Sub-sub-lords * are similarly nested one level deeper. * * All arithmetic uses Decimal.js to avoid floating-point accumulation * errors at sub-lord boundaries. * * Planet ID mapping (Vimshottari Dasha order): * Index: 0=Ketu, 1=Venus, 2=Sun, 3=Moon, 4=Mars, 5=Rahu, 6=Jupiter, 7=Saturn, 8=Mercury * Actual planet IDs: [8, 3, 0, 1, 4, 7, 5, 6, 2] */ export interface KPSignificator { longitude: number; signLord: number; starLord: number; subLord: number; subSubLord: number; } export declare class KPSubLord { /** * Compute KP significators (Sign/Star/Sub/SubSub lords) for a given longitude. * * @param longitude Ecliptic sidereal longitude [0, 360) * @returns KPSignificator with all four planet IDs */ static calculateKPSignificators(longitude: number): KPSignificator; /** * Find Sub lord and Sub-Sub lord by iterating the Vimshottari sub-divisions. * * @param posInNak Decimal position within the Nakshatra [0, NAKSHATRA_SPAN) * @param startVimIdx 0-8 index in DASHA_LORD_IDS where the sub-cycle begins */ private static findSubLords; }