@nikthegeek/dreamsforlittles-shared 0.18.19 → 0.18.21

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.
@@ -25,23 +25,23 @@ export declare const huckleberryImportContextSchema: z.ZodObject<{
25
25
  environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
26
26
  }>>;
27
27
  }, "strict", z.ZodTypeAny, {
28
+ sleep?: {
29
+ environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
30
+ } | undefined;
28
31
  breastfeed?: {
29
32
  totalMinutes: number | null;
30
33
  leftMinutes: number | null;
31
34
  rightMinutes: number | null;
32
35
  } | undefined;
36
+ }, {
33
37
  sleep?: {
34
38
  environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
35
39
  } | undefined;
36
- }, {
37
40
  breastfeed?: {
38
41
  totalMinutes: number | null;
39
42
  leftMinutes: number | null;
40
43
  rightMinutes: number | null;
41
44
  } | undefined;
42
- sleep?: {
43
- environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
44
- } | undefined;
45
45
  }>;
46
46
  export type HuckleberryImportContext = z.infer<typeof huckleberryImportContextSchema>;
47
47
  export declare const huckleberryActivityTypeSchema: z.ZodEnum<["sleep", "breastfeed", "solids", "bottles", "nappies", "pumping", "medication"]>;
@@ -96,21 +96,21 @@ export declare const huckleberryImportSummarySchema: z.ZodObject<{
96
96
  pumping: z.ZodOptional<z.ZodNumber>;
97
97
  medication: z.ZodOptional<z.ZodNumber>;
98
98
  }, "strict", z.ZodTypeAny, {
99
- breastfeed: number;
100
99
  sleep: number;
100
+ breastfeed: number;
101
101
  solids: number;
102
- pumping?: number | undefined;
103
102
  bottles?: number | undefined;
104
- nappies?: number | undefined;
103
+ pumping?: number | undefined;
105
104
  medication?: number | undefined;
105
+ nappies?: number | undefined;
106
106
  }, {
107
- breastfeed: number;
108
107
  sleep: number;
108
+ breastfeed: number;
109
109
  solids: number;
110
- pumping?: number | undefined;
111
110
  bottles?: number | undefined;
112
- nappies?: number | undefined;
111
+ pumping?: number | undefined;
113
112
  medication?: number | undefined;
113
+ nappies?: number | undefined;
114
114
  }>;
115
115
  startDate: z.ZodNullable<z.ZodString>;
116
116
  endDate: z.ZodNullable<z.ZodString>;
