UNPKG

is-mahram

Version:

A TypeScript library to determine if a person is a mahram based on Islamic jurisprudence.

24 lines 723 B
import { type Gender, type Parents } from './types'; export declare class Person { private name; private readonly gender; private id; private parents; private spouses; private sucklingMother; constructor(name: string, gender: Gender); setName(name: string): void; setFather(father: Person): void; setMother(mother: Person): void; addSpouse(spouse: Person): void; setSucklingMother(wetNurse: Person): void; getId(): string; getName(): string; getGender(): Gender; getParents(): Parents; getFather(): Person | null; getMother(): Person | null; getSpouses(): Set<Person>; getSucklingMother(): Person | null; } //# sourceMappingURL=person.d.ts.map