UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

14 lines • 698 B
import { RecurrenceRule } from "../types/recurrence.js"; import "../types/index.js"; /** * Read a RECUR value (the text after `RRULE:`) into a checked rule, or null when the text breaks * the grammar or a §3.3.10 rule. Never reads a part twice, never accepts whitespace or an empty * part. */ export declare function readRecurrenceRule(text: string): RecurrenceRule | null; /** * Check a rule against RFC 5545 §3.3.10 and return a fresh, frozen, normalised record (lists * sorted ascending and deduplicated, `byDay` ordered by weekday then ordinal), or null. The input * is never mutated. Never throws. */ export declare function checkRecurrenceRule(rule: unknown): RecurrenceRule | null;