@heroiclands/package-build 23.12.5 → 23.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,5 +10,36 @@ export function resolveReckoningMarkers(index: any, daysPerYear: any): {
10
10
  file?: any;
11
11
  }[];
12
12
  };
13
- /** Read the world's year length and resolve every calendar era in one corpus. */
13
+ /**
14
+ * The key a note's resolved calendar is filed under: its type and shortcode.
15
+ *
16
+ * @param {object|undefined} fm - A note's frontmatter or record.
17
+ * @returns {string|undefined} The key.
18
+ */
19
+ export function noteCalendarKey(fm: object | undefined): string | undefined;
20
+ /**
21
+ * A record's `resolvedCalendar` as its canonical Address string: an Address
22
+ * tuple, as a record in memory carries it, or the string an encoded record
23
+ * carries.
24
+ *
25
+ * @param {unknown} value - The value.
26
+ * @returns {string|undefined} The Address, or `undefined` for none.
27
+ */
28
+ export function calendarAddress(value: unknown): string | undefined;
29
+ /**
30
+ * Each note's resolved calendar, by {@link noteCalendarKey}, from the
31
+ * `resolvedCalendar` the content index writes on a record.
32
+ *
33
+ * @param {Iterable<object>|undefined} notes - Index records, or
34
+ * `{ fm, resolvedCalendar }` entries.
35
+ * @returns {Map<string, string>} Note key to the calendar's canonical Address.
36
+ */
37
+ export function noteCalendarMap(notes: Iterable<object> | undefined): Map<string, string>;
38
+ /**
39
+ * Read the world's year length and resolve every calendar era in one corpus.
40
+ *
41
+ * The context also carries `noteCalendars`, each note's resolved calendar by
42
+ * note, read from the `resolvedCalendar` the content index writes on a record;
43
+ * {@link module:engine/note-calendars.noteCalendar} reads it.
44
+ */
14
45
  export function reckoningContext(index: any): any;