@aim-packages/subtitle 0.0.9 → 0.0.10

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.
package/dist/index.d.ts CHANGED
@@ -66,6 +66,15 @@ declare interface AimSegments {
66
66
 
67
67
  declare function assToAimSegments(text: string): Promise<AimSegments[]>;
68
68
 
69
+ declare function chunkArrayStrings(strings: string[], characterLimit: number): string[];
70
+
71
+ declare function chunkSegmentStringsWithIndex(segments: AimSegments[], characterLimit: number): {
72
+ segmentsResult: AimSegments[][];
73
+ stringResult: string[];
74
+ indexStringResult: string[];
75
+ indexResult: number[];
76
+ };
77
+
69
78
  /**
70
79
  * 匹配中文、日文、韩文字符的正则表达式
71
80
  *
@@ -348,7 +357,9 @@ export declare namespace utils {
348
357
  formatTime,
349
358
  convertToSeconds,
350
359
  containsCJKCharacters,
351
- languageCodeToName
360
+ languageCodeToName,
361
+ chunkArrayStrings,
362
+ chunkSegmentStringsWithIndex
352
363
  }
353
364
  }
354
365