@intlayer/engine 9.4.3 → 9.5.0

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 (336) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs +1 -2
  3. package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs.map +1 -1
  4. package/dist/cjs/init/index.cjs +14 -11
  5. package/dist/cjs/init/index.cjs.map +1 -1
  6. package/dist/cjs/init/utils/devScript.cjs +57 -0
  7. package/dist/cjs/init/utils/devScript.cjs.map +1 -0
  8. package/dist/cjs/init/utils/index.cjs +3 -0
  9. package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +1 -1
  10. package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs.map +1 -1
  11. package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs +6 -5
  12. package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs.map +1 -1
  13. package/dist/cjs/syncPluginKit/createSyncPlugin.cjs +51 -3
  14. package/dist/cjs/syncPluginKit/createSyncPlugin.cjs.map +1 -1
  15. package/dist/cjs/utils/contentWatcherLock.cjs +173 -0
  16. package/dist/cjs/utils/contentWatcherLock.cjs.map +1 -0
  17. package/dist/cjs/utils/index.cjs +13 -1
  18. package/dist/cjs/utils/parseContentDeclarationFileName.cjs +35 -0
  19. package/dist/cjs/utils/parseContentDeclarationFileName.cjs.map +1 -0
  20. package/dist/cjs/utils/withFileLock.cjs +133 -0
  21. package/dist/cjs/utils/withFileLock.cjs.map +1 -0
  22. package/dist/cjs/watcher.cjs +7 -3
  23. package/dist/cjs/watcher.cjs.map +1 -1
  24. package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs +1 -2
  25. package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs.map +1 -1
  26. package/dist/esm/init/index.mjs +14 -11
  27. package/dist/esm/init/index.mjs.map +1 -1
  28. package/dist/esm/init/utils/devScript.mjs +55 -0
  29. package/dist/esm/init/utils/devScript.mjs.map +1 -0
  30. package/dist/esm/init/utils/index.mjs +2 -1
  31. package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +1 -1
  32. package/dist/esm/loadDictionaries/loadContentDeclaration.mjs.map +1 -1
  33. package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs +6 -5
  34. package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs.map +1 -1
  35. package/dist/esm/syncPluginKit/createSyncPlugin.mjs +51 -3
  36. package/dist/esm/syncPluginKit/createSyncPlugin.mjs.map +1 -1
  37. package/dist/esm/utils/contentWatcherLock.mjs +164 -0
  38. package/dist/esm/utils/contentWatcherLock.mjs.map +1 -0
  39. package/dist/esm/utils/index.mjs +4 -1
  40. package/dist/esm/utils/parseContentDeclarationFileName.mjs +34 -0
  41. package/dist/esm/utils/parseContentDeclarationFileName.mjs.map +1 -0
  42. package/dist/esm/utils/withFileLock.mjs +132 -0
  43. package/dist/esm/utils/withFileLock.mjs.map +1 -0
  44. package/dist/esm/watcher.mjs +8 -4
  45. package/dist/esm/watcher.mjs.map +1 -1
  46. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
  47. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
  48. package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
  49. package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
  50. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
  51. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
  52. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
  53. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
  54. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
  55. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
  56. package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
  57. package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
  58. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
  59. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
  60. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
  61. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
  62. package/dist/types/cleanOutputDir.d.ts +1 -2
  63. package/dist/types/cleanOutputDir.d.ts.map +1 -1
  64. package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
  65. package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
  66. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
  67. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
  68. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
  69. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
  70. package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
  71. package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
  72. package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
  73. package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
  74. package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
  75. package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
  76. package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
  77. package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
  78. package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
  79. package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
  80. package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
  81. package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
  82. package/dist/types/createType/createType.d.ts +2 -3
  83. package/dist/types/createType/createType.d.ts.map +1 -1
  84. package/dist/types/detectFormatCommand.d.ts +1 -2
  85. package/dist/types/detectFormatCommand.d.ts.map +1 -1
  86. package/dist/types/docReview/alignBlocks.d.ts +1 -2
  87. package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
  88. package/dist/types/docReview/computeSimilarity.d.ts +2 -3
  89. package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
  90. package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
  91. package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
  92. package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
  93. package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
  94. package/dist/types/docReview/normalizeBlock.d.ts +1 -2
  95. package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
  96. package/dist/types/docReview/pipeline.d.ts +4 -4
  97. package/dist/types/docReview/pipeline.d.ts.map +1 -1
  98. package/dist/types/docReview/planActions.d.ts +1 -2
  99. package/dist/types/docReview/planActions.d.ts.map +1 -1
  100. package/dist/types/docReview/rebuildDocument.d.ts +5 -6
  101. package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
  102. package/dist/types/docReview/reviewReport.d.ts +8 -9
  103. package/dist/types/docReview/reviewReport.d.ts.map +1 -1
  104. package/dist/types/docReview/segmentDocument.d.ts +2 -3
  105. package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
  106. package/dist/types/docReview/types.d.ts +9 -10
  107. package/dist/types/docReview/types.d.ts.map +1 -1
  108. package/dist/types/fetchDistantDictionaries.d.ts +1 -2
  109. package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
  110. package/dist/types/filterInvalidDictionaries.d.ts +2 -3
  111. package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
  112. package/dist/types/formatDictionary.d.ts +6 -8
  113. package/dist/types/formatDictionary.d.ts.map +1 -1
  114. package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
  115. package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
  116. package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
  117. package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
  118. package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
  119. package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
  120. package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
  121. package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
  122. package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
  123. package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
  124. package/dist/types/init/cms.d.ts +8 -9
  125. package/dist/types/init/cms.d.ts.map +1 -1
  126. package/dist/types/init/frameworkSetup/index.d.ts +2 -2
  127. package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
  128. package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
  129. package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
  130. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
  131. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
  132. package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
  133. package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
  134. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
  135. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
  136. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
  137. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
  138. package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
  139. package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
  140. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
  141. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
  142. package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
  143. package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
  144. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
  145. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
  146. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
  147. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
  148. package/dist/types/init/frameworkSetup/types.d.ts +2 -3
  149. package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
  150. package/dist/types/init/index.d.ts +4 -5
  151. package/dist/types/init/index.d.ts.map +1 -1
  152. package/dist/types/init/utils/astImports.d.ts +3 -4
  153. package/dist/types/init/utils/astImports.d.ts.map +1 -1
  154. package/dist/types/init/utils/configManipulation.d.ts +19 -20
  155. package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
  156. package/dist/types/init/utils/devScript.d.ts +49 -0
  157. package/dist/types/init/utils/devScript.d.ts.map +1 -0
  158. package/dist/types/init/utils/fileSystem.d.ts +11 -12
  159. package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
  160. package/dist/types/init/utils/githubActions.d.ts +7 -8
  161. package/dist/types/init/utils/githubActions.d.ts.map +1 -1
  162. package/dist/types/init/utils/index.d.ts +2 -1
  163. package/dist/types/init/utils/jsonParser.d.ts +1 -2
  164. package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
  165. package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
  166. package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
  167. package/dist/types/init/utils/packageManager.d.ts +17 -18
  168. package/dist/types/init/utils/packageManager.d.ts.map +1 -1
  169. package/dist/types/init/utils/tsConfig.d.ts +1 -2
  170. package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
  171. package/dist/types/init/utils/version.d.ts +1 -2
  172. package/dist/types/init/utils/version.d.ts.map +1 -1
  173. package/dist/types/initConfig/index.d.ts +2 -3
  174. package/dist/types/initConfig/index.d.ts.map +1 -1
  175. package/dist/types/installLSP.d.ts +1 -2
  176. package/dist/types/installLSP.d.ts.map +1 -1
  177. package/dist/types/installMCP/installMCP.d.ts +2 -3
  178. package/dist/types/installMCP/installMCP.d.ts.map +1 -1
  179. package/dist/types/installSkills/index.d.ts +9 -10
  180. package/dist/types/installSkills/index.d.ts.map +1 -1
  181. package/dist/types/listDictionariesPath.d.ts +2 -3
  182. package/dist/types/listDictionariesPath.d.ts.map +1 -1
  183. package/dist/types/listGitFiles.d.ts +5 -6
  184. package/dist/types/listGitFiles.d.ts.map +1 -1
  185. package/dist/types/listProjects.d.ts +3 -4
  186. package/dist/types/listProjects.d.ts.map +1 -1
  187. package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
  188. package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
  189. package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
  190. package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
  191. package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
  192. package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
  193. package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
  194. package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
  195. package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +2 -2
  196. package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
  197. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
  198. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
  199. package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
  200. package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
  201. package/dist/types/loadDictionaries/log.d.ts +1 -2
  202. package/dist/types/loadDictionaries/log.d.ts.map +1 -1
  203. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
  204. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
  205. package/dist/types/logConfigDetails.d.ts +1 -2
  206. package/dist/types/logConfigDetails.d.ts.map +1 -1
  207. package/dist/types/prepareIntlayer.d.ts +1 -2
  208. package/dist/types/prepareIntlayer.d.ts.map +1 -1
  209. package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
  210. package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
  211. package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
  212. package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
  213. package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
  214. package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
  215. package/dist/types/scan/calculateScore.d.ts +6 -7
  216. package/dist/types/scan/calculateScore.d.ts.map +1 -1
  217. package/dist/types/scan/checks.d.ts +8 -9
  218. package/dist/types/scan/checks.d.ts.map +1 -1
  219. package/dist/types/scan/parseHtml.d.ts +13 -14
  220. package/dist/types/scan/parseHtml.d.ts.map +1 -1
  221. package/dist/types/scan/scanWebsite.d.ts +1 -2
  222. package/dist/types/scan/scanWebsite.d.ts.map +1 -1
  223. package/dist/types/scan/types.d.ts +9 -10
  224. package/dist/types/scan/types.d.ts.map +1 -1
  225. package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
  226. package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
  227. package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
  228. package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
  229. package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
  230. package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
  231. package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
  232. package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
  233. package/dist/types/syncPluginKit/index.d.ts +2 -2
  234. package/dist/types/syncPluginKit/types.d.ts +28 -15
  235. package/dist/types/syncPluginKit/types.d.ts.map +1 -1
  236. package/dist/types/utils/autoDecorateContent.d.ts +1 -2
  237. package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
  238. package/dist/types/utils/babelParser.d.ts +3 -3
  239. package/dist/types/utils/babelParser.d.ts.map +1 -1
  240. package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
  241. package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
  242. package/dist/types/utils/buildFilesList.d.ts +3 -4
  243. package/dist/types/utils/buildFilesList.d.ts.map +1 -1
  244. package/dist/types/utils/chunkArray.d.ts +1 -2
  245. package/dist/types/utils/chunkArray.d.ts.map +1 -1
  246. package/dist/types/utils/chunkJSON.d.ts +5 -6
  247. package/dist/types/utils/chunkJSON.d.ts.map +1 -1
  248. package/dist/types/utils/contentWatcherLock.d.ts +113 -0
  249. package/dist/types/utils/contentWatcherLock.d.ts.map +1 -0
  250. package/dist/types/utils/formatter.d.ts +2 -3
  251. package/dist/types/utils/formatter.d.ts.map +1 -1
  252. package/dist/types/utils/getChunk.d.ts +1 -2
  253. package/dist/types/utils/getChunk.d.ts.map +1 -1
  254. package/dist/types/utils/getContentExtension.d.ts +1 -2
  255. package/dist/types/utils/getContentExtension.d.ts.map +1 -1
  256. package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
  257. package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
  258. package/dist/types/utils/getPathHash.d.ts +1 -2
  259. package/dist/types/utils/getPathHash.d.ts.map +1 -1
  260. package/dist/types/utils/index.d.ts +4 -1
  261. package/dist/types/utils/mergeChunks.d.ts +1 -2
  262. package/dist/types/utils/mergeChunks.d.ts.map +1 -1
  263. package/dist/types/utils/pLimit.d.ts +2 -3
  264. package/dist/types/utils/pLimit.d.ts.map +1 -1
  265. package/dist/types/utils/parallelize.d.ts +1 -2
  266. package/dist/types/utils/parallelize.d.ts.map +1 -1
  267. package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
  268. package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
  269. package/dist/types/utils/parseContentDeclarationFileName.d.ts +23 -0
  270. package/dist/types/utils/parseContentDeclarationFileName.d.ts.map +1 -0
  271. package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
  272. package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
  273. package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
  274. package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
  275. package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
  276. package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
  277. package/dist/types/utils/resolveRelativePath.d.ts +1 -2
  278. package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
  279. package/dist/types/utils/runOnce.d.ts +2 -3
  280. package/dist/types/utils/runOnce.d.ts.map +1 -1
  281. package/dist/types/utils/runParallel/bin.d.ts +1 -2
  282. package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
  283. package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
  284. package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
  285. package/dist/types/utils/runParallel/index.d.ts +2 -3
  286. package/dist/types/utils/runParallel/index.d.ts.map +1 -1
  287. package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
  288. package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
  289. package/dist/types/utils/runParallel/ps.d.ts +1 -2
  290. package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
  291. package/dist/types/utils/runParallel/runTask.d.ts +1 -2
  292. package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
  293. package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
  294. package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
  295. package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
  296. package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
  297. package/dist/types/utils/runParallel/wmic.d.ts +1 -2
  298. package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
  299. package/dist/types/utils/sortAlphabetically.d.ts +1 -2
  300. package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
  301. package/dist/types/utils/splitTextByLine.d.ts +1 -2
  302. package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
  303. package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
  304. package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
  305. package/dist/types/utils/withFileLock.d.ts +44 -0
  306. package/dist/types/utils/withFileLock.d.ts.map +1 -0
  307. package/dist/types/watcher.d.ts +2 -3
  308. package/dist/types/watcher.d.ts.map +1 -1
  309. package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
  310. package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
  311. package/dist/types/writeConfiguration/index.d.ts +2 -3
  312. package/dist/types/writeConfiguration/index.d.ts.map +1 -1
  313. package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
  314. package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
  315. package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
  316. package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
  317. package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
  318. package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
  319. package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
  320. package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
  321. package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
  322. package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
  323. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
  324. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
  325. package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
  326. package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
  327. package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
  328. package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
  329. package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
  330. package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
  331. package/dist/types/writeFileIfChanged.d.ts +2 -3
  332. package/dist/types/writeFileIfChanged.d.ts.map +1 -1
  333. package/dist/types/writeJsonIfChanged.d.ts +1 -2
  334. package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
  335. package/package.json +12 -12
  336. package/dist/types/intlayer/dist/types/index.d.ts +0 -14
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/restructure.ts"],"mappings":";;;;;;;cAca;;;;;;cAOA;;;;;;;cAQA,mBAAgB,aAAiB;;;;;;;;;;;cAajC,kBAAe;;;;;;;;;;;;;cAmBf,wBAAqB;;KAUtB;EACN;EAA8B;;EAC9B;;EACA;EAAiB;;;;;;;;;;cAUV,8BAA2B,iBACvB,mBACE,2BAEhB,QAAQ"}
1
+ {"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/restructure.ts"],"mappings":";;;;;;;qBAca;;;;;;qBAOA;;;;;;;qBAQA,mBAAgB,aAAiB;;;;;;;;;;;qBAajC,kBAAe;;;;;;;;;;;;;qBAmBf,wBAAqB;;YAUtB;EACN;EAA8B;;EAC9B;;EACA;EAAiB;;;;;;;;;;qBAUV,8BAA2B,iBACvB,mBACE,2BAEhB,QAAQ"}
@@ -10,7 +10,7 @@
10
10
  * locale; in both cases `validatePrefix` redirects unknown prefixes to a valid
