@intlayer/engine 9.4.2 → 9.4.4

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.
Files changed (288) hide show
  1. package/dist/cjs/init/utils/configManipulation.cjs +30 -1
  2. package/dist/cjs/init/utils/configManipulation.cjs.map +1 -1
  3. package/dist/cjs/init/utils/packageManager.cjs +2 -1
  4. package/dist/cjs/init/utils/packageManager.cjs.map +1 -1
  5. package/dist/esm/init/utils/configManipulation.mjs +30 -1
  6. package/dist/esm/init/utils/configManipulation.mjs.map +1 -1
  7. package/dist/esm/init/utils/packageManager.mjs +2 -1
  8. package/dist/esm/init/utils/packageManager.mjs.map +1 -1
  9. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
  10. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
  11. package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
  12. package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
  13. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
  14. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
  15. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
  16. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
  17. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
  18. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
  19. package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
  20. package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
  21. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
  22. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
  23. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
  24. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
  25. package/dist/types/cleanOutputDir.d.ts +1 -2
  26. package/dist/types/cleanOutputDir.d.ts.map +1 -1
  27. package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
  28. package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
  29. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
  30. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
  31. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
  32. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
  33. package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
  34. package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
  35. package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
  36. package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
  37. package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
  38. package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
  39. package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
  40. package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
  41. package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
  42. package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
  43. package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
  44. package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
  45. package/dist/types/createType/createType.d.ts +2 -3
  46. package/dist/types/createType/createType.d.ts.map +1 -1
  47. package/dist/types/detectFormatCommand.d.ts +1 -2
  48. package/dist/types/detectFormatCommand.d.ts.map +1 -1
  49. package/dist/types/docReview/alignBlocks.d.ts +1 -2
  50. package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
  51. package/dist/types/docReview/computeSimilarity.d.ts +2 -3
  52. package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
  53. package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
  54. package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
  55. package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
  56. package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
  57. package/dist/types/docReview/normalizeBlock.d.ts +1 -2
  58. package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
  59. package/dist/types/docReview/pipeline.d.ts +4 -4
  60. package/dist/types/docReview/pipeline.d.ts.map +1 -1
  61. package/dist/types/docReview/planActions.d.ts +1 -2
  62. package/dist/types/docReview/planActions.d.ts.map +1 -1
  63. package/dist/types/docReview/rebuildDocument.d.ts +5 -6
  64. package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
  65. package/dist/types/docReview/reviewReport.d.ts +8 -9
  66. package/dist/types/docReview/reviewReport.d.ts.map +1 -1
  67. package/dist/types/docReview/segmentDocument.d.ts +2 -3
  68. package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
  69. package/dist/types/docReview/types.d.ts +9 -10
  70. package/dist/types/docReview/types.d.ts.map +1 -1
  71. package/dist/types/fetchDistantDictionaries.d.ts +1 -2
  72. package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
  73. package/dist/types/filterInvalidDictionaries.d.ts +2 -3
  74. package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
  75. package/dist/types/formatDictionary.d.ts +7 -7
  76. package/dist/types/formatDictionary.d.ts.map +1 -1
  77. package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
  78. package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
  79. package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
  80. package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
  81. package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
  82. package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
  83. package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
  84. package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
  85. package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
  86. package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
  87. package/dist/types/init/cms.d.ts +8 -9
  88. package/dist/types/init/cms.d.ts.map +1 -1
  89. package/dist/types/init/frameworkSetup/index.d.ts +2 -2
  90. package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
  91. package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
  92. package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
  93. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
  94. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
  95. package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
  96. package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
  97. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
  98. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
  99. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
  100. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
  101. package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
  102. package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
  103. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
  104. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
  105. package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
  106. package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
  107. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
  108. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
  109. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
  110. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
  111. package/dist/types/init/frameworkSetup/types.d.ts +2 -3
  112. package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
  113. package/dist/types/init/index.d.ts +4 -5
  114. package/dist/types/init/index.d.ts.map +1 -1
  115. package/dist/types/init/utils/astImports.d.ts +3 -4
  116. package/dist/types/init/utils/astImports.d.ts.map +1 -1
  117. package/dist/types/init/utils/configManipulation.d.ts +19 -20
  118. package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
  119. package/dist/types/init/utils/fileSystem.d.ts +11 -12
  120. package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
  121. package/dist/types/init/utils/githubActions.d.ts +7 -8
  122. package/dist/types/init/utils/githubActions.d.ts.map +1 -1
  123. package/dist/types/init/utils/jsonParser.d.ts +1 -2
  124. package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
  125. package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
  126. package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
  127. package/dist/types/init/utils/packageManager.d.ts +17 -18
  128. package/dist/types/init/utils/packageManager.d.ts.map +1 -1
  129. package/dist/types/init/utils/tsConfig.d.ts +1 -2
  130. package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
  131. package/dist/types/init/utils/version.d.ts +1 -2
  132. package/dist/types/init/utils/version.d.ts.map +1 -1
  133. package/dist/types/initConfig/index.d.ts +2 -3
  134. package/dist/types/initConfig/index.d.ts.map +1 -1
  135. package/dist/types/installLSP.d.ts +1 -2
  136. package/dist/types/installLSP.d.ts.map +1 -1
  137. package/dist/types/installMCP/installMCP.d.ts +2 -3
  138. package/dist/types/installMCP/installMCP.d.ts.map +1 -1
  139. package/dist/types/installSkills/index.d.ts +9 -10
  140. package/dist/types/installSkills/index.d.ts.map +1 -1
  141. package/dist/types/intlayer/dist/types/index.d.ts +14 -0
  142. package/dist/types/listDictionariesPath.d.ts +2 -3
  143. package/dist/types/listDictionariesPath.d.ts.map +1 -1
  144. package/dist/types/listGitFiles.d.ts +5 -6
  145. package/dist/types/listGitFiles.d.ts.map +1 -1
  146. package/dist/types/listProjects.d.ts +3 -4
  147. package/dist/types/listProjects.d.ts.map +1 -1
  148. package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
  149. package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
  150. package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
  151. package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
  152. package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
  153. package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
  154. package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
  155. package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
  156. package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +1 -2
  157. package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
  158. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
  159. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
  160. package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
  161. package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
  162. package/dist/types/loadDictionaries/log.d.ts +1 -2
  163. package/dist/types/loadDictionaries/log.d.ts.map +1 -1
  164. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
  165. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
  166. package/dist/types/logConfigDetails.d.ts +1 -2
  167. package/dist/types/logConfigDetails.d.ts.map +1 -1
  168. package/dist/types/prepareIntlayer.d.ts +1 -2
  169. package/dist/types/prepareIntlayer.d.ts.map +1 -1
  170. package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
  171. package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
  172. package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
  173. package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
  174. package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
  175. package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
  176. package/dist/types/scan/calculateScore.d.ts +6 -7
  177. package/dist/types/scan/calculateScore.d.ts.map +1 -1
  178. package/dist/types/scan/checks.d.ts +8 -9
  179. package/dist/types/scan/checks.d.ts.map +1 -1
  180. package/dist/types/scan/parseHtml.d.ts +13 -14
  181. package/dist/types/scan/parseHtml.d.ts.map +1 -1
  182. package/dist/types/scan/scanWebsite.d.ts +1 -2
  183. package/dist/types/scan/scanWebsite.d.ts.map +1 -1
  184. package/dist/types/scan/types.d.ts +9 -10
  185. package/dist/types/scan/types.d.ts.map +1 -1
  186. package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
  187. package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
  188. package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
  189. package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
  190. package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
  191. package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
  192. package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
  193. package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
  194. package/dist/types/syncPluginKit/types.d.ts +8 -9
  195. package/dist/types/syncPluginKit/types.d.ts.map +1 -1
  196. package/dist/types/utils/autoDecorateContent.d.ts +1 -2
  197. package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
  198. package/dist/types/utils/babelParser.d.ts +3 -3
  199. package/dist/types/utils/babelParser.d.ts.map +1 -1
  200. package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
  201. package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
  202. package/dist/types/utils/buildFilesList.d.ts +3 -4
  203. package/dist/types/utils/buildFilesList.d.ts.map +1 -1
  204. package/dist/types/utils/chunkArray.d.ts +1 -2
  205. package/dist/types/utils/chunkArray.d.ts.map +1 -1
  206. package/dist/types/utils/chunkJSON.d.ts +5 -6
  207. package/dist/types/utils/chunkJSON.d.ts.map +1 -1
  208. package/dist/types/utils/formatter.d.ts +2 -3
  209. package/dist/types/utils/formatter.d.ts.map +1 -1
  210. package/dist/types/utils/getChunk.d.ts +1 -2
  211. package/dist/types/utils/getChunk.d.ts.map +1 -1
  212. package/dist/types/utils/getContentExtension.d.ts +1 -2
  213. package/dist/types/utils/getContentExtension.d.ts.map +1 -1
  214. package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
  215. package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
  216. package/dist/types/utils/getPathHash.d.ts +1 -2
  217. package/dist/types/utils/getPathHash.d.ts.map +1 -1
  218. package/dist/types/utils/mergeChunks.d.ts +1 -2
  219. package/dist/types/utils/mergeChunks.d.ts.map +1 -1
  220. package/dist/types/utils/pLimit.d.ts +2 -3
  221. package/dist/types/utils/pLimit.d.ts.map +1 -1
  222. package/dist/types/utils/parallelize.d.ts +1 -2
  223. package/dist/types/utils/parallelize.d.ts.map +1 -1
  224. package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
  225. package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
  226. package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
  227. package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
  228. package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
  229. package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
  230. package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
  231. package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
  232. package/dist/types/utils/resolveRelativePath.d.ts +1 -2
  233. package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
  234. package/dist/types/utils/runOnce.d.ts +2 -3
  235. package/dist/types/utils/runOnce.d.ts.map +1 -1
  236. package/dist/types/utils/runParallel/bin.d.ts +1 -2
  237. package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
  238. package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
  239. package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
  240. package/dist/types/utils/runParallel/index.d.ts +2 -3
  241. package/dist/types/utils/runParallel/index.d.ts.map +1 -1
  242. package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
  243. package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
  244. package/dist/types/utils/runParallel/ps.d.ts +1 -2
  245. package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
  246. package/dist/types/utils/runParallel/runTask.d.ts +1 -2
  247. package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
  248. package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
  249. package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
  250. package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
  251. package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
  252. package/dist/types/utils/runParallel/wmic.d.ts +1 -2
  253. package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
  254. package/dist/types/utils/sortAlphabetically.d.ts +1 -2
  255. package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
  256. package/dist/types/utils/splitTextByLine.d.ts +1 -2
  257. package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
  258. package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
  259. package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
  260. package/dist/types/watcher.d.ts +2 -3
  261. package/dist/types/watcher.d.ts.map +1 -1
  262. package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
  263. package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
  264. package/dist/types/writeConfiguration/index.d.ts +2 -3
  265. package/dist/types/writeConfiguration/index.d.ts.map +1 -1
  266. package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
  267. package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
  268. package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
  269. package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
  270. package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
  271. package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
  272. package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
  273. package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
  274. package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
  275. package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
  276. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
  277. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
  278. package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
  279. package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
  280. package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
  281. package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
  282. package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
  283. package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
  284. package/dist/types/writeFileIfChanged.d.ts +2 -3
  285. package/dist/types/writeFileIfChanged.d.ts.map +1 -1
  286. package/dist/types/writeJsonIfChanged.d.ts +1 -2
  287. package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
  288. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"reviewReport.d.ts","names":[],"sources":["../../../src/docReview/reviewReport.ts"],"mappings":";;;;;;;;;KAYY;;KAGA;EACV;EACA;;;;;;;;;KAUU;;EAEV,QAAQ;;EAER,gBAAgB;;EAEhB,kBAAkB;;EAElB;;EAEA;;KAGU;;EAEV;;EAEA;;EAEA;;EAEA;;KAGU;;EAEV,QAAQ;;EAER,SAAS;;KAGC;;EAEV;;EAEA;;;;;;;;;EASA;;;;;;;;;;;;;cAcW,sBAAiB,UAAA,YAAA,gBAI3B,2BAAyB;;;;;;;;;;;cAgJf,qBAAkB,QACrB,cAAY;EACR;EAAoB"}
