/** * A usage period: one calendar month in UTC, written `YYYY-MM`. Its start is * the first instant of the month and its end the first instant of the next, * so a line belongs to exactly one period: `start <= at < end`. */ export interface UsagePeriod { readonly period: string; /** Milliseconds since the epoch, inclusive. */ readonly start: number; /** Milliseconds since the epoch, exclusive: the next period's start. */ readonly end: number; } /** The period `period` names, or null when it is not one. */ export declare function usagePeriod(period: string): UsagePeriod | null; /** The period an instant falls in. */ export declare function periodOf(instant: number): UsagePeriod; /** The period before `period`. */ export declare function previousPeriod(period: UsagePeriod): UsagePeriod; /** Whether `instant` lies inside the period. */ export declare function inPeriod(period: UsagePeriod, instant: number): boolean; /** When the report for `period` is due: `dueDays` days after it ends. */ export declare function reportDueAt(period: UsagePeriod, dueDays: number): number; //# sourceMappingURL=UsagePeriod.d.ts.map