11
11
  * one. Identical for TypeScript and JavaScript projects.
12
12
  */
13
- declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
13
+ export declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
14
14
  /**
15
15
  * Root route document (`routes/__root.tsx`) providing `<html>` + the Intlayer
16
16
  * provider, with the locale read from the locale segment route params.
@@ -19,9 +19,8 @@ declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
19
19
  * importing `<segment>/route`, so the root never imports a child route module —
20
20
  * the recommended way to consume another route's typed hooks.
21
21
  */
22
- declare const buildRootTemplateTs: (localeSegment: string) => string;
22
+ export declare const buildRootTemplateTs: (localeSegment: string) => string;
23
23
  /** JavaScript counterpart of {@link buildRootTemplateTs}. */
24
- declare const buildRootTemplateJs: (localeSegment: string) => string;
24
+ export declare const buildRootTemplateJs: (localeSegment: string) => string;
25
25
  //#endregion
26
- export { buildLocaleRouteTemplate, buildRootTemplateJs, buildRootTemplateTs };
27
26
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;;;;;;;;;;;cAYa,2BAAwB;;;;;;;;;cAgCxB,sBAAmB;;cAkCnB,sBAAmB"}
1
+ {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;;;;;;;;;;;qBAYa,2BAAwB;;;;;;;;;qBAgCxB,sBAAmB;;qBAkCnB,sBAAmB"}
@@ -1,6 +1,6 @@
1
1
  //#region src/init/frameworkSetup/tanstackStart/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';
6
6
  };