1
+ {"version":3,"file":"reviewReport.d.ts","names":[],"sources":["../../../src/docReview/reviewReport.ts"],"mappings":";;;;;;;;;YAYY;;YAGA;EACV;EACA;;;;;;;;;YAUU;;EAEV,QAAQ;;EAER,gBAAgB;;EAEhB,kBAAkB;;EAElB;;EAEA;;YAGU;;EAEV;;EAEA;;EAEA;;EAEA;;YAGU;;EAEV,QAAQ;;EAER,SAAS;;YAGC;;EAEV;;EAEA;;;;;;;;;EASA;;;;;;;;;;;;;qBAcW,sBAAiB,UAAA,YAAA,gBAI3B,2BAAyB;;;;;;;;;;;qBAgJf,qBAAkB,QACrB,cAAY;EACR;EAAoB"}
@@ -14,7 +14,7 @@ import { Block } from "./types.js";
14
14
  * @param text - The full markdown document.
15
15
  * @returns The ordered list of blocks with their 1-based line ranges.
16
16
  */
17
- declare const segmentDocument: (text: string) => Block[];
17
+ export declare const segmentDocument: (text: string) => Block[];
18
18
  /**
19
19
  * Split a markdown document into coarse, heading-anchored sections.
20
20
  *
@@ -33,7 +33,6 @@ declare const segmentDocument: (text: string) => Block[];
33
33
  * @param text - The full markdown document.
34
34
  * @returns The ordered list of sections with their 1-based line ranges.
35
35
  */
