@helloao/tools 0.0.18 → 0.0.19

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.
@@ -0,0 +1,735 @@
1
+ import { Commentary, CommentaryBook, CommentaryBookChapter, CommentaryProfile, Dataset, DatasetBook, DatasetBookChapter, OutputFile, Translation, TranslationBook, TranslationBookChapter, TranslationBookChapterAudioLinks } from './common-types.js';
2
+ import { DatasetOutput } from './dataset.js';
3
+ /**
4
+ * Defines the output of the API generation.
5
+ */
6
+ export interface ApiOutput {
7
+ /**
8
+ * The list of available translations.
9
+ * This maps to the /api/available-translations.json endpoint.
10
+ */
11
+ availableTranslations: ApiAvailableTranslations;
12
+ /**
13
+ * The list of books for each translation.
14
+ * This maps to the /api/:translationId/books.json endpoint.
15
+ */
16
+ translationBooks: ApiTranslationBooks[];
17
+ /**
18
+ * The list of chapters for each book.
19
+ * This maps to the following endpoints:
20
+ * - /api/:translationId/:bookId/:chapterNumber.json
21
+ * - /api/:translationId/:bookCommonName/:chapterNumber.json
22
+ */
23
+ translationBookChapters: ApiTranslationBookChapter[];
24
+ /**
25
+ * The list of audio files.
26
+ * This maps to the following endpoints:
27
+ * - /api/:translationId/:bookId/:chapterNumber.:reader.mp3
28
+ */
29
+ translationBookChapterAudio: ApiTranslationBookChapterAudio[];
30
+ /**
31
+ * The list of available commentaries.
32
+ * This maps to the /api/available-commentaries.json endpoint.
33
+ */
34
+ availableCommentaries: ApiAvailableCommentaries;
35
+ /**
36
+ * The list of books for each commentary.
37
+ * This maps to the /api/c/:commentaryId/books.json endpoint.
38
+ */
39
+ commentaryBooks: ApiCommentaryBooks[];
40
+ /**
41
+ * The list of profiles for each commentary.
42
+ * This maps to the /api/c/:commentaryId/profiles.json endpoint.
43
+ */
44
+ commentaryProfiles: ApiCommentaryProfiles[];
45
+ /**
46
+ * The list of chapters for each commentary book.
47
+ * This maps to the following endpoint:
48
+ * - /api/c/:commentaryId/:bookId/:chapterNumber.json
49
+ */
50
+ commentaryBookChapters: ApiCommentaryBookChapter[];
51
+ /**
52
+ * The list of individual profiles for each commentary.
53
+ * This maps to the following endpoint:
54
+ * - /api/c/:commentaryId/profiles/:profileId.json
55
+ */
56
+ commentaryProfileContents: ApiCommentaryProfileContent[];
57
+ /**
58
+ * The list of available datasets.
59
+ * This maps to the /api/available-datasets.json endpoint.
60
+ */
61
+ availableDatasets?: ApiAvailableDatasets;
62
+ /**
63
+ * The list of books for each dataset.
64
+ * This maps to the /api/d/:datasetId/books.json endpoint.
65
+ */
66
+ datasetBooks?: ApiDatasetBooks[];
67
+ /**
68
+ * The list of chapters for each dataset book.
69
+ * This maps to the following endpoint:
70
+ * - /api/d/:datasetId/:bookId/:chapterNumber.json
71
+ */
72
+ datasetBookChapters?: ApiDatasetBookChapter[];
73
+ /**
74
+ * The complete translation data for each translation.
75
+ * This maps to the /api/:translationId/complete.json endpoint.
76
+ */
77
+ translationComplete: ApiTranslationComplete[];
78
+ /**
79
+ * The path prefix that the API should use.
80
+ */
81
+ pathPrefix: string;
82
+ }
83
+ /**
84
+ * The list of available translations.
85
+ * Maps to the /api/available-translations.json endpoint.
86
+ */
87
+ export interface ApiAvailableTranslations {
88
+ /**
89
+ * The list of translations.
90
+ */
91
+ translations: ApiTranslation[];
92
+ }
93
+ /**
94
+ * The list of available commentaries.
95
+ * Maps to the /api/available-commentaries.json endpoint.
96
+ */
97
+ export interface ApiAvailableCommentaries {
98
+ /**
99
+ * The list of commentaries.
100
+ */
101
+ commentaries: ApiCommentary[];
102
+ }
103
+ /**
104
+ * The list of available datasets.
105
+ * Maps to the /api/available-datasets.json endpoint.
106
+ */
107
+ export interface ApiAvailableDatasets {
108
+ datasets: ApiDataset[];
109
+ }
110
+ /**
111
+ * Defines a dataset that is used in the API.
112
+ */
113
+ export interface ApiDataset extends Dataset {
114
+ /**
115
+ * The API link for the list of books for this dataset.
116
+ */
117
+ listOfBooksApiLink: string;
118
+ /**
119
+ * The available list of formats.
120
+ */
121
+ availableFormats: 'json'[];
122
+ /**
123
+ * The number of books that are contained in this dataset.
124
+ */
125
+ numberOfBooks: number;
126
+ /**
127
+ * The total number of chapters that are contained in this dataset.
128
+ */
129
+ totalNumberOfChapters: number;
130
+ /**
131
+ * The total number of verses that are contained in this dataset.
132
+ */
133
+ totalNumberOfVerses: number;
134
+ /**
135
+ * The total number of references that are contained in this dataset.
136
+ */
137
+ totalNumberOfReferences: number;
138
+ /**
139
+ * Gets the name of the language that the commentary is in.
140
+ * Null or undefined if the name of the language is not known.
141
+ */
142
+ languageName?: string;
143
+ /**
144
+ * Gets the name of the language in English.
145
+ * Null or undefined if the language doesn't have an english name.
146
+ */
147
+ languageEnglishName?: string;
148
+ }
149
+ /**
150
+ * Defines a translation that is used in the API.
151
+ */
152
+ export interface ApiTranslation extends Translation {
153
+ /**
154
+ * The API link for the list of available books for this translation.
155
+ */
156
+ listOfBooksApiLink: string;
157
+ /**
158
+ * The available list of formats.
159
+ */
160
+ availableFormats: ('json' | 'usfm')[];
161
+ /**
162
+ * The number of books that are contained in this translation.
163
+ *
164
+ * Complete translations should have the same number of books as the Bible (66).
165
+ */
166
+ numberOfBooks: number;
167
+ /**
168
+ * The total number of chapters that are contained in this translation.
169
+ *
170
+ * Complete translations should have the same number of chapters as the Bible (1,189).
171
+ */
172
+ totalNumberOfChapters: number;
173
+ /**
174
+ * The total number of verses that are contained in this translation.
175
+ *
176
+ * Complete translations should have the same number of verses as the Bible (around 31,102 - some translations exclude verses based on the aparent likelyhood of existing in the original source texts).
177
+ */
178
+ totalNumberOfVerses: number;
179
+ /**
180
+ * The total number of apocryphal books that are contained in this translation.
181
+ */
182
+ numberOfApocryphalBooks?: number;
183
+ /**
184
+ * The total number of apocryphal chapters that are contained in this translation.
185
+ */
186
+ totalNumberOfApocryphalChapters?: number;
187
+ /**
188
+ * the total number of apocryphal verses that are contained in this translation.
189
+ */
190
+ totalNumberOfApocryphalVerses?: number;
191
+ /**
192
+ * Gets the name of the language that the translation is in.
193
+ * Null or undefined if the name of the language is not known.
194
+ */
195
+ languageName?: string;
196
+ /**
197
+ * Gets the name of the language in English.
198
+ * Null or undefined if the language doesn't have an english name.
199
+ */
200
+ languageEnglishName?: string;
201
+ /**
202
+ * The API link for downloading the complete translation as a single JSON file.
203
+ *
204
+ * Undefined if complete translation files are not available.
205
+ */
206
+ completeTranslationApiLink?: string;
207
+ }
208
+ /**
209
+ * Defines the complete translation download data.
210
+ * Maps to the /api/:translationId/complete.json endpoint.
211
+ */
212
+ export interface ApiTranslationComplete {
213
+ /**
214
+ * The translation metadata.
215
+ */
216
+ translation: ApiTranslation;
217
+ /**
218
+ * The complete list of books with all their chapters.
219
+ */
220
+ books: ApiTranslationCompleteBook[];
221
+ }
222
+ /**
223
+ * A book in the complete translation download.
224
+ */
225
+ export interface ApiTranslationCompleteBook {
226
+ /**
227
+ * The ID of the book.
228
+ */
229
+ id: string;
230
+ /**
231
+ * The name of the book from the translation.
232
+ */
233
+ name: string;
234
+ /**
235
+ * The common name for the book.
236
+ */
237
+ commonName: string;
238
+ /**
239
+ * The title of the book.
240
+ */
241
+ title: string | null;
242
+ /**
243
+ * The order of the book.
244
+ */
245
+ order: number;
246
+ /**
247
+ * The number of chapters in the book.
248
+ */
249
+ numberOfChapters: number;
250
+ /**
251
+ * The total number of verses in the book.
252
+ */
253
+ totalNumberOfVerses: number;
254
+ /**
255
+ * Whether the book is apocryphal.
256
+ */
257
+ isApocryphal?: boolean;
258
+ /**
259
+ * The complete list of chapters with all content.
260
+ */
261
+ chapters: TranslationBookChapter[];
262
+ }
263
+ /**
264
+ * Defines a commentary that is used in the API.
265
+ */
266
+ export interface ApiCommentary extends Commentary {
267
+ /**
268
+ * The API link for the list of available books for this translation.
269
+ */
270
+ listOfBooksApiLink: string;
271
+ /**
272
+ * The API link for the list of available profiles for this commentary.
273
+ */
274
+ listOfProfilesApiLink: string;
275
+ /**
276
+ * The available list of formats.
277
+ */
278
+ availableFormats: ('json' | 'usfm')[];
279
+ /**
280
+ * The number of books that are contained in this commentary.
281
+ *
282
+ * Complete commentaries should have the same number of books as the Bible (66).
283
+ */
284
+ numberOfBooks: number;
285
+ /**
286
+ * The total number of chapters that are contained in this translation.
287
+ *
288
+ * Complete commentaries should have the same number of chapters as the Bible (1,189).
289
+ */
290
+ totalNumberOfChapters: number;
291
+ /**
292
+ * The total number of verses that are contained in this commentary.
293
+ *
294
+ * Complete commentaries should have the same number of verses as the Bible (around 31,102 - some commentaries exclude verses based on the aparent likelyhood of existing in the original source texts).
295
+ */
296
+ totalNumberOfVerses: number;
297
+ /**
298
+ * The total number of profiles that are contained in this commentary.
299
+ *
300
+ * Profiles are used to provide additional information about people and people groups that are mentioned in the Bible.
301
+ */
302
+ totalNumberOfProfiles: number;
303
+ /**
304
+ * Gets the name of the language that the commentary is in.
305
+ * Null or undefined if the name of the language is not known.
306
+ */
307
+ languageName?: string;
308
+ /**
309
+ * Gets the name of the language in English.
310
+ * Null or undefined if the language doesn't have an english name.
311
+ */
312
+ languageEnglishName?: string;
313
+ }
314
+ /**
315
+ * Defines an interface that contains information about the books that are available for a translation.
316
+ */
317
+ export interface ApiTranslationBooks {
318
+ /**
319
+ * The translation information for the books.
320
+ */
321
+ translation: ApiTranslation;
322
+ /**
323
+ * The list of books that are available for the translation.
324
+ */
325
+ books: ApiTranslationBook[];
326
+ }
327
+ /**
328
+ * Defines an interface that contains information about the books that are available for a commentary.
329
+ */
330
+ export interface ApiCommentaryBooks {
331
+ /**
332
+ * The commentary information for the books.
333
+ */
334
+ commentary: ApiCommentary;
335
+ /**
336
+ * The list of books that are available for the commentary.
337
+ */
338
+ books: ApiCommentaryBook[];
339
+ }
340
+ /**
341
+ * Defines an interface that contains information about the books that are available for a dataset.
342
+ */
343
+ export interface ApiDatasetBooks {
344
+ /**
345
+ * The dataset information for the books.
346
+ */
347
+ dataset: ApiDataset;
348
+ /**
349
+ * The list of books that are available for the dataset.
350
+ */
351
+ books: ApiDatasetBook[];
352
+ }
353
+ /**
354
+ * Defines an interface that contains information about the profiles that are available for a commentary.
355
+ */
356
+ export interface ApiCommentaryProfiles {
357
+ /**
358
+ * The commentary information for the books.
359
+ */
360
+ commentary: ApiCommentary;
361
+ /**
362
+ * The list of profiles that are available for the commentary.
363
+ */
364
+ profiles: ApiCommentaryProfile[];
365
+ }
366
+ /**
367
+ * Defines an interface that contains information about a profile.
368
+ */
369
+ export interface ApiCommentaryProfile extends CommentaryProfile {
370
+ /**
371
+ * The link to this profile.
372
+ */
373
+ thisProfileLink: string;
374
+ /**
375
+ * The link to the chapter that this profile references in the commentary.
376
+ */
377
+ referenceChapterLink: string | null;
378
+ }
379
+ /**
380
+ * Defines a translation book that is used in the API.
381
+ */
382
+ export interface ApiTranslationBook extends TranslationBook {
383
+ /**
384
+ * The number of the first chapter in the book.
385
+ */
386
+ firstChapterNumber: number;
387
+ /**
388
+ * The link to the first chapter of the book.
389
+ */
390
+ firstChapterApiLink: string;
391
+ /**
392
+ * The number of the last chapter in the book.
393
+ */
394
+ lastChapterNumber: number;
395
+ /**
396
+ * The link to the last chapter of the book.
397
+ */
398
+ lastChapterApiLink: string;
399
+ /**
400
+ * The number of chapters that the book contains.
401
+ */
402
+ numberOfChapters: number;
403
+ /**
404
+ * The number of verses that the book contains.
405
+ */
406
+ totalNumberOfVerses: number;
407
+ }
408
+ /**
409
+ * Defines a commentary book that is used in the API.
410
+ */
411
+ export interface ApiCommentaryBook extends CommentaryBook {
412
+ /**
413
+ * The number of the first chapter in the book.
414
+ *
415
+ * Null if the comentary book has no chapters.
416
+ */
417
+ firstChapterNumber: number | null;
418
+ /**
419
+ * The link to the first chapter of the book.
420
+ *
421
+ * Null if the comentary book has no chapters.
422
+ */
423
+ firstChapterApiLink: string | null;
424
+ /**
425
+ * The number of the last chapter in the book.
426
+ *
427
+ * Null if the comentary book has no chapters.
428
+ */
429
+ lastChapterNumber: number | null;
430
+ /**
431
+ * The link to the last chapter of the book.
432
+ *
433
+ * Null if the comentary book has no chapters.
434
+ */
435
+ lastChapterApiLink: string | null;
436
+ /**
437
+ * The number of chapters that the book contains.
438
+ */
439
+ numberOfChapters: number;
440
+ /**
441
+ * The number of verses that the book contains.
442
+ */
443
+ totalNumberOfVerses: number;
444
+ }
445
+ /**
446
+ * Defines an interface that contains information about a book in a dataset.
447
+ */
448
+ export interface ApiDatasetBook extends DatasetBook {
449
+ /**
450
+ * The number of the first chapter in the book.
451
+ */
452
+ firstChapterNumber: number;
453
+ /**
454
+ * The link to the first chapter of the book.
455
+ */
456
+ firstChapterApiLink: string;
457
+ /**
458
+ * The number of the last chapter in the book.
459
+ */
460
+ lastChapterNumber: number;
461
+ /**
462
+ * The link to the last chapter of the book.
463
+ */
464
+ lastChapterApiLink: string;
465
+ /**
466
+ * The number of chapters that the book contains.
467
+ */
468
+ numberOfChapters: number;
469
+ /**
470
+ * The number of verses that the book contains.
471
+ */
472
+ totalNumberOfVerses: number;
473
+ /**
474
+ * The number of references that the book contains.
475
+ */
476
+ totalNumberOfReferences: number;
477
+ }
478
+ /**
479
+ * Defines an interface that contains information about a book chapter.
480
+ */
481
+ export interface ApiTranslationBookChapter extends TranslationBookChapter {
482
+ /**
483
+ * The translation information for the book chapter.
484
+ */
485
+ translation: ApiTranslation;
486
+ /**
487
+ * The book information for the book chapter.
488
+ */
489
+ book: ApiTranslationBook;
490
+ /**
491
+ * The link to this chapter.
492
+ */
493
+ thisChapterLink: string;
494
+ /**
495
+ * The link to the next chapter.
496
+ * Null if this is the last chapter in the translation.
497
+ */
498
+ nextChapterApiLink: string | null;
499
+ /**
500
+ * The links to the audio versions for the next chapter.
501
+ * Null if this is the last chapter in the translation.
502
+ */
503
+ nextChapterAudioLinks: TranslationBookChapterAudioLinks | null;
504
+ /**
505
+ * The link to the previous chapter.
506
+ * Null if this is the first chapter in the translation.
507
+ */
508
+ previousChapterApiLink: string | null;
509
+ /**
510
+ * The links to the audio versions for the previous chapter.
511
+ * Null if this is the first chapter in the translation.
512
+ */
513
+ previousChapterAudioLinks: TranslationBookChapterAudioLinks | null;
514
+ /**
515
+ * The number of verses that the chapter contains.
516
+ */
517
+ numberOfVerses: number;
518
+ }
519
+ /**
520
+ * Defines an interface that contains information about a book chapter.
521
+ */
522
+ export interface ApiCommentaryBookChapter extends CommentaryBookChapter {
523
+ /**
524
+ * The commentary information for the book chapter.
525
+ */
526
+ commentary: ApiCommentary;
527
+ /**
528
+ * The book information for the book chapter.
529
+ */
530
+ book: ApiCommentaryBook;
531
+ /**
532
+ * The link to this chapter.
533
+ */
534
+ thisChapterLink: string;
535
+ /**
536
+ * The link to the next chapter.
537
+ * Null if this is the last chapter in the translation.
538
+ */
539
+ nextChapterApiLink: string | null;
540
+ /**
541
+ * The link to the previous chapter.
542
+ * Null if this is the first chapter in the translation.
543
+ */
544
+ previousChapterApiLink: string | null;
545
+ /**
546
+ * The number of verses that the chapter contains.
547
+ */
548
+ numberOfVerses: number;
549
+ }
550
+ /**
551
+ * Defines an interface that contains information about a book chapter.
552
+ */
553
+ export interface ApiDatasetBookChapter extends DatasetBookChapter {
554
+ /**
555
+ * The dataset information for the book chapter.
556
+ */
557
+ dataset: ApiDataset;
558
+ /**
559
+ * The book information for the book chapter.
560
+ */
561
+ book: ApiDatasetBook;
562
+ /**
563
+ * The link to this chapter.
564
+ */
565
+ thisChapterLink: string;
566
+ /**
567
+ * The link to the next chapter.
568
+ * Null if this is the last chapter in the translation.
569
+ */
570
+ nextChapterApiLink: string | null;
571
+ /**
572
+ * The link to the previous chapter.
573
+ * Null if this is the first chapter in the translation.
574
+ */
575
+ previousChapterApiLink: string | null;
576
+ /**
577
+ * The number of verses that the chapter contains.
578
+ */
579
+ numberOfVerses: number;
580
+ /**
581
+ * The number of references that the chapter contains.
582
+ */
583
+ numberOfReferences: number;
584
+ }
585
+ export interface ApiTranslationBookChapterAudio {
586
+ /**
587
+ * The chapter that the audio is for.
588
+ */
589
+ chapter: ApiTranslationBookChapter;
590
+ /**
591
+ * The link that the audio should be placed at.
592
+ */
593
+ link: string;
594
+ /**
595
+ * The original URL of the audio.
596
+ */
597
+ originalUrl: string;
598
+ }
599
+ export interface ApiCommentaryProfileContent {
600
+ /**
601
+ * The commentary information for the profile.
602
+ */
603
+ commentary: ApiCommentary;
604
+ /**
605
+ * The information about the profile.
606
+ */
607
+ profile: ApiCommentaryProfile;
608
+ /**
609
+ * The content of the profile.
610
+ */
611
+ content: string[];
612
+ }
613
+ /**
614
+ * The options for generating the API.
615
+ */
616
+ export interface GenerateApiOptions {
617
+ /**
618
+ * Whether to use the common name for the book chapter API link. If false, then book IDs are used.
619
+ * Audio URLs will always use the book ID.
620
+ * Defaults to false.
621
+ */
622
+ useCommonName?: boolean;
623
+ /**
624
+ * Whether to replace the audio URLs in the dataset with ones that are hosted locally.
625
+ * If true, then the audio URLs in the dataset will be replaced with ones that reference files hosted by the API itself.
626
+ * If false, then the audio URLs in the dataset will be left as is.
627
+ * Defaults to false.
628
+ */
629
+ generateAudioFiles?: boolean;
630
+ /**
631
+ * Gets the english name of the given language.
632
+ * If not provided, then the english name for the language will be unknown and omitted.
633
+ * @param language The language to get the english name for.
634
+ */
635
+ getEnglishName?: (language: string) => string | null | undefined;
636
+ /**
637
+ * Gets the native name of the given language.
638
+ * If not provided, then the native name for the language will be unknown and omitted.
639
+ * @param language The language to get the native name for.
640
+ */
641
+ getNativeName?: (language: string) => string | null | undefined;
642
+ /**
643
+ * The prefix that should be added to paths that are generated.
644
+ */
645
+ pathPrefix?: string;
646
+ /**
647
+ * Whether to generate complete translation files for each translation.
648
+ */
649
+ generateCompleteTranslationFiles?: boolean;
650
+ }
651
+ /**
652
+ * Generates the API output for the given dataset.
653
+ * @param dataset The dataset to generate the API for.
654
+ * @param options The options for generating the API.
655
+ */
656
+ export declare function generateApiForDataset(dataset: DatasetOutput, options?: GenerateApiOptions): ApiOutput;
657
+ /**
658
+ * Generates the output files for the given API.
659
+ * @param api The API that the files should be generated for.
660
+ */
661
+ export declare function generateFilesForApi(api: ApiOutput): OutputFile[];
662
+ /**
663
+ * Generates the output files for the given datasets.
664
+ * @param datasets The datasets to generate the output files for.
665
+ * @param options The options for generating the API files.
666
+ */
667
+ export declare function generateOutputFilesFromDatasets(datasets: AsyncIterable<DatasetOutput>, options?: GenerateApiOptions): AsyncGenerator<OutputFile[]>;
668
+ /**
669
+ * Gets the API Link for the list of books endpoint for a translation.
670
+ * @param translationId The ID of the translation.
671
+ * @returns
672
+ */
673
+ export declare function listOfBooksApiLink(translationId: string, prefix?: string): string;
674
+ /**
675
+ * Gets the API Link for the complete translation download endpoint.
676
+ * @param translationId The ID of the translation.
677
+ * @param prefix The path prefix.
678
+ * @returns
679
+ */
680
+ export declare function completeTranslationApiLink(translationId: string, prefix?: string): string;
681
+ /**
682
+ * Gets the API Link for the list of books endpoint for a commentary.
683
+ * @param commentaryId The ID of the commentary.
684
+ * @returns
685
+ */
686
+ export declare function listOfCommentaryBooksApiLink(commentaryId: string, prefix?: string): string;
687
+ /**
688
+ * Gets the API Link for the list of books endpoint for a dataset.
689
+ * @param datasetId The ID of the dataset.
690
+ * @returns
691
+ */
692
+ export declare function listOfDatasetBooksApiLink(datasetId: string, prefix?: string): string;
693
+ /**
694
+ * Getes the API link for a book chapter.
695
+ * @param translationId The ID of the translation.
696
+ * @param commonName The name of the book.
697
+ * @param chapterNumber The number of the book.
698
+ * @param extension The extension of the file.
699
+ */
700
+ export declare function bookChapterApiLink(translationId: string, commonName: string, chapterNumber: number, extension: string, prefix?: string): string;
701
+ /**
702
+ * Getes the API link for a book chapter.
703
+ * @param translationId The ID of the translation.
704
+ * @param commonName The name of the book.
705
+ * @param chapterNumber The number of the book.
706
+ * @param extension The extension of the file.
707
+ */
708
+ export declare function bookCommentaryChapterApiLink(translationId: string, commonName: string, chapterNumber: number, extension: string, prefix?: string): string;
709
+ export declare function bookChapterAudioApiLink(translationId: string, bookId: string, chapterNumber: number, reader: string, prefix?: string): string;
710
+ /**
711
+ * Getes the API link for a book chapter.
712
+ * @param translationId The ID of the translation.
713
+ * @param commonName The name of the book.
714
+ * @param chapterNumber The number of the book.
715
+ * @param extension The extension of the file.
716
+ */
717
+ export declare function bookDatasetChapterApiLink(translationId: string, commonName: string, chapterNumber: number, extension: string, prefix?: string): string;
718
+ /**
719
+ * Gets the API link for a profile.
720
+ * @param translationId The ID of the translation.
721
+ * @param profileId The ID of the profile.
722
+ * @param extension The extension of the file.
723
+ */
724
+ export declare function profilesCommentaryApiLink(translationId: string, extension: string, prefix?: string): string;
725
+ /**
726
+ * Gets the API link for a profile.
727
+ * @param translationId The ID of the translation.
728
+ * @param profileId The ID of the profile.
729
+ * @param extension The extension of the file.
730
+ */
731
+ export declare function profileCommentaryApiLink(translationId: string, profileId: string, extension: string, prefix?: string): string;
732
+ export declare function jsonFile(path: string, content: any, mergable?: boolean): OutputFile;
733
+ export declare function downloadedFile(path: string, url: string): OutputFile;
734
+ export declare function replaceSpacesWithUnderscores(str: string): string;
735
+ //# sourceMappingURL=api.d.ts.map