@@ -15,7 +15,6 @@ type TransformResult = {
15
15
  * @param localeSegment Locale segment directory in use — `{-$locale}` for every
16
16
  * routing mode but `prefix-all`, which uses the required `$locale`.
17
17
  */
18
- declare const wrapRootWithProvider: (code: string, localeSegment: string) => TransformResult;
18
+ export declare const wrapRootWithProvider: (code: string, localeSegment: string) => TransformResult;
19
19
  //#endregion
20
- export { TransformResult, wrapRootWithProvider };
21
20
  //# sourceMappingURL=transforms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;KAkBY;EACV;EACA;;;;;;;;;;;;;cAoMW,uBAAoB,cACnB,0BAEX"}
1
+ {"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;YAkBY;EACV;EACA;;;;;;;;;;;;;qBAoMW,uBAAoB,cACnB,0BAEX"}
@@ -5,7 +5,7 @@ import { RoutingMode } from "../utils/configManipulation.js";
5
5
  * Shared context passed to every framework adapter. Mirrors the data already
6
6
  * computed by `initIntlayer` so adapters don't re-detect it.
7
7
  */
8
- type FrameworkSetupContext = {
8
+ export type FrameworkSetupContext = {
9
9
  /** Absolute project root directory. */
10
10
  rootDir: string;
11
11
  /** Merged prod + dev dependencies of the project's package.json. */
@@ -27,7 +27,7 @@ type FrameworkSetupContext = {
27
27
  * project shape and scaffold the matching Intlayer integration (middleware,
28
28
  * providers, example content) in a way that is safe to re-run.
29
29
  */
30
- type FrameworkAdapter = {
30
+ export type FrameworkAdapter = {
31
31
  /** Human-readable adapter name, used in logs. */
32
32
  name: string;
33
33
  /**
@@ -43,5 +43,4 @@ type FrameworkAdapter = {
43
43
  setup: (context: FrameworkSetupContext) => Promise<void>;
44
44
  };
45
45
  //#endregion
46
- export { FrameworkAdapter, FrameworkSetupContext };
47
46
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/types.ts"],"mappings":";;;;;;;KAOY;;EAEV;;EAEA,SAAS;;EAET,gBAAgB;;EAEhB;;;;;;;EAOA,aAAa;;;;;;;KAQH;;EAEV;;;;;EAKA,SAAS,SAAS,oCAAoC;;;;;;EAMtD,QAAQ,SAAS,0BAA0B"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/types.ts"],"mappings":";;;;;;;YAOY;;EAEV;;EAEA,SAAS;;EAET,gBAAgB;;EAEhB;;;;;;;EAOA,aAAa;;;;;;;YAQH;;EAEV;;;;;EAKA,SAAS,SAAS,oCAAoC;;;;;;EAMtD,QAAQ,SAAS,0BAA0B"}
@@ -7,7 +7,7 @@ import "./utils/index.js";
7
7
  * embed Vite (Astro, SvelteKit, …) are checked before the bare Vite fallback so
8
8
  * their own dev port wins.
9
9
  */
10
- declare const getDefaultApplicationURL: (dependencies: Record<string, string>) => string;
10
+ export declare const getDefaultApplicationURL: (dependencies: Record<string, string>) => string;
11
11
  /**
12
12
  * How the interactive init organizes autogenerated content (compiler output /
13
13
  * autofill):
@@ -17,11 +17,11 @@ declare const getDefaultApplicationURL: (dependencies: Record<string, string>) =
17
17
  * - `json-namespaces` — plain per-locale JSON namespace files kept in sync
18
18
  * through `@intlayer/sync-json-plugin`.
19
19
  */
20
- type ContentStrategy = 'per-component' | 'centralized' | 'json-namespaces';
20
+ export type ContentStrategy = 'per-component' | 'centralized' | 'json-namespaces';
21
21
  /**
22
22
  * OPTIONS
23
23
  */
24
- type InitOptions = {
24
+ export type InitOptions = {
25
25
  noGitignore?: boolean;
26
26
  /** Skip scaffolding the `fill` and `test` GitHub Actions workflows. */
27
27
  noGithubActions?: boolean;
@@ -63,7 +63,6 @@ type InitOptions = {
63
63
  /**
64
64
  * MAIN LOGIC
65
65
  */
66
- declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<void>;
66
+ export declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<void>;
67
67
  //#endregion
68
- export { ContentStrategy, InitOptions, getDefaultApplicationURL, initIntlayer };
69
68
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;;;;;cAwNa,2BAAwB,cACrB;;;;;;;;;;KAsBJ;;;;KAQA;EACV;;EAEA;;;;EAIA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;EAOd,kBAAkB;;;;;cAMP,eAAY,iBAAyB,UAAY,gBAAW"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;;;;;qBAiOa,2BAAwB,cACrB;;;;;;;;;;YAsBJ;;;;YAQA;EACV;;EAEA;;;;EAIA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;EAOd,kBAAkB;;;;;qBAMP,eAAY,iBAAyB,UAAY,gBAAW"}
@@ -3,7 +3,7 @@
3
3
  * Index just past the leading directives (e.g. `'use client'`) and import
4
4
  * declarations — the safe insertion point for a new import.
5
5
  */
6
- declare const firstInsertIndex: (ast: any) => number;
6
+ export declare const firstInsertIndex: (ast: any) => number;
7
7
  /**
8
8
  * Whether `name` is already bound at module scope — by any import (under that
9
9
  * local name, regardless of source) or by a top-level
@@ -13,7 +13,7 @@ declare const firstInsertIndex: (ast: any) => number;
13
13
  * `defaultLocale` re-exported from a local `i18n` module), which would otherwise
14
14
  * produce an `Identifier '…' has already been declared` parse error.
15
15
  */
16
- declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
16
+ export declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
17
17
  /**
18
18
  * Ensures `import { importName } from source`, merging into an existing import
19
19
  * from the same source. No-ops when `importName` is already bound at module
@@ -23,7 +23,6 @@ declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
23
23
  * Shared across every framework adapter so injected identifiers never collide
24
24
  * with bindings the user's file already provides.
25
25
  */
26
- declare const ensureNamedImport: (ast: any, importName: string, source: string) => void;
26
+ export declare const ensureNamedImport: (ast: any, importName: string, source: string) => void;
27
27
  //#endregion
28
- export { ensureNamedImport, firstInsertIndex, isModuleScopeBinding };
29
28
  //# sourceMappingURL=astImports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"astImports.d.ts","names":[],"sources":["../../../../src/init/utils/astImports.ts"],"mappings":";;;;;cAQa,mBAAgB;;;;;;;;;;cAuBhB,uBAAoB,UAAY;;;;;;;;;;cAoChC,oBAAiB,UACpB,oBACU"}
1
+ {"version":3,"file":"astImports.d.ts","names":[],"sources":["../../../../src/init/utils/astImports.ts"],"mappings":";;;;;qBAQa,mBAAgB;;;;;;;;;;qBAuBhB,uBAAoB,UAAY;;;;;;;;;;qBAoChC,oBAAiB,UACpB,oBACU"}