@ishubhamx/panchangam-js
Version:
Enhanced Indian Panchangam (Hindu Calendar) library with comprehensive Vedic features including Muhurta calculations, planetary positions, Rashi placements, and auspicious/inauspicious time calculations
38 lines • 1.42 kB
TypeScript
/**
* Chandrashtama - Moon in 8th from Birth Rashi
*
* When the transiting Moon is in the 8th sign from one's birth Moon sign (Janma Rashi),
* it's considered an inauspicious period lasting approximately 2.5 days each month.
*/
export interface ChandrashtamaInfo {
isActive: boolean;
birthRashi: number;
birthRashiName: string;
chandrashtamaRashi: number;
chandrashtamaRashiName: string;
currentMoonRashi: number;
currentMoonRashiName: string;
}
/**
* Calculate Chandrashtama status based on birth Rashi and current Moon position
*
* @param birthRashi - Birth Moon Rashi index (0 = Aries/Mesh, 11 = Pisces/Meen)
* @param currentMoonRashi - Current transiting Moon's Rashi index (0-11)
* @returns ChandrashtamaInfo object with active status and Rashi details
*
* @example
* ```typescript
* // Person born with Moon in Aries (0), current Moon in Scorpio (7)
* const info = getChandrashtama(0, 7);
* console.log(info.isActive); // true (Scorpio is 8th from Aries)
* ```
*/
export declare function getChandrashtama(birthRashi: number, currentMoonRashi: number): ChandrashtamaInfo;
/**
* Get the Chandrashtama Rashi for a given birth Rashi
*
* @param birthRashi - Birth Moon Rashi index (0-11)
* @returns The Rashi index that causes Chandrashtama (0-11)
*/
export declare function getChandrashtamaRashi(birthRashi: number): number;
//# sourceMappingURL=chandrashtama.d.ts.map