@drewsonne/maya-dates
Version:
Typescript package to manipulate dates in the Maya Calendar
21 lines (20 loc) • 764 B
TypeScript
import { HaabMonth } from "./component/haabMonth";
import { Wildcard } from "../wildcard";
import ICoefficient from "./component/iCoefficient";
import { IPart } from "../i-part";
import { CommentWrapper } from "../comment-wrapper";
export declare function getHaab(coeff: ICoefficient, month: Wildcard | HaabMonth): Haab;
export declare class Haab extends CommentWrapper implements IPart {
coeff: ICoefficient;
month: Wildcard | HaabMonth;
private nextHolder;
constructor(coeff: ICoefficient, month: Wildcard | HaabMonth);
validate(): boolean;
next(): Haab;
match(otherHaab: Haab): boolean;
get name(): string;
shift(numDays: number): Haab;
private nextCalculator;
toString(): string;
equal(other: IPart): boolean;
}