36
- declare const segmentSections: (text: string) => Block[];
36
+ export declare const segmentSections: (text: string) => Block[];
37
37
  //#endregion
38
- export { segmentDocument, segmentSections };
39
38
  //# sourceMappingURL=segmentDocument.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"segmentDocument.d.ts","names":[],"sources":["../../../src/docReview/segmentDocument.ts"],"mappings":";;;;;;;;;;;;;;;;cAoDa,kBAAe,iBAAmB;;;;;;;;;;;;;;;;;;;cAuIlC,kBAAe,iBAAmB"}
1
+ {"version":3,"file":"segmentDocument.d.ts","names":[],"sources":["../../../src/docReview/segmentDocument.ts"],"mappings":";;;;;;;;;;;;;;;;qBAoDa,kBAAe,iBAAmB;;;;;;;;;;;;;;;;;;;qBAuIlC,kBAAe,iBAAmB"}
@@ -4,11 +4,11 @@
4
4
  *
5
5
  * Used to weight the alignment between a base document and its translation.
6
6
  */
7
- type BlockType = 'heading' | 'paragraph' | 'list_item' | 'code_block' | 'blockquote' | 'table' | 'horizontal_rule' | 'html' | 'unknown';
7
+ export type BlockType = 'heading' | 'paragraph' | 'list_item' | 'code_block' | 'blockquote' | 'table' | 'horizontal_rule' | 'html' | 'unknown';
8
8
  /**
9
9
  * A raw markdown block extracted from a document, with its line range.
10
10
  */