@@ -129,13 +129,13 @@ export declare const huckleberryImportSummarySchema: z.ZodObject<{
129
129
  timeZone: string;
130
130
  total: number;
131
131
  counts: {
132
- breastfeed: number;
133
132
  sleep: number;
133
+ breastfeed: number;
134
134
  solids: number;
135
- pumping?: number | undefined;
136
135
  bottles?: number | undefined;
137
- nappies?: number | undefined;
136
+ pumping?: number | undefined;
138
137
  medication?: number | undefined;
138
+ nappies?: number | undefined;
139
139
  };
140
140
  babyId: string;
141
141
  accepted: number;
@@ -151,13 +151,13 @@ export declare const huckleberryImportSummarySchema: z.ZodObject<{
151
151
  timeZone: string;
152
152
  total: number;
153
153
  counts: {
154
- breastfeed: number;
155
154
  sleep: number;
155
+ breastfeed: number;
156
156
  solids: number;
157
- pumping?: number | undefined;
158
157
  bottles?: number | undefined;
159
- nappies?: number | undefined;
158
+ pumping?: number | undefined;
160
159
  medication?: number | undefined;
160
+ nappies?: number | undefined;
161
161
  };
162
162
  babyId: string;
163
163
  accepted: number;
@@ -185,21 +185,21 @@ export declare const huckleberryImportPreviewSchema: z.ZodObject<{
185
185
  pumping: z.ZodOptional<z.ZodNumber>;
186
186
  medication: z.ZodOptional<z.ZodNumber>;
187
187
  }, "strict", z.ZodTypeAny, {
188
- breastfeed: number;
189
188
  sleep: number;
189
+ breastfeed: number;
190
190
  solids: number;
191
- pumping?: number | undefined;
192
191
  bottles?: number | undefined;
193
- nappies?: number | undefined;
192
+ pumping?: number | undefined;
194
193
  medication?: number | undefined;
194
+ nappies?: number | undefined;
195
195
  }, {
196
- breastfeed: number;
197
196
  sleep: number;
197
+ breastfeed: number;
198
198
  solids: number;
199
- pumping?: number | undefined;
200
199
  bottles?: number | undefined;
201
- nappies?: number | undefined;
200
+ pumping?: number | undefined;
202
201
  medication?: number | undefined;
202
+ nappies?: number | undefined;
203
203
  }>;
204
204
  startDate: z.ZodNullable<z.ZodString>;
205
205
  endDate: z.ZodNullable<z.ZodString>;
@@ -220,13 +220,13 @@ export declare const huckleberryImportPreviewSchema: z.ZodObject<{
220
220
  timeZone: string;
221
221
  total: number;
222
222
  counts: {
223
- breastfeed: number;
224
223
  sleep: number;
224
+ breastfeed: number;
225
225
  solids: number;
226
- pumping?: number | undefined;
227
226
  bottles?: number | undefined;
228
- nappies?: number | undefined;
227
+ pumping?: number | undefined;
229
228
  medication?: number | undefined;
229
+ nappies?: number | undefined;
230
230
  };
231
231
  babyId: string;
232
232
  accepted: number;
@@ -243,13 +243,13 @@ export declare const huckleberryImportPreviewSchema: z.ZodObject<{
243
243
  timeZone: string;
244
244
  total: number;
245
245
  counts: {
246
- breastfeed: number;
247
246
  sleep: number;
247
+ breastfeed: number;
248
248
  solids: number;
249
- pumping?: number | undefined;
250
249
  bottles?: number | undefined;
251
- nappies?: number | undefined;
250
+ pumping?: number | undefined;
252
251
  medication?: number | undefined;
252
+ nappies?: number | undefined;
253
253
  };
254
254
  babyId: string;
255
255
  accepted: number;
@@ -278,21 +278,21 @@ export declare const huckleberryImportBatchSchema: z.ZodObject<{
278
278
  pumping: z.ZodOptional<z.ZodNumber>;
279
279
  medication: z.ZodOptional<z.ZodNumber>;
280
280
  }, "strict", z.ZodTypeAny, {
281
- breastfeed: number;
282
281
  sleep: number;
282
+ breastfeed: number;
283
283
  solids: number;
284
- pumping?: number | undefined;
285
284
  bottles?: number | undefined;
286
- nappies?: number | undefined;
285
+ pumping?: number | undefined;
287
286
  medication?: number | undefined;
287
+ nappies?: number | undefined;
288
288
  }, {
289
- breastfeed: number;
290
289
  sleep: number;
290
+ breastfeed: number;
291
291
  solids: number;
292
- pumping?: number | undefined;
293
292
  bottles?: number | undefined;
294
- nappies?: number | undefined;
293
+ pumping?: number | undefined;
295
294
  medication?: number | undefined;
295
+ nappies?: number | undefined;
296
296
  }>;
297
297
  startDate: z.ZodNullable<z.ZodString>;
298
298
  endDate: z.ZodNullable<z.ZodString>;
@@ -319,13 +319,13 @@ export declare const huckleberryImportBatchSchema: z.ZodObject<{
319
319
  createdAt: string;
320
320
  total: number;
321
321
  counts: {
322
- breastfeed: number;
323
322
  sleep: number;
323
+ breastfeed: number;
324
324
  solids: number;
325
- pumping?: number | undefined;
326
325
  bottles?: number | undefined;
327
- nappies?: number | undefined;
326
+ pumping?: number | undefined;
328
327
  medication?: number | undefined;
328
+ nappies?: number | undefined;
329
329
  };
330
330
  babyId: string;
331
331
  accepted: number;
@@ -346,13 +346,13 @@ export declare const huckleberryImportBatchSchema: z.ZodObject<{
346
346
  createdAt: string;
347
347
  total: number;
348
348
  counts: {
349
- breastfeed: number;
350
349
  sleep: number;
350
+ breastfeed: number;
351
351
  solids: number;
352
- pumping?: number | undefined;
353
352
  bottles?: number | undefined;
354
- nappies?: number | undefined;
353
+ pumping?: number | undefined;
355
354
  medication?: number | undefined;
355
+ nappies?: number | undefined;
356
356
  };
357
357
  babyId: string;
358
358
  accepted: number;
@@ -384,21 +384,21 @@ export declare const huckleberryImportListSchema: z.ZodObject<{
384
384
  pumping: z.ZodOptional<z.ZodNumber>;
385
385
  medication: z.ZodOptional<z.ZodNumber>;
386
386
  }, "strict", z.ZodTypeAny, {
387
- breastfeed: number;
388
387
  sleep: number;
388
+ breastfeed: number;
389
389
  solids: number;
390
- pumping?: number | undefined;
391
390
  bottles?: number | undefined;
392
- nappies?: number | undefined;
391
+ pumping?: number | undefined;
393
392
  medication?: number | undefined;
393
+ nappies?: number | undefined;
394
394
  }, {
395
- breastfeed: number;
396
395
  sleep: number;
396
+ breastfeed: number;
397
397
  solids: number;
398
- pumping?: number | undefined;
399
398
  bottles?: number | undefined;
400
- nappies?: number | undefined;
399
+ pumping?: number | undefined;
401
400
  medication?: number | undefined;
401
+ nappies?: number | undefined;
402
402
  }>;
403
403
  startDate: z.ZodNullable<z.ZodString>;
404
404
  endDate: z.ZodNullable<z.ZodString>;
@@ -425,13 +425,13 @@ export declare const huckleberryImportListSchema: z.ZodObject<{
425
425
  createdAt: string;
426
426
  total: number;
427
427
  counts: {
428
- breastfeed: number;
429
428
  sleep: number;
429
+ breastfeed: number;
430
430
  solids: number;
431
- pumping?: number | undefined;
432
431
  bottles?: number | undefined;
433
- nappies?: number | undefined;
432
+ pumping?: number | undefined;
434
433
  medication?: number | undefined;
434
+ nappies?: number | undefined;
435
435
  };
436
436
  babyId: string;
437
437
  accepted: number;
@@ -452,13 +452,13 @@ export declare const huckleberryImportListSchema: z.ZodObject<{
452
452
  createdAt: string;
453
453
  total: number;
454
454
  counts: {
455
- breastfeed: number;
456
455
  sleep: number;
456
+ breastfeed: number;
457
457
  solids: number;
458
- pumping?: number | undefined;
459
458
  bottles?: number | undefined;
460
- nappies?: number | undefined;
459
+ pumping?: number | undefined;
461
460
  medication?: number | undefined;
461
+ nappies?: number | undefined;
462
462
  };
463
463
  babyId: string;
464
464
  accepted: number;
@@ -481,13 +481,13 @@ export declare const huckleberryImportListSchema: z.ZodObject<{
481
481
  createdAt: string;
482
482
  total: number;
483
483
  counts: {
484
- breastfeed: number;
485
484
  sleep: number;
485
+ breastfeed: number;
486
486
  solids: number;
487
- pumping?: number | undefined;
488
487
  bottles?: number | undefined;
489
- nappies?: number | undefined;
488
+ pumping?: number | undefined;
490
489
  medication?: number | undefined;
490
+ nappies?: number | undefined;
491
491
  };
492
492
  babyId: string;
493
493
  accepted: number;
@@ -510,13 +510,13 @@ export declare const huckleberryImportListSchema: z.ZodObject<{
510
510
  createdAt: string;
511
511
  total: number;
512
512
  counts: {
513
- breastfeed: number;
514
513
  sleep: number;
514
+ breastfeed: number;
515
515
  solids: number;
516
- pumping?: number | undefined;
517
516
  bottles?: number | undefined;
518
- nappies?: number | undefined;
517
+ pumping?: number | undefined;
519
518
  medication?: number | undefined;
519
+ nappies?: number | undefined;
520
520
  };
521
521
  babyId: string;
522
522
  accepted: number;
package/dist/invites.d.ts CHANGED
@@ -194,6 +194,124 @@ export declare const invitePreviewSchema: z.ZodObject<{
194
194
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
195
195
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
196
196
  }>>>;
197
+ approvedMobileChartPalette: z.ZodOptional<z.ZodObject<{
198
+ wetNappy: z.ZodUnion<[z.ZodString, z.ZodObject<{
199
+ light: z.ZodString;
200
+ dark: z.ZodString;
201
+ }, "strict", z.ZodTypeAny, {
202
+ light: string;
203
+ dark: string;
204
+ }, {
205
+ light: string;
206
+ dark: string;
207
+ }>]>;
208
+ light: z.ZodObject<{
209
+ sleep: z.ZodString;
210
+ bottles: z.ZodString;
211
+ breastfeed: z.ZodString;
212
+ dirtyNappy: z.ZodString;
213
+ mixedNappy: z.ZodString;
214
+ pumping: z.ZodString;
215
+ medication: z.ZodString;
216
+ solids: z.ZodString;
217
+ }, "strict", z.ZodTypeAny, {
218
+ sleep: string;
219
+ bottles: string;
220
+ breastfeed: string;
221
+ dirtyNappy: string;
222
+ mixedNappy: string;
223
+ pumping: string;
224
+ medication: string;
225
+ solids: string;
226
+ }, {
227
+ sleep: string;
228
+ bottles: string;
229
+ breastfeed: string;
230
+ dirtyNappy: string;
231
+ mixedNappy: string;
232
+ pumping: string;
233
+ medication: string;
234
+ solids: string;
235
+ }>;
236
+ dark: z.ZodObject<{
237
+ sleep: z.ZodString;
238
+ bottles: z.ZodString;
239
+ breastfeed: z.ZodString;
240
+ dirtyNappy: z.ZodString;
241
+ mixedNappy: z.ZodString;
242
+ pumping: z.ZodString;
243
+ medication: z.ZodString;
244
+ solids: z.ZodString;
245
+ }, "strict", z.ZodTypeAny, {
246
+ sleep: string;
247
+ bottles: string;
248
+ breastfeed: string;
249
+ dirtyNappy: string;
250
+ mixedNappy: string;
251
+ pumping: string;
252
+ medication: string;
253
+ solids: string;
254
+ }, {
255
+ sleep: string;
256
+ bottles: string;
257
+ breastfeed: string;
258
+ dirtyNappy: string;
259
+ mixedNappy: string;
260
+ pumping: string;
261
+ medication: string;
262
+ solids: string;
263
+ }>;
264
+ }, "strict", z.ZodTypeAny, {
265
+ wetNappy: string | {
266
+ light: string;
267
+ dark: string;
268
+ };
269
+ light: {
270
+ sleep: string;
271
+ bottles: string;
272
+ breastfeed: string;
273
+ dirtyNappy: string;
274
+ mixedNappy: string;
275
+ pumping: string;
276
+ medication: string;
277
+ solids: string;
278
+ };
279
+ dark: {
280
+ sleep: string;
281
+ bottles: string;
282
+ breastfeed: string;
283
+ dirtyNappy: string;
284
+ mixedNappy: string;
285
+ pumping: string;
286
+ medication: string;
287
+ solids: string;
288
+ };
289
+ }, {
290
+ wetNappy: string | {
291
+ light: string;
292
+ dark: string;
293
+ };
294
+ light: {
295
+ sleep: string;
296
+ bottles: string;
297
+ breastfeed: string;
298
+ dirtyNappy: string;
299
+ mixedNappy: string;
300
+ pumping: string;
301
+ medication: string;
302
+ solids: string;
303
+ };
304
+ dark: {
305
+ sleep: string;
306
+ bottles: string;
307
+ breastfeed: string;
308
+ dirtyNappy: string;
309
+ mixedNappy: string;
310
+ pumping: string;
311
+ medication: string;
312
+ solids: string;
313
+ };
314
+ }>>;
197
315
  logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
316
  welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
317
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -228,6 +346,32 @@ export declare const invitePreviewSchema: z.ZodObject<{
228
346
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
229
347
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
230
348
  } | null | undefined;
349
+ approvedMobileChartPalette?: {
350
+ wetNappy: string | {
351
+ light: string;
352
+ dark: string;
353
+ };
354
+ light: {
355
+ sleep: string;
356
+ bottles: string;
357
+ breastfeed: string;
358
+ dirtyNappy: string;
359
+ mixedNappy: string;
360
+ pumping: string;
361
+ medication: string;
362
+ solids: string;
363
+ };
364
+ dark: {
365
+ sleep: string;
366
+ bottles: string;
367
+ breastfeed: string;
368
+ dirtyNappy: string;
369
+ mixedNappy: string;
370
+ pumping: string;
371
+ medication: string;
372
+ solids: string;
373
+ };
374
+ } | undefined;
231
375
  logoAssetId?: string | null | undefined;
232
376
  welcomeMessage?: string | null | undefined;
233
377
  updatedAt?: string | null | undefined;
@@ -262,6 +406,32 @@ export declare const invitePreviewSchema: z.ZodObject<{
262
406
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
263
407
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
264
408
  } | null | undefined;
409
+ approvedMobileChartPalette?: {
410
+ wetNappy: string | {
411
+ light: string;
412
+ dark: string;
413
+ };
414
+ light: {
415
+ sleep: string;
416
+ bottles: string;
417
+ breastfeed: string;
418
+ dirtyNappy: string;
419
+ mixedNappy: string;
420
+ pumping: string;
421
+ medication: string;
422
+ solids: string;
423
+ };
424
+ dark: {
425
+ sleep: string;
426
+ bottles: string;
427
+ breastfeed: string;
428
+ dirtyNappy: string;
429
+ mixedNappy: string;
430
+ pumping: string;
431
+ medication: string;
432
+ solids: string;
433
+ };
434
+ } | undefined;
265
435
  logoAssetId?: string | null | undefined;
266
436
  welcomeMessage?: string | null | undefined;
267
437
  updatedAt?: string | null | undefined;
@@ -302,6 +472,32 @@ export declare const invitePreviewSchema: z.ZodObject<{
302
472
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
303
473
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
304
474
  } | null | undefined;
475
+ approvedMobileChartPalette?: {
476
+ wetNappy: string | {
477
+ light: string;
478
+ dark: string;
479
+ };
480
+ light: {
481
+ sleep: string;
482
+ bottles: string;
483
+ breastfeed: string;
484
+ dirtyNappy: string;
485
+ mixedNappy: string;
486
+ pumping: string;
487
+ medication: string;
488
+ solids: string;
489
+ };
490
+ dark: {
491
+ sleep: string;
492
+ bottles: string;
493
+ breastfeed: string;
494
+ dirtyNappy: string;
495
+ mixedNappy: string;
496
+ pumping: string;
497
+ medication: string;
498
+ solids: string;
499
+ };
500
+ } | undefined;
305
501
  logoAssetId?: string | null | undefined;
306
502
  welcomeMessage?: string | null | undefined;
307
503
  updatedAt?: string | null | undefined;
@@ -342,6 +538,32 @@ export declare const invitePreviewSchema: z.ZodObject<{
342
538
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
343
539
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
344
540
  } | null | undefined;
541
+ approvedMobileChartPalette?: {
542
+ wetNappy: string | {
543
+ light: string;
544
+ dark: string;
545
+ };
546
+ light: {
547
+ sleep: string;
548
+ bottles: string;
549
+ breastfeed: string;
550
+ dirtyNappy: string;
551
+ mixedNappy: string;
552
+ pumping: string;
553
+ medication: string;
554
+ solids: string;
555
+ };
556
+ dark: {
557
+ sleep: string;
558
+ bottles: string;
559
+ breastfeed: string;
560
+ dirtyNappy: string;
561
+ mixedNappy: string;
562
+ pumping: string;
563
+ medication: string;
564
+ solids: string;
565
+ };
566
+ } | undefined;
345
567
  logoAssetId?: string | null | undefined;
346
568
  welcomeMessage?: string | null | undefined;
347
569
  updatedAt?: string | null | undefined;
@@ -453,6 +675,32 @@ export declare const invitePreviewSchema: z.ZodObject<{
453
675
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
454
676
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
455
677
  } | null | undefined;
678
+ approvedMobileChartPalette?: {
679
+ wetNappy: string | {
680
+ light: string;
681
+ dark: string;
682
+ };
683
+ light: {
684
+ sleep: string;
685
+ bottles: string;
686
+ breastfeed: string;
687
+ dirtyNappy: string;
688
+ mixedNappy: string;
689
+ pumping: string;
690
+ medication: string;
691
+ solids: string;
692
+ };
693
+ dark: {
694
+ sleep: string;
695
+ bottles: string;
696
+ breastfeed: string;
697
+ dirtyNappy: string;
698
+ mixedNappy: string;
699
+ pumping: string;
700
+ medication: string;
701
+ solids: string;
702
+ };
703
+ } | undefined;
456
704
  logoAssetId?: string | null | undefined;
457
705
  welcomeMessage?: string | null | undefined;
458
706
  updatedAt?: string | null | undefined;
@@ -536,6 +784,32 @@ export declare const invitePreviewSchema: z.ZodObject<{
536
784
  schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
537
785
  analysisAccessibilityChoice?: "adjusted" | "acceptWarning" | "preserveWithPatterns" | undefined;
538
786
  } | null | undefined;
787
+ approvedMobileChartPalette?: {
788
+ wetNappy: string | {
789
+ light: string;
790
+ dark: string;
791
+ };
792
+ light: {
793
+ sleep: string;
794
+ bottles: string;
795
+ breastfeed: string;
796
+ dirtyNappy: string;
797
+ mixedNappy: string;
798
+ pumping: string;
799
+ medication: string;
800
+ solids: string;
801
+ };
802
+ dark: {
803
+ sleep: string;
804
+ bottles: string;
805
+ breastfeed: string;
806
+ dirtyNappy: string;
807
+ mixedNappy: string;
808
+ pumping: string;
809
+ medication: string;
810
+ solids: string;
811
+ };
812
+ } | undefined;
539
813
  logoAssetId?: string | null | undefined;
540
814
  welcomeMessage?: string | null | undefined;
541
815
  updatedAt?: string | null | undefined;
@@ -1,7 +1,9 @@
1
1
  import type { Activity } from "./family.js";
2
+ import type { SleepReplacementLink } from "./sleep-average-context.js";
2
3
  import { type SleepAverageContextPool } from "./sleep-average-summary.js";
3
4
  export type LoggedSleepAveragePool = SleepAverageContextPool & {
4
5
  loggedSampleDates?: string[];
6
+ replacementLinks?: readonly SleepReplacementLink[];
5
7
  };
6
8
  /** Display-only historical arithmetic. This does not manufacture a wake receipt,
7
9
  * alter server proof, or grant a saved-night edit/Undo. Call only after a complete,
@@ -11,7 +13,7 @@ export type LoggedSleepSource = Pick<Activity, "id" | "familyUserId" | "babyId"
11
13
  activityType: string;
12
14
  details: Readonly<Record<string, unknown>>;
13
15
  };
14
- export declare const withLoggedSleepDays: (pool: SleepAverageContextPool | null, activities: readonly LoggedSleepSource[], runningSleepStarts?: readonly string[], runningNightStarts?: readonly string[], excludedOpeningDates?: readonly string[]) => LoggedSleepAveragePool | null;
16
+ export declare const withLoggedSleepDays: (pool: LoggedSleepAveragePool | null, activities: readonly LoggedSleepSource[], runningSleepStarts?: readonly string[], runningNightStarts?: readonly string[], excludedOpeningDates?: readonly string[]) => LoggedSleepAveragePool | null;
15
17
  /** A separate complete, fresh authorized history is needed only for relaxable unknown days. */
16
18
  export declare const needsLoggedSleepHistory: (pool: SleepAverageContextPool) => boolean;
17
19
  export declare const loggedSleepAverageCalculation = "Adds logged sleep from each morning wake to the next, then divides by the number of complete logged days. When logging starts with a nap, the first logging day counts from that first nap once the following night is complete. Older logs do not need an Awake-button receipt. Overlapping logs of the same sleep type count once. Today, unfinished days, conflicting Nap/Night logs and dates left out with Life Tags stay out. A complete day with no naps counts as zero nap time.";