UNPKG

notification-kit

Version:

A unified notification library for React + Capacitor apps. One API for push notifications, in-app notifications, and local notifications across Web, iOS, and Android.

21 lines 1.11 kB
import { ScheduleOptions, EventValidationError, DateComponents, RepeatOptions } from '../types'; interface ScheduleValidationResult { valid: boolean; errors: EventValidationError[]; } export declare class SchedulingUtils { static calculateNextScheduledTime(schedule: ScheduleOptions): Date | null; static calculateAtTime(at: Date, now: Date): Date; static calculateOnTime(on: DateComponents, now: Date): Date; static calculateEveryTime(every: RepeatOptions, now: Date): Date; static validateSchedule(schedule: ScheduleOptions): ScheduleValidationResult; static validateAtSchedule(at: Date): ScheduleValidationResult; static validateOnSchedule(on: DateComponents): ScheduleValidationResult; static validateEverySchedule(every: RepeatOptions): ScheduleValidationResult; static parseCronExpression(cron: string): ScheduleOptions | null; static toCronExpression(schedule: ScheduleOptions): string | null; static getScheduleDescription(schedule: ScheduleOptions): string; private static weekdayToNumber; } export {}; //# sourceMappingURL=scheduling.d.ts.map