11
- type Block = {
11
+ export type Block = {
12
12
  type: BlockType;
13
13
  content: string;
14
14
  /**
@@ -28,7 +28,7 @@ type Block = {
28
28
  /**
29
29
  * A {@link Block} enriched with normalized text used for similarity matching.
30
30
  */
31
- type NormalizedBlock = Block & {
31
+ export type NormalizedBlock = Block & {
32
32
  /** Lower-cased, markdown-stripped text used for semantic comparison. */
33
33
  semanticText: string;
34
34
  /** Non-letter characters (digits, punctuation, symbols) kept as a structural anchor. */
@@ -37,7 +37,7 @@ type NormalizedBlock = Block & {
37
37
  /**
38
38
  * A {@link NormalizedBlock} enriched with content digests used to detect reuse.
39
39
  */
40
- type FingerprintedBlock = NormalizedBlock & {
40
+ export type FingerprintedBlock = NormalizedBlock & {
41
41
  semanticDigest: string;
42
42
  anchorDigest: string;
43
43
  compositeKey: string;
@@ -49,7 +49,7 @@ type FingerprintedBlock = NormalizedBlock & {
49
49
  * `baseIndex === -1` means the target block has no base counterpart (deletion).
50
50
  * `targetIndex === null` means the base block has no target counterpart (insertion).
51
51
  */
52
- type AlignmentPair = {
52
+ export type AlignmentPair = {
53
53
  baseIndex: number;
54
54
  targetIndex: number | null;
55
55
  similarityScore: number;
@@ -57,7 +57,7 @@ type AlignmentPair = {
57
57
  /**
58
58
  * An action the merge step should take for a given aligned pair of blocks.
59
59
  */
60
- type PlannedAction = {
60
+ export type PlannedAction = {
61
61
  kind: 'reuse';
62
62
  baseIndex: number;
63
63
  targetIndex: number;
@@ -72,17 +72,16 @@ type PlannedAction = {
72
72
  kind: 'delete';
73
73
  targetIndex: number;
74
74
  };
75
- type AlignmentPlan = {
75
+ export type AlignmentPlan = {
76
76
  actions: PlannedAction[];
77
77
  };
78
78
  /** A 1-based line number that changed in the base document. */
79
- type LineChange = number;
80
- type SimilarityOptions = {
79
+ export type LineChange = number;
80
+ export type SimilarityOptions = {
81
81
  /** Minimum anchor similarity to consider two blocks identical (for example 0.90). */
82
82
  minimumMatchForReuse: number;
83
83
  /** Minimum anchor similarity to consider two blocks near-duplicates (for example 0.80). */
84
84
  minimumMatchForNearDuplicate: number;
85
85
  };
86
86
  //#endregion
87
- export { AlignmentPair, AlignmentPlan, Block, BlockType, FingerprintedBlock, LineChange, NormalizedBlock, PlannedAction, SimilarityOptions };
88
87
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/docReview/types.ts"],"mappings":";;;;;;KAKY;;;;KAcA;EACV,MAAM;EACN;;;;;;;;;EASA;;EAEA;;EAEA;;;;;KAMU,kBAAkB;;EAE5B;;EAEA;;;;;KAMU,qBAAqB;EAC/B;EACA;EACA;EACA;;;;;;;;KASU;EACV;EACA;EACA;;;;;KAMU;EACN;EAAe;EAAmB;;EAClC;EAAgB;EAAmB;;EACnC;EAAoB;;EACpB;EAAgB;;KAEV;EACV,SAAS;;;KAIC;KAEA;;EAEV;;EAEA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/docReview/types.ts"],"mappings":";;;;;;YAKY;;;;YAcA;EACV,MAAM;EACN;;;;;;;;;EASA;;EAEA;;EAEA;;;;;YAMU,kBAAkB;;EAE5B;;EAEA;;;;;YAMU,qBAAqB;EAC/B;EACA;EACA;EACA;;;;;;;;YASU;EACV;EACA;EACA;;;;;YAMU;EACN;EAAe;EAAmB;;EAClC;EAAgB;EAAmB;;EACnC;EAAoB;;EACpB;EAAgB;;YAEV;EACV,SAAS;;;YAIC;YAEA;;EAEV;;EAEA"}
@@ -36,7 +36,6 @@ type FetchDistantDictionariesOptions = {
36
36
  * as soon as its request settles, so no batch waits for the whole wave.
37
37
  * Failing requests are retried before their keys are reported as errors.
38
38
  */
39
- declare const fetchDistantDictionaries: (options: FetchDistantDictionariesOptions, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise<DictionaryAPI[]>;
39
+ export declare const fetchDistantDictionaries: (options: FetchDistantDictionariesOptions, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise<DictionaryAPI[]>;
40
40
  //#endregion
41
- export { fetchDistantDictionaries };
42
41
  //# sourceMappingURL=fetchDistantDictionaries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../src/fetchDistantDictionaries.ts"],"mappings":";;;;KAqDK;EACH;EACA;EACA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;;;;cAYW,2BAAwB,SAC1B,iCAA+B,kBACtB,QAAQ,kCACzB,QAAQ"}
1
+ {"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../src/fetchDistantDictionaries.ts"],"mappings":";;;;KAqDK;EACH;EACA;EACA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;;;;qBAYW,2BAAwB,SAC1B,iCAA+B,kBACtB,QAAQ,kCACzB,QAAQ"}
@@ -4,8 +4,7 @@ import { Dictionary } from "@intlayer/types/dictionary";
4
4
  type IsInvalidDictionaryOptions = {
5
5
  checkSchema: boolean;
6
6
  };
7
- declare const isInvalidDictionary: (dictionary: Dictionary | undefined, configuration?: IntlayerConfig, options?: IsInvalidDictionaryOptions) => boolean;
8
- declare const filterInvalidDictionaries: (dictionaries: (Dictionary | undefined)[] | undefined, configuration: IntlayerConfig, options?: IsInvalidDictionaryOptions) => Dictionary[];
7
+ export declare const isInvalidDictionary: (dictionary: Dictionary | undefined, configuration?: IntlayerConfig, options?: IsInvalidDictionaryOptions) => boolean;
8
+ export declare const filterInvalidDictionaries: (dictionaries: (Dictionary | undefined)[] | undefined, configuration: IntlayerConfig, options?: IsInvalidDictionaryOptions) => Dictionary[];
9
9
  //#endregion
10
- export { filterInvalidDictionaries, isInvalidDictionary };
11
10
  //# sourceMappingURL=filterInvalidDictionaries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filterInvalidDictionaries.d.ts","names":[],"sources":["../../src/filterInvalidDictionaries.ts"],"mappings":";;;KAaK;EAA+B;;cAEvB,sBAAmB,YAClB,wBAAsB,gBAClB,gBAAc,UACpB;cA2GC,4BAAyB,eACrB,uCAAqC,eACrC,gBAAc,UACnB,+BACT"}
1
+ {"version":3,"file":"filterInvalidDictionaries.d.ts","names":[],"sources":["../../src/filterInvalidDictionaries.ts"],"mappings":";;;KAaK;EAA+B;;qBAEvB,sBAAmB,YAClB,wBAAsB,gBAClB,gBAAc,UACpB;qBA2GC,4BAAyB,eACrB,uCAAqC,eACrC,gBAAc,UACnB,+BACT"}
@@ -1,8 +1,9 @@
1
+ import { LocalesValues } from "./intlayer/dist/types/index.js";
1
2
  import { Dictionary } from "@intlayer/types/dictionary";
2
3
  //#region src/formatDictionary.d.ts
3
- declare const formatDictionary: (dictionary: Dictionary) => Dictionary;
4
- declare const formatDictionaries: (dictionaries: Dictionary[]) => Promise<Dictionary[]>;
5
- declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionary['format']) => {
4
+ export declare const formatDictionary: (dictionary: Dictionary) => Dictionary;
5
+ export declare const formatDictionaries: (dictionaries: Dictionary[]) => Promise<Dictionary[]>;
6
+ export declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionary['format']) => {
6
7
  $schema?: "https://intlayer.org/schema.json";
7
8
  id?: import("@intlayer/types").DictionaryId;
8
9
  projectIds?: string[];
@@ -18,7 +19,7 @@ declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionar
18
19
  tags?: string[];
19
20
  item?: number;
20
21
  variant?: import("@intlayer/types").DictionaryVariantValue | import("@intlayer/types").DictionaryVariantValue[];
21
- locale?: import("@intlayer/types").LocalesValues;
22
+ locale?: LocalesValues;
22
23
  contentAutoTransformation?: import("@intlayer/types").ContentAutoTransformation;
23
24
  fill?: import("@intlayer/types").Fill;
24
25
  filled?: true;
@@ -29,7 +30,7 @@ declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionar
29
30
  format: string;
30
31
  content: import("@intlayer/core/messageFormat").JsonValue;
31
32
  } | Dictionary;
32
- declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dictionary['format']) => ({
33
+ export declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dictionary['format']) => ({
33
34
  $schema?: "https://intlayer.org/schema.json";
34
35
  id?: import("@intlayer/types").DictionaryId;
35
36
  projectIds?: string[];
@@ -45,7 +46,7 @@ declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dic
45
46
  tags?: string[];
46
47
  item?: number;
47
48
  variant?: import("@intlayer/types").DictionaryVariantValue | import("@intlayer/types").DictionaryVariantValue[];
48
- locale?: import("@intlayer/types").LocalesValues;
49
+ locale?: LocalesValues;
49
50
  contentAutoTransformation?: import("@intlayer/types").ContentAutoTransformation;
50
51
  fill?: import("@intlayer/types").Fill;
51
52
  filled?: true;
@@ -57,5 +58,4 @@ declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dic
57
58
  content: import("@intlayer/core/messageFormat").JsonValue;
58
59
  } | Dictionary)[];
59
60
  //#endregion
60
- export { formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput };
61
61
  //# sourceMappingURL=formatDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatDictionary.d.ts","names":[],"sources":["../../src/formatDictionary.ts"],"mappings":";;cAYa,mBAAgB,YAAgB,eAAa;cAoC7C,qBAAkB,cACf,iBACb,QAAQ;cAEE,yBAAsB,YACrB,YAAU,QACd;;;;;;;;;;;;;;;;;;;;;;;;;;IAmCT;cAEY,2BAAwB,cACrB,cAAY,QAClB;;;;;;;;;;;;;;;;;;;;;;;;;;IAEoE"}
1
+ {"version":3,"file":"formatDictionary.d.ts","names":[],"sources":["../../src/formatDictionary.ts"],"mappings":";;;qBAYa,mBAAgB,YAAgB,eAAa;qBAoC7C,qBAAkB,cACf,iBACb,QAAQ;qBAEE,yBAAsB,YACrB,YAAU,QACd;;;;;;;;;;;;;;;;;;;;;;;;;;IAmCT;qBAEY,2BAAwB,cACrB,cAAY,QAClB;;;;;;;;;;;;;;;;;;;;;;;;;;IAEoE"}
@@ -1,6 +1,5 @@
1
1
  import { Format } from "../utils/getFormatFromExtension.js";
2
2
  //#region src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts
3
- declare const getContentDeclarationFileTemplate: (key: string, format: Format, fileParams?: Record<string, any>, noMetadata?: boolean) => Promise<string>;
3
+ export declare const getContentDeclarationFileTemplate: (key: string, format: Format, fileParams?: Record<string, any>, noMetadata?: boolean) => Promise<string>;
4
4
  //#endregion
5
- export { getContentDeclarationFileTemplate };
6
5
  //# sourceMappingURL=getContentDeclarationFileTemplate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getContentDeclarationFileTemplate.d.ts","names":[],"sources":["../../../src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.ts"],"mappings":";;cAGa,oCAAiC,aACjC,QACH,QAAM,aACF,qBAAmB,yBACX"}
1
+ {"version":3,"file":"getContentDeclarationFileTemplate.d.ts","names":[],"sources":["../../../src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.ts"],"mappings":";;qBAGa,oCAAiC,aACjC,QACH,QAAM,aACF,qBAAmB,yBACX"}
@@ -1,6 +1,5 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  //#region src/handleAdditionalContentDeclarationFile.d.ts
3
- declare const handleAdditionalContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
3
+ export declare const handleAdditionalContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
4
4
  //#endregion
5
- export { handleAdditionalContentDeclarationFile };
6
5
  //# sourceMappingURL=handleAdditionalContentDeclarationFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleAdditionalContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleAdditionalContentDeclarationFile.ts"],"mappings":";;cAQa,yCAAsC,kBACjC,QACR,mBAAc"}
1
+ {"version":3,"file":"handleAdditionalContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleAdditionalContentDeclarationFile.ts"],"mappings":";;qBAQa,yCAAsC,kBACjC,QACR,mBAAc"}
@@ -1,6 +1,5 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  //#region src/handleContentDeclarationFileChange.d.ts
3
- declare const handleContentDeclarationFileChange: (filePath: string, config: IntlayerConfig) => Promise<void>;
3
+ export declare const handleContentDeclarationFileChange: (filePath: string, config: IntlayerConfig) => Promise<void>;
4
4
  //#endregion
5
- export { handleContentDeclarationFileChange };
6
5
  //# sourceMappingURL=handleContentDeclarationFileChange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleContentDeclarationFileChange.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileChange.ts"],"mappings":";;cAca,qCAAkC,kBAC7B,QACR,mBAAc"}
1
+ {"version":3,"file":"handleContentDeclarationFileChange.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileChange.ts"],"mappings":";;qBAca,qCAAkC,kBAC7B,QACR,mBAAc"}
@@ -1,6 +1,5 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  //#region src/handleContentDeclarationFileMoved.d.ts
3
- declare const handleContentDeclarationFileMoved: (oldFilePath: string, newFilePath: string, config: IntlayerConfig) => Promise<void>;
3
+ export declare const handleContentDeclarationFileMoved: (oldFilePath: string, newFilePath: string, config: IntlayerConfig) => Promise<void>;
4
4
  //#endregion
5
- export { handleContentDeclarationFileMoved };
6
5
  //# sourceMappingURL=handleContentDeclarationFileMoved.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleContentDeclarationFileMoved.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileMoved.ts"],"mappings":";;cAOa,oCAAiC,qBACzB,qBACA,QACX,mBAAc"}
1
+ {"version":3,"file":"handleContentDeclarationFileMoved.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileMoved.ts"],"mappings":";;qBAOa,oCAAiC,qBACzB,qBACA,QACX,mBAAc"}
@@ -1,6 +1,5 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  //#region src/handleUnlinkedContentDeclarationFile.d.ts
3
- declare const handleUnlinkedContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
3
+ export declare const handleUnlinkedContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
4
4
  //#endregion
5
- export { handleUnlinkedContentDeclarationFile };
6
5
  //# sourceMappingURL=handleUnlinkedContentDeclarationFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleUnlinkedContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleUnlinkedContentDeclarationFile.ts"],"mappings":";;cAWa,uCAAoC,kBAC/B,QACR,mBAAc"}
1
+ {"version":3,"file":"handleUnlinkedContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleUnlinkedContentDeclarationFile.ts"],"mappings":";;qBAWa,uCAAoC,kBAC/B,QACR,mBAAc"}
@@ -4,9 +4,9 @@ import { RoutingMode } from "./utils/configManipulation.js";
4
4
  * Intlayer configuration file candidates, ordered by the precedence used when
5
5
  * resolving which file to mutate.
6
6
  */
7
- declare const INTLAYER_CONFIG_FILE_CANDIDATES: readonly ['intlayer.config.ts', 'intlayer.config.mjs', 'intlayer.config.js', 'intlayer.config.cjs', 'intlayer.config.json'];
7
+ export declare const INTLAYER_CONFIG_FILE_CANDIDATES: readonly ['intlayer.config.ts', 'intlayer.config.mjs', 'intlayer.config.js', 'intlayer.config.cjs', 'intlayer.config.json'];
8
8
  /** Credentials returned by the CMS login flow (access key pair). */
9
- type CmsCredentials = {
9
+ export type CmsCredentials = {
10
10
  clientId: string;
11
11
  clientSecret: string;
12
12
  };
@@ -15,14 +15,14 @@ type CmsCredentials = {
15
15
  * `fast-glob` to detect an existing dotenv file at the project root, preferring
16
16
  * a plain `.env`; falls back to `.env` (to be created) when none exist.
17
17
  */
18
- declare const findEnvFile: (rootDir: string) => Promise<string>;
18
+ export declare const findEnvFile: (rootDir: string) => Promise<string>;
19
19
  /**
20
20
  * Persists the CMS access-key credentials to the project's environment file as
21
21
  * `INTLAYER_CLIENT_ID` / `INTLAYER_CLIENT_SECRET`. The target file is detected
22
22
  * with {@link findEnvFile} and created when missing. Returns the relative path
23
23
  * of the file that was written.
24
24
  */
25
- declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecret }: CmsCredentials) => Promise<string>;
25
+ export declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecret }: CmsCredentials) => Promise<string>;
26
26
  /**
27
27
  * Enables the Intlayer visual editor in the project's configuration file:
28
28
  * flips `editor.enabled` to `true` and wires `clientId` / `clientSecret` to the
@@ -30,24 +30,23 @@ declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecr
30
30
  * so they are skipped with a warning. Returns the config file that was updated,
31
31
  * or `undefined` when no editable config was found.
32
32
  */
33
- declare const enableEditorInConfig: (rootDir: string) => Promise<string | undefined>;
33
+ export declare const enableEditorInConfig: (rootDir: string) => Promise<string | undefined>;
34
34
  /**
35
35
  * Sets `routing.mode` in the project's Intlayer configuration file. Returns the
36
36
  * config file that was updated, or `undefined` when none was found.
37
37
  */
38
- declare const setRoutingModeInConfig: (rootDir: string, mode: RoutingMode) => Promise<string | undefined>;
38
+ export declare const setRoutingModeInConfig: (rootDir: string, mode: RoutingMode) => Promise<string | undefined>;
39
39
  /**
40
40
  * Sets `compiler.output` in the project's Intlayer configuration file to the
41
41
  * given `{{variable}}` path template. Returns the config file that was updated,
42
42
  * or `undefined` when none was found.
43
43
  */
44
- declare const setCompilerOutputInConfig: (rootDir: string, outputTemplate: string) => Promise<string | undefined>;
44
+ export declare const setCompilerOutputInConfig: (rootDir: string, outputTemplate: string) => Promise<string | undefined>;
45
45
  /**
46
46
  * Completes the CMS setup once credentials are received from the login flow:
47
47
  * writes them to the environment file and enables the editor in the Intlayer
48
48
  * configuration file.
49
49
  */
50
- declare const setupCmsCredentials: (rootDir: string, credentials: CmsCredentials) => Promise<void>;
50
+ export declare const setupCmsCredentials: (rootDir: string, credentials: CmsCredentials) => Promise<void>;
51
51
  //#endregion
52
- export { CmsCredentials, INTLAYER_CONFIG_FILE_CANDIDATES, enableEditorInConfig, findEnvFile, setCompilerOutputInConfig, setRoutingModeInConfig, setupCmsCredentials, writeCmsCredentialsToEnv };
53
52
  //# sourceMappingURL=cms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cms.d.ts","names":[],"sources":["../../../src/init/cms.ts"],"mappings":";;;;;;cAea;;KAgBD;EACV;EACA;;;;;;;cAwBW,cAAW,oBAA4B;;;;;;;cA0CvC,2BAAwB,mBACpB,UAAA,gBACa,mBAC3B;;;;;;;;cAmCU,uBAAoB,oBAE9B;;;;;cAwCU,yBAAsB,iBAClB,MACT,gBACL;;;;;;cAwBU,4BAAyB,iBACrB,2BAEd;;;;;;cA4BU,sBAAmB,iBACf,aACF,mBACZ"}
1
+ {"version":3,"file":"cms.d.ts","names":[],"sources":["../../../src/init/cms.ts"],"mappings":";;;;;;qBAea;;YAgBD;EACV;EACA;;;;;;;qBAwBW,cAAW,oBAA4B;;;;;;;qBA0CvC,2BAAwB,mBACpB,UAAA,gBACa,mBAC3B;;;;;;;;qBAmCU,uBAAoB,oBAE9B;;;;;qBAwCU,yBAAsB,iBAClB,MACT,gBACL;;;;;;qBAwBU,4BAAyB,iBACrB,2BAEd;;;;;;qBA4BU,sBAAmB,iBACf,aACF,mBACZ"}
@@ -6,7 +6,7 @@ import { FrameworkAdapter, FrameworkSetupContext } from "./types.js";
6
6
  * No-ops when no adapter recognizes the project. Each adapter is idempotent and
7
7
  * non-destructive, so this is safe to run on existing applications.
8
8
  */
9
- declare const setupFramework: (context: FrameworkSetupContext) => Promise<void>;
9
+ export declare const setupFramework: (context: FrameworkSetupContext) => Promise<void>;
10
10
  //#endregion
11
- export { type FrameworkAdapter, type FrameworkSetupContext, setupFramework };
11
+ export type { FrameworkAdapter, FrameworkSetupContext };
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/index.ts"],"mappings":";;;;;;;;cAsBa,iBAAc,SAChB,0BACR"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/index.ts"],"mappings":";;;;;;;;qBAsBa,iBAAc,SAChB,0BACR"}
@@ -1,7 +1,7 @@
1
1
  import { isVersionAtLeast } from "../../utils/version.js";
2
2
  //#region src/init/frameworkSetup/nextAppRouter/detect.d.ts
3
3
  /** Location of the Next.js App Router directory within the project. */
4
- type NextAppDirInfo = {
4
+ export type NextAppDirInfo = {
5
5
  /** App Router directory relative to the root, e.g. `src/app` or `app`. */
6
6
  appDir: string;
7
7
  /** `src` when the project uses a `src/` directory, otherwise `''`. */
@@ -11,13 +11,13 @@ type NextAppDirInfo = {
11
11
  * Detects the Next.js App Router directory, preferring `src/app` over `app`.
12
12
  * Returns `null` when neither exists (e.g. a Pages Router project).
13
13
  */
14
- declare const detectNextAppDir: (rootDir: string) => Promise<NextAppDirInfo | null>;
14
+ export declare const detectNextAppDir: (rootDir: string) => Promise<NextAppDirInfo | null>;
15
15
  /**
16
16
  * Finds an existing App Router convention file (e.g. `layout`, `page`) within
17
17
  * `dir`, trying each known script extension. Returns the matching relative path
18
18
  * or `null`.
19
19
  */
20
- declare const findAppFile: (rootDir: string, dir: string, baseName: string) => Promise<string | null>;
20
+ export declare const findAppFile: (rootDir: string, dir: string, baseName: string) => Promise<string | null>;
21
21
  //#endregion
22
- export { NextAppDirInfo, detectNextAppDir, findAppFile, isVersionAtLeast };
22
+ export { isVersionAtLeast };
23
23
  //# sourceMappingURL=detect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/detect.ts"],"mappings":";;;KAOY;;EAEV;;EAEA;;;;;;cAOW,mBAAgB,oBAE1B,QAAQ;;;;;;cAeE,cAAW,iBACP,aACJ,qBAEV"}
1
+ {"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/detect.ts"],"mappings":";;;YAOY;;EAEV;;EAEA;;;;;;qBAOW,mBAAgB,oBAE1B,QAAQ;;;;;;qBAeE,cAAW,iBACP,aACJ,qBAEV"}
@@ -7,7 +7,6 @@ import { FrameworkAdapter } from "../types.js";
7
7
  * user code. Pages are never wrapped: `IntlayerProvider` in the locale layout
8
8
  * covers them.
9
9
  */
10
- declare const nextAppRouterAdapter: FrameworkAdapter;
10
+ export declare const nextAppRouterAdapter: FrameworkAdapter;
11
11
  //#endregion
12
- export { nextAppRouterAdapter };
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/index.ts"],"mappings":";;;;;;;;;cA2Ha,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/index.ts"],"mappings":";;;;;;;;;qBA2Ha,sBAAsB"}
@@ -8,7 +8,7 @@
8
8
  * Used to skip the restructure when the project is already locale-aware, so an
9
9
  * existing locale segment is never nested under a freshly created `[locale]`.
10
10
  */
11
- declare const isLocaleSegment: (entryName: string) => boolean;
11
+ export declare const isLocaleSegment: (entryName: string) => boolean;
12
12
  /**
13
13
  * Top-level App Router entries that must stay at the app root and never be
14
14
  * moved under `[locale]`:
@@ -20,7 +20,7 @@ declare const isLocaleSegment: (entryName: string) => boolean;
20
20
  * Everything else (`page`, `loading`, `error`, `template`, `default`, the root
21
21
  * `layout`, and nested route folders) is moved so it becomes locale-aware.
22
22
  */
23
- declare const shouldKeepAppEntryAtRoot: (entryName: string) => boolean;
23
+ export declare const shouldKeepAppEntryAtRoot: (entryName: string) => boolean;
24
24
  type RewriteContext = {
25
25
  appDirAbs: string;
26
26
  localeDirAbs: string;
@@ -32,9 +32,9 @@ type RewriteContext = {
32
32
  * modules after the move. Non-relative specifiers (bare packages, `@/` aliases)
33
33
  * are left untouched. Returns the original code unchanged when nothing matched.
34
34
  */
35
- declare const rewriteRelativeImports: (code: string, oldAbs: string, newAbs: string, context: RewriteContext) => string;
35
+ export declare const rewriteRelativeImports: (code: string, oldAbs: string, newAbs: string, context: RewriteContext) => string;
36
36
  /** Outcome of an attempted `[locale]` restructure. */
37
- type RestructureResult = {
37
+ export type RestructureResult = {
38
38
  status: 'already-structured';
39
39
  localeSegment: string;
40
40
  } | {
@@ -50,7 +50,6 @@ type RestructureResult = {
50
50
  * {@link isLocaleSegment}), which is reported via `localeSegment`. Root-only
51
51
  * files (see {@link shouldKeepAppEntryAtRoot}) are left in place.
52
52
  */
53
- declare const restructureAppIntoLocale: (rootDir: string, appDir: string) => Promise<RestructureResult>;
53
+ export declare const restructureAppIntoLocale: (rootDir: string, appDir: string) => Promise<RestructureResult>;
54
54
  //#endregion
55
- export { RestructureResult, isLocaleSegment, restructureAppIntoLocale, rewriteRelativeImports, shouldKeepAppEntryAtRoot };
56
55
  //# sourceMappingURL=restructure.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/restructure.ts"],"mappings":";;;;;;;;;;cAwBa,kBAAe;;;;;;;;;;;;cAcf,2BAAwB;KA+BhC;EACH;EACA;EACA;;;;;;;;cAqCW,yBAAsB,cACrB,gBACE,gBACA,SACL;;KAyDC;EACN;EAA8B;;EAC9B;;EACA;EAAiB;;;;;;;;;cASV,2BAAwB,iBACpB,mBAEd,QAAQ"}
1
+ {"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/restructure.ts"],"mappings":";;;;;;;;;;qBAwBa,kBAAe;;;;;;;;;;;;qBAcf,2BAAwB;KA+BhC;EACH;EACA;EACA;;;;;;;;qBAqCW,yBAAsB,cACrB,gBACE,gBACA,SACL;;YAyDC;EACN;EAA8B;;EAC9B;;EACA;EAAiB;;;;;;;;;qBASV,2BAAwB,iBACpB,mBAEd,QAAQ"}
@@ -5,27 +5,26 @@
5
5
  * when the app is effectively empty) — they never overwrite user code.
6
6
  */
7
7
  /** Next.js >= 16 locale-detection proxy (`src/proxy.ts`). */
8
- declare const PROXY_TEMPLATE = "export { intlayerProxy as proxy } from \"next-intlayer/proxy\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
8
+ export declare const PROXY_TEMPLATE = "export { intlayerProxy as proxy } from \"next-intlayer/proxy\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
9
9
  /** Next.js < 16 locale-detection middleware (`src/middleware.ts`). */
10
- declare const MIDDLEWARE_TEMPLATE = "export { intlayerMiddleware as middleware } from \"next-intlayer/middleware\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
10
+ export declare const MIDDLEWARE_TEMPLATE = "export { intlayerMiddleware as middleware } from \"next-intlayer/middleware\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
11
11
  /** Minimal pass-through root layout (`app/layout.tsx`), lets `[locale]/layout` own `<html>`. */
12
- declare const ROOT_LAYOUT_TEMPLATE_TS = "import type { PropsWithChildren, FC } from \"react\";\n\nconst RootLayout: FC<PropsWithChildren> = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
13
- declare const ROOT_LAYOUT_TEMPLATE_JS = "const RootLayout = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
12
+ export declare const ROOT_LAYOUT_TEMPLATE_TS = "import type { PropsWithChildren, FC } from \"react\";\n\nconst RootLayout: FC<PropsWithChildren> = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
13
+ export declare const ROOT_LAYOUT_TEMPLATE_JS = "const RootLayout = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
14
14
  /**
15
15
  * Locale layout (`app/[locale]/layout.tsx`) providing `<html>` + the unified
16
16
  * provider. `IntlayerProvider` seeds both the server context (read by server
17
17
  * hooks and by any page below, without per-page wrapping) and the client
18
18
  * provider in one mount.
19
19
  */
20
- declare const LOCALE_LAYOUT_TEMPLATE_TS = "import { type NextLayoutIntlayer } from \"next-intlayer\";\nimport { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
21
- declare const LOCALE_LAYOUT_TEMPLATE_JS = "import { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
20
+ export declare const LOCALE_LAYOUT_TEMPLATE_TS = "import { type NextLayoutIntlayer } from \"next-intlayer\";\nimport { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
21
+ export declare const LOCALE_LAYOUT_TEMPLATE_JS = "import { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
22
22
  /**
23
23
  * Locale home page (`app/[locale]/page.tsx`). Self-contained starter that does
24
24
  * not depend on an example content declaration — add Intlayer content (a
25
25
  * `*.content.ts` file consumed via `useIntlayer`) as the next step.
26
26
  */
27
- declare const LOCALE_PAGE_TEMPLATE_TS = "import { type NextPageIntlayer } from \"next-intlayer\";\n\nconst Page: NextPageIntlayer = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
28
- declare const LOCALE_PAGE_TEMPLATE_JS = "const Page = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
27
+ export declare const LOCALE_PAGE_TEMPLATE_TS = "import { type NextPageIntlayer } from \"next-intlayer\";\n\nconst Page: NextPageIntlayer = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
28
+ export declare const LOCALE_PAGE_TEMPLATE_JS = "const Page = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
29
29
  //#endregion
30
- export { LOCALE_LAYOUT_TEMPLATE_JS, LOCALE_LAYOUT_TEMPLATE_TS, LOCALE_PAGE_TEMPLATE_JS, LOCALE_PAGE_TEMPLATE_TS, MIDDLEWARE_TEMPLATE, PROXY_TEMPLATE, ROOT_LAYOUT_TEMPLATE_JS, ROOT_LAYOUT_TEMPLATE_TS };
31
30
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;;;;;;cAOa;;cASA;;cASA;cAOA;;;;;;;cAWA;cAqBA;;;;;;cAyBA;cAgBA"}
1
+ {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;;;;;;qBAOa;;qBASA;;qBASA;qBAOA;;;;;;;qBAWA;qBAqBA;;;;;;qBAyBA;qBAgBA"}
@@ -1,6 +1,6 @@
1
1
  //#region src/init/frameworkSetup/nextAppRouter/transforms.d.ts
2
2
  /** Result of a source transform. `code` is unchanged for any non-`wrapped` status. */
3
- type TransformResult = {
3
+ export type TransformResult = {
4
4
  code: string;
5
5
  status: 'wrapped' | 'already' | 'skipped-client' | 'skipped';
6
6
  };
@@ -15,7 +15,6 @@ type TransformResult = {
15
15
  * pages below the locale layout read locale/variant from it without wrapping
16
16
  * themselves individually (see the removed `wrapPageWithProvider`).
17
17
  */
18
- declare const wrapLayoutWithProvider: (code: string) => TransformResult;
18
+ export declare const wrapLayoutWithProvider: (code: string) => TransformResult;
19
19
  //#endregion
20
- export { TransformResult, wrapLayoutWithProvider };
21
20
  //# sourceMappingURL=transforms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;KAWY;EACV;EACA;;;;;;;;;;;;;cAsLW,yBAAsB,iBAAmB"}
1
+ {"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;YAWY;EACV;EACA;;;;;;;;;;;;;qBAsLW,yBAAsB,iBAAmB"}
@@ -1,6 +1,6 @@
1
1
  //#region src/init/frameworkSetup/tanstackStart/detect.d.ts
2
2
  /** Location of the TanStack Router file-based routes directory. */
3
- type TanStackRoutesInfo = {
3
+ export type TanStackRoutesInfo = {
4
4
  /** Routes directory relative to the root, e.g. `src/routes` or `routes`. */
5
5
  routesDir: string;
6
6
  /** `src` when the project uses a `src/` directory, otherwise `''`. */
@@ -10,12 +10,11 @@ type TanStackRoutesInfo = {
10
10
  * Detects the TanStack Router routes directory, preferring `src/routes` over
11
11
  * `routes`. Returns `null` when neither exists.
12
12
  */
13
- declare const detectTanStackRoutesDir: (rootDir: string) => Promise<TanStackRoutesInfo | null>;
13
+ export declare const detectTanStackRoutesDir: (rootDir: string) => Promise<TanStackRoutesInfo | null>;
14
14
  /**
15
15
  * Returns true when the project depends on TanStack Start (`@tanstack/react-start`)
16
16
  * or, failing that, on `@tanstack/react-router` (file-based routing).
17
17
  */
18
- declare const hasTanStackStartDeps: (allDeps: Record<string, string>) => boolean;
18
+ export declare const hasTanStackStartDeps: (allDeps: Record<string, string>) => boolean;
19
19
  //#endregion
20
- export { TanStackRoutesInfo, detectTanStackRoutesDir, hasTanStackStartDeps };
21
20
  //# sourceMappingURL=detect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/detect.ts"],"mappings":";;KAIY;;EAEV;;EAEA;;;;;;cAOW,0BAAuB,oBAEjC,QAAQ;;;;;cAcE,uBAAoB,SACtB"}
1
+ {"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/detect.ts"],"mappings":";;YAIY;;EAEV;;EAEA;;;;;;qBAOW,0BAAuB,oBAEjC,QAAQ;;;;;qBAcE,uBAAoB,SACtB"}
@@ -6,7 +6,6 @@ import { FrameworkAdapter } from "../types.js";
6
6
  * the Intlayer provider — all idempotently and without overwriting user code it
7
7
  * cannot confidently transform.
8
8
  */
9
- declare const tanStackStartAdapter: FrameworkAdapter;
9
+ export declare const tanStackStartAdapter: FrameworkAdapter;
10
10
  //#endregion
11
- export { tanStackStartAdapter };
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":";;;;;;;;cA4Ea,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":";;;;;;;;qBA4Ea,sBAAsB"}
@@ -5,20 +5,20 @@ import { RoutingMode } from "../../utils/configManipulation.js";
5
5
  * used by every routing mode except `prefix-all` so the default locale stays
6
6
  * prefix-free.
7
7
  */
8
- declare const LOCALE_SEGMENT = "{-$locale}";
8
+ export declare const LOCALE_SEGMENT = "{-$locale}";
9
9
  /**
10
10
  * The required TanStack Router locale segment directory (`$locale` param), used
11
11
  * by `prefix-all` routing where every URL — including the default locale — is
12
12
  * prefixed.
13
13
  */
14
- declare const PREFIX_ALL_LOCALE_SEGMENT = "$locale";
14
+ export declare const PREFIX_ALL_LOCALE_SEGMENT = "$locale";
15
15
  /**
16
16
  * Picks the locale segment directory for the project's routing mode. `prefix-all`
17
17
  * requires the mandatory `$locale` param so the default locale is also prefixed;
18
18
  * all other modes use the optional `{-$locale}` param so the default locale stays
19
19
  * prefix-free.
20
20
  */
21
- declare const getLocaleSegment: (routingMode: RoutingMode) => string;
21
+ export declare const getLocaleSegment: (routingMode: RoutingMode) => string;
22
22
  /**
23
23
  * Detects whether a top-level route entry is already a locale segment, in any of
24
24
  * the TanStack Router param forms:
@@ -29,7 +29,7 @@ declare const getLocaleSegment: (routingMode: RoutingMode) => string;
29
29
  * existing prefix-all `$locale` directory is never nested under a freshly created
30
30
  * `{-$locale}` (which would produce `{-$locale}/$locale`).
31
31
  */
32
- declare const isLocaleSegment: (entryName: string) => boolean;
32
+ export declare const isLocaleSegment: (entryName: string) => boolean;
33
33
  /**
34
34
  * Routes-directory entries that must stay at the root and never be moved under
35
35
  * `{-$locale}`:
@@ -42,9 +42,9 @@ declare const isLocaleSegment: (entryName: string) => boolean;
42
42
  * Everything else (route files and nested route folders) is moved so it becomes
43
43
  * locale-aware.
44
44
  */
45
- declare const shouldKeepRouteAtRoot: (entryName: string) => boolean;
45
+ export declare const shouldKeepRouteAtRoot: (entryName: string) => boolean;
46
46
  /** Outcome of an attempted `{-$locale}` restructure. */
47
- type RestructureResult = {
47
+ export type RestructureResult = {
48
48
  status: 'already-structured';
49
49
  localeSegment: string;
50
50
  } | {
@@ -61,7 +61,6 @@ type RestructureResult = {
61
61
  * {@link isLocaleSegment}), which is reported via `localeSegment`. Root-only
62
62
  * files (see {@link shouldKeepRouteAtRoot}) are left in place.
63
63
  */
64
- declare const restructureRoutesIntoLocale: (rootDir: string, routesDir: string, localeSegment?: string) => Promise<RestructureResult>;
64
+ export declare const restructureRoutesIntoLocale: (rootDir: string, routesDir: string, localeSegment?: string) => Promise<RestructureResult>;
65
65
  //#endregion
66
- export { LOCALE_SEGMENT, PREFIX_ALL_LOCALE_SEGMENT, RestructureResult, getLocaleSegment, isLocaleSegment, restructureRoutesIntoLocale, shouldKeepRouteAtRoot };
67
66
  //# sourceMappingURL=restructure.d.ts.map