@nikkory/vibe-engine 4.0.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 (333) hide show
  1. package/PUBLISH-GUIDE.md +250 -0
  2. package/README.md +1267 -0
  3. package/bin/vibe.js +22 -0
  4. package/dist/adapters/index.d.ts +19 -0
  5. package/dist/browser.d.ts +25 -0
  6. package/dist/browser.js +15083 -0
  7. package/dist/browser.mjs +15000 -0
  8. package/dist/cli/batch-command.d.ts +142 -0
  9. package/dist/cli/generate-command.d.ts +119 -0
  10. package/dist/cli/index.d.ts +34 -0
  11. package/dist/constants/ComponentTypes.d.ts +65 -0
  12. package/dist/constants/DesignSystems.d.ts +64 -0
  13. package/dist/constants/Frameworks.d.ts +71 -0
  14. package/dist/constants/Tiers.d.ts +72 -0
  15. package/dist/constants/index.d.ts +10 -0
  16. package/dist/converters/index.d.ts +12 -0
  17. package/dist/converters/section-converter.d.ts +176 -0
  18. package/dist/index.d.ts +58 -0
  19. package/dist/index.js +19819 -0
  20. package/dist/index.mjs +19496 -0
  21. package/dist/resolution/basic/groups-basic.d.ts +80 -0
  22. package/dist/resolution/basic/index.d.ts +21 -0
  23. package/dist/resolution/basic/intents-basic.d.ts +195 -0
  24. package/dist/resolution/basic/presets-basic.d.ts +96 -0
  25. package/dist/resolution/basic/resolver-basic.d.ts +127 -0
  26. package/dist/resolution/basic/shorthands-basic.d.ts +88 -0
  27. package/dist/resolution/core/groups-core.d.ts +160 -0
  28. package/dist/resolution/core/index.d.ts +21 -0
  29. package/dist/resolution/core/intents-core.d.ts +355 -0
  30. package/dist/resolution/core/presets-core.d.ts +160 -0
  31. package/dist/resolution/core/resolver-core.d.ts +207 -0
  32. package/dist/resolution/core/shorthands-core.d.ts +144 -0
  33. package/dist/resolution/core/types-core.d.ts +167 -0
  34. package/dist/resolution/debugger.d.ts +183 -0
  35. package/dist/resolution/demo.d.ts +57 -0
  36. package/dist/resolution/enterprise/index.d.ts +22 -0
  37. package/dist/resolution/enterprise/metrics.d.ts +152 -0
  38. package/dist/resolution/enterprise/resolver-enterprise.d.ts +108 -0
  39. package/dist/resolution/examples.d.ts +486 -0
  40. package/dist/resolution/groups/experience-group.d.ts +197 -0
  41. package/dist/resolution/groups/index.d.ts +196 -0
  42. package/dist/resolution/groups/layout-group.d.ts +192 -0
  43. package/dist/resolution/groups/motion-group.d.ts +127 -0
  44. package/dist/resolution/groups/visual-group.d.ts +146 -0
  45. package/dist/resolution/index.d.ts +41 -0
  46. package/dist/resolution/intents/button-intents.d.ts +231 -0
  47. package/dist/resolution/intents/card-intents.d.ts +177 -0
  48. package/dist/resolution/intents/feedback-intents.d.ts +222 -0
  49. package/dist/resolution/intents/index.d.ts +189 -0
  50. package/dist/resolution/intents/input-intents.d.ts +231 -0
  51. package/dist/resolution/intents/mood-modifiers.d.ts +154 -0
  52. package/dist/resolution/performance.d.ts +264 -0
  53. package/dist/resolution/presets/button-presets.d.ts +243 -0
  54. package/dist/resolution/presets/card-presets.d.ts +216 -0
  55. package/dist/resolution/presets/data-display-presets.d.ts +290 -0
  56. package/dist/resolution/presets/feedback-presets.d.ts +335 -0
  57. package/dist/resolution/presets/form-presets.d.ts +308 -0
  58. package/dist/resolution/presets/index.d.ts +22 -0
  59. package/dist/resolution/presets/input-presets.d.ts +207 -0
  60. package/dist/resolution/presets/nav-presets.d.ts +235 -0
  61. package/dist/resolution/presets/overlay-presets.d.ts +216 -0
  62. package/dist/resolution/presets/preset-registry.d.ts +212 -0
  63. package/dist/resolution/resolveProps.d.ts +235 -0
  64. package/dist/resolution/shorthand/feel-mappings.d.ts +140 -0
  65. package/dist/resolution/shorthand/index.d.ts +172 -0
  66. package/dist/resolution/shorthand/look-mappings.d.ts +107 -0
  67. package/dist/resolution/shorthand/spacing-mappings.d.ts +164 -0
  68. package/dist/resolution/shorthand/surface-mappings.d.ts +139 -0
  69. package/dist/resolution/standard/groups-standard.d.ts +98 -0
  70. package/dist/resolution/standard/index.d.ts +28 -0
  71. package/dist/resolution/standard/intents-standard.d.ts +232 -0
  72. package/dist/resolution/standard/presets-standard.d.ts +123 -0
  73. package/dist/resolution/standard/resolver-standard.d.ts +204 -0
  74. package/dist/resolution/standard/shorthands-standard.d.ts +98 -0
  75. package/dist/resolution/standard/validators.d.ts +141 -0
  76. package/dist/resolution/types.d.ts +461 -0
  77. package/dist/resolution/validators/factor24-validator.d.ts +418 -0
  78. package/dist/resolution/validators/index.d.ts +14 -0
  79. package/dist/scripts/generate-react-library.d.ts +15 -0
  80. package/dist/scripts/write-react-library.d.ts +18 -0
  81. package/dist/storage/cloud-sync.d.ts +182 -0
  82. package/dist/storage/index.d.ts +69 -0
  83. package/dist/storage/local-storage.d.ts +131 -0
  84. package/dist/storage/section-storage.d.ts +191 -0
  85. package/dist/styling/StyleGenerator.d.ts +76 -0
  86. package/dist/styling/TokenStyleResolver.d.ts +163 -0
  87. package/dist/styling/factor-migration.d.ts +192 -0
  88. package/dist/styling/factor-validators.d.ts +327 -0
  89. package/dist/styling/factors-1-6.d.ts +674 -0
  90. package/dist/styling/factors-12-16.d.ts +700 -0
  91. package/dist/styling/factors-17-24.d.ts +668 -0
  92. package/dist/styling/factors-all.d.ts +348 -0
  93. package/dist/styling/factors.d.ts +291 -0
  94. package/dist/styling/index.d.ts +31 -0
  95. package/dist/styling/types.d.ts +400 -0
  96. package/dist/tokens/schema.d.ts +486 -0
  97. package/dist/types/Option.d.ts +178 -0
  98. package/dist/types/Result.d.ts +148 -0
  99. package/dist/types/algorithm-engine.types.d.ts +298 -0
  100. package/dist/types/granularity/base.types.d.ts +268 -0
  101. package/dist/types/granularity/config.types.d.ts +177 -0
  102. package/dist/types/granularity/factors.types.d.ts +194 -0
  103. package/dist/types/granularity/index.d.ts +57 -0
  104. package/dist/types/granularity/slot.types.d.ts +128 -0
  105. package/dist/types/granularity/template.types.d.ts +179 -0
  106. package/dist/types/granularity-levels/atom.config.d.ts +151 -0
  107. package/dist/types/granularity-levels/component.config.d.ts +175 -0
  108. package/dist/types/granularity-levels/index.d.ts +47 -0
  109. package/dist/types/granularity-levels/layout.config.d.ts +278 -0
  110. package/dist/types/granularity-levels/page.config.d.ts +210 -0
  111. package/dist/types/granularity-levels/section.config.d.ts +188 -0
  112. package/dist/types/granularity-levels/template.config.d.ts +340 -0
  113. package/dist/types/index.d.ts +152 -0
  114. package/dist/types/section-slot.types.d.ts +169 -0
  115. package/dist/types/section-storage.types.d.ts +298 -0
  116. package/dist/types/section-template.types.d.ts +170 -0
  117. package/dist/types/section.types.d.ts +326 -0
  118. package/dist/ui-studio/ComponentGenerator.d.ts +219 -0
  119. package/dist/ui-studio/composition/FactorPropagator.d.ts +268 -0
  120. package/dist/ui-studio/composition/PageGenerator.d.ts +176 -0
  121. package/dist/ui-studio/composition/SectionGenerator.d.ts +312 -0
  122. package/dist/ui-studio/composition/SlotResolver.d.ts +295 -0
  123. package/dist/ui-studio/composition/section-orchestrator.d.ts +306 -0
  124. package/dist/ui-studio/granularity/FactorCascade.d.ts +328 -0
  125. package/dist/ui-studio/granularity/GranularityGenerator.d.ts +266 -0
  126. package/dist/ui-studio/granularity/RecursiveGenerator.d.ts +328 -0
  127. package/dist/ui-studio/index.d.ts +94 -0
  128. package/dist/ui-studio/matrix/ClassMapper.d.ts +128 -0
  129. package/dist/ui-studio/matrix/MatrixResolver.d.ts +203 -0
  130. package/dist/ui-studio/matrix/types.d.ts +96 -0
  131. package/dist/ui-studio/presets/IndustryDetector.d.ts +183 -0
  132. package/dist/ui-studio/presets/component-registry.d.ts +213 -0
  133. package/dist/ui-studio/presets/factor-registry.d.ts +364 -0
  134. package/dist/ui-studio/presets/granularity-registry.d.ts +252 -0
  135. package/dist/ui-studio/presets/index.d.ts +32 -0
  136. package/dist/ui-studio/presets/industries.d.ts +143 -0
  137. package/dist/ui-studio/presets/layout-registry.d.ts +21 -0
  138. package/dist/ui-studio/presets/matrix-groups.d.ts +195 -0
  139. package/dist/ui-studio/presets/page-registry.d.ts +24 -0
  140. package/dist/ui-studio/presets/registry.constants.d.ts +69 -0
  141. package/dist/ui-studio/presets/registry.types.d.ts +166 -0
  142. package/dist/ui-studio/presets/section-defaults.d.ts +175 -0
  143. package/dist/ui-studio/presets/section-registry.d.ts +83 -0
  144. package/dist/ui-studio/presets/section-registry.defaults.d.ts +106 -0
  145. package/dist/ui-studio/presets/section-registry.helpers.d.ts +112 -0
  146. package/dist/ui-studio/presets/section-registry.types.d.ts +181 -0
  147. package/dist/ui-studio/presets/template-registry.d.ts +23 -0
  148. package/dist/ui-studio/presets/variants.d.ts +1038 -0
  149. package/dist/ui-studio/registries/components-registry.d.ts +193 -0
  150. package/dist/ui-studio/registries/design-systems-registry.d.ts +153 -0
  151. package/dist/ui-studio/registries/factors-registry.d.ts +145 -0
  152. package/dist/ui-studio/registries/tiers-registry.d.ts +150 -0
  153. package/dist/ui-studio/resolution/FactorResolver.d.ts +201 -0
  154. package/dist/ui-studio/templates/TestGenerator.d.ts +55 -0
  155. package/dist/ui-studio/templates/TierGenerator.d.ts +153 -0
  156. package/dist/ui-studio/templates/TypesGenerator.d.ts +51 -0
  157. package/dist/ui-studio/types/granularity/base.types.d.ts +268 -0
  158. package/dist/ui-studio/types/granularity/config.types.d.ts +177 -0
  159. package/dist/ui-studio/types/granularity/factors.types.d.ts +194 -0
  160. package/dist/ui-studio/types/granularity/index.d.ts +57 -0
  161. package/dist/ui-studio/types/granularity/slot.types.d.ts +128 -0
  162. package/dist/ui-studio/types/granularity/template.types.d.ts +179 -0
  163. package/dist/ui-studio/types/granularity-levels/atom.config.d.ts +151 -0
  164. package/dist/ui-studio/types/granularity-levels/component.config.d.ts +175 -0
  165. package/dist/ui-studio/types/granularity-levels/index.d.ts +47 -0
  166. package/dist/ui-studio/types/granularity-levels/layout.config.d.ts +278 -0
  167. package/dist/ui-studio/types/granularity-levels/page.config.d.ts +210 -0
  168. package/dist/ui-studio/types/granularity-levels/section.config.d.ts +188 -0
  169. package/dist/ui-studio/types/granularity-levels/template.config.d.ts +340 -0
  170. package/dist/ui-studio/types.d.ts +323 -0
  171. package/dist/utils/CodeUtils.d.ts +103 -0
  172. package/dist/utils/GenerateComponentValidator.d.ts +35 -0
  173. package/dist/utils/Logger.d.ts +101 -0
  174. package/dist/utils/StringUtils.d.ts +120 -0
  175. package/dist/utils/ValidationUtils.d.ts +71 -0
  176. package/dist/utils/errors/BaseError.d.ts +23 -0
  177. package/dist/utils/errors/GenerationError.d.ts +14 -0
  178. package/dist/utils/errors/TemplateNotFoundError.d.ts +13 -0
  179. package/dist/utils/errors/ValidationError.d.ts +13 -0
  180. package/dist/utils/errors/index.d.ts +12 -0
  181. package/dist/utils/factor-resolver.d.ts +294 -0
  182. package/dist/utils/granularity-helpers.d.ts +359 -0
  183. package/dist/utils/index.d.ts +20 -0
  184. package/dist/utils/performance.d.ts +26 -0
  185. package/dist/utils/stringify.d.ts +28 -0
  186. package/dist/validators/component-validator.d.ts +86 -0
  187. package/dist/validators/design-system-validator.d.ts +95 -0
  188. package/dist/validators/factor-validator.d.ts +101 -0
  189. package/dist/validators/index.d.ts +263 -0
  190. package/dist/validators/section-validator.d.ts +120 -0
  191. package/dist/validators/slot-validator.d.ts +161 -0
  192. package/dist/validators/tier-validator.d.ts +102 -0
  193. package/package.json +67 -0
  194. package/tests/16-factor-integration.test.d.ts +14 -0
  195. package/tests/16-factor-visual.test.d.ts +14 -0
  196. package/tests/5-level-integration.test.d.ts +14 -0
  197. package/tests/CodeUtils.test.d.ts +7 -0
  198. package/tests/DesignSystems.test.d.ts +7 -0
  199. package/tests/GenerateComponentValidator.test.d.ts +7 -0
  200. package/tests/Logger.test.d.ts +7 -0
  201. package/tests/StringUtils.test.d.ts +7 -0
  202. package/tests/StyleGenerator.test.d.ts +13 -0
  203. package/tests/Tiers.test.d.ts +7 -0
  204. package/tests/TokenRegistry.test.d.ts +14 -0
  205. package/tests/TokenStyleResolver.test.d.ts +13 -0
  206. package/tests/ValidationUtils.test.d.ts +7 -0
  207. package/tests/_pending_fix/Accordion.test.d.ts +13 -0
  208. package/tests/_pending_fix/Alert.test.d.ts +13 -0
  209. package/tests/_pending_fix/AlertDialog.test.d.ts +13 -0
  210. package/tests/_pending_fix/AspectRatio.test.d.ts +13 -0
  211. package/tests/_pending_fix/Autocomplete.test.d.ts +13 -0
  212. package/tests/_pending_fix/Avatar.test.d.ts +13 -0
  213. package/tests/_pending_fix/Badge.test.d.ts +13 -0
  214. package/tests/_pending_fix/Banner.test.d.ts +13 -0
  215. package/tests/_pending_fix/Box.test.d.ts +13 -0
  216. package/tests/_pending_fix/Breadcrumb.test.d.ts +13 -0
  217. package/tests/_pending_fix/Callout.test.d.ts +13 -0
  218. package/tests/_pending_fix/Card.test.d.ts +13 -0
  219. package/tests/_pending_fix/Center.test.d.ts +13 -0
  220. package/tests/_pending_fix/Checkbox.test.d.ts +13 -0
  221. package/tests/_pending_fix/Chip.test.d.ts +13 -0
  222. package/tests/_pending_fix/ColorPicker.test.d.ts +13 -0
  223. package/tests/_pending_fix/Combobox.test.d.ts +13 -0
  224. package/tests/_pending_fix/CommandPalette.test.d.ts +13 -0
  225. package/tests/_pending_fix/ConfirmationModal.test.d.ts +13 -0
  226. package/tests/_pending_fix/Container.test.d.ts +13 -0
  227. package/tests/_pending_fix/DataTable.test.d.ts +13 -0
  228. package/tests/_pending_fix/DatePicker.test.d.ts +13 -0
  229. package/tests/_pending_fix/DateRangePicker.test.d.ts +13 -0
  230. package/tests/_pending_fix/DateTimePicker.test.d.ts +13 -0
  231. package/tests/_pending_fix/Divider.test.d.ts +13 -0
  232. package/tests/_pending_fix/Drawer.test.d.ts +13 -0
  233. package/tests/_pending_fix/Dropdown.test.d.ts +13 -0
  234. package/tests/_pending_fix/EmptyState.test.d.ts +13 -0
  235. package/tests/_pending_fix/ErrorState.test.d.ts +13 -0
  236. package/tests/_pending_fix/FileDropzone.test.d.ts +13 -0
  237. package/tests/_pending_fix/FileUpload.test.d.ts +13 -0
  238. package/tests/_pending_fix/Flex.test.d.ts +13 -0
  239. package/tests/_pending_fix/Grid.test.d.ts +13 -0
  240. package/tests/_pending_fix/GridItem.test.d.ts +13 -0
  241. package/tests/_pending_fix/HStack.test.d.ts +13 -0
  242. package/tests/_pending_fix/Input.test.d.ts +13 -0
  243. package/tests/_pending_fix/InputCurrency.test.d.ts +13 -0
  244. package/tests/_pending_fix/InputGroup.test.d.ts +13 -0
  245. package/tests/_pending_fix/InputOTP.test.d.ts +13 -0
  246. package/tests/_pending_fix/InputPassword.test.d.ts +13 -0
  247. package/tests/_pending_fix/InputPhone.test.d.ts +13 -0
  248. package/tests/_pending_fix/InputSearch.test.d.ts +13 -0
  249. package/tests/_pending_fix/Link.test.d.ts +13 -0
  250. package/tests/_pending_fix/List.test.d.ts +13 -0
  251. package/tests/_pending_fix/LoadingOverlay.test.d.ts +13 -0
  252. package/tests/_pending_fix/Menu.test.d.ts +13 -0
  253. package/tests/_pending_fix/Modal.test.d.ts +13 -0
  254. package/tests/_pending_fix/MultiSelect.test.d.ts +13 -0
  255. package/tests/_pending_fix/NavGroup.test.d.ts +13 -0
  256. package/tests/_pending_fix/NavItem.test.d.ts +13 -0
  257. package/tests/_pending_fix/NavLink.test.d.ts +13 -0
  258. package/tests/_pending_fix/Navbar.test.d.ts +13 -0
  259. package/tests/_pending_fix/Notification.test.d.ts +13 -0
  260. package/tests/_pending_fix/NotificationBadge.test.d.ts +13 -0
  261. package/tests/_pending_fix/NumberInput.test.d.ts +13 -0
  262. package/tests/_pending_fix/Pagination.test.d.ts +13 -0
  263. package/tests/_pending_fix/Popover.test.d.ts +13 -0
  264. package/tests/_pending_fix/Progress.test.d.ts +13 -0
  265. package/tests/_pending_fix/ProgressCircle.test.d.ts +13 -0
  266. package/tests/_pending_fix/ProgressSteps.test.d.ts +13 -0
  267. package/tests/_pending_fix/Radio.test.d.ts +13 -0
  268. package/tests/_pending_fix/RangeSlider.test.d.ts +13 -0
  269. package/tests/_pending_fix/ResizablePanel.test.d.ts +13 -0
  270. package/tests/_pending_fix/ResultState.test.d.ts +13 -0
  271. package/tests/_pending_fix/ScrollArea.test.d.ts +13 -0
  272. package/tests/_pending_fix/Select.test.d.ts +14 -0
  273. package/tests/_pending_fix/Sheet.test.d.ts +13 -0
  274. package/tests/_pending_fix/Sidebar.test.d.ts +13 -0
  275. package/tests/_pending_fix/SimpleGrid.test.d.ts +13 -0
  276. package/tests/_pending_fix/Skeleton.test.d.ts +13 -0
  277. package/tests/_pending_fix/Slider.test.d.ts +13 -0
  278. package/tests/_pending_fix/Spacer.test.d.ts +13 -0
  279. package/tests/_pending_fix/Spinner.test.d.ts +13 -0
  280. package/tests/_pending_fix/Stack.test.d.ts +13 -0
  281. package/tests/_pending_fix/Stat.test.d.ts +13 -0
  282. package/tests/_pending_fix/Stepper.test.d.ts +14 -0
  283. package/tests/_pending_fix/Switch.test.d.ts +13 -0
  284. package/tests/_pending_fix/Table.test.d.ts +13 -0
  285. package/tests/_pending_fix/Tabs.test.d.ts +13 -0
  286. package/tests/_pending_fix/Textarea.test.d.ts +13 -0
  287. package/tests/_pending_fix/Timeline.test.d.ts +13 -0
  288. package/tests/_pending_fix/Toast.test.d.ts +14 -0
  289. package/tests/_pending_fix/Tooltip.test.d.ts +14 -0
  290. package/tests/_pending_fix/VStack.test.d.ts +13 -0
  291. package/tests/alert.test.d.ts +13 -0
  292. package/tests/badge.test.d.ts +13 -0
  293. package/tests/benchmarks/factor-resolution.bench.d.ts +41 -0
  294. package/tests/button.test.d.ts +16 -0
  295. package/tests/card.test.d.ts +19 -0
  296. package/tests/checkbox.test.d.ts +13 -0
  297. package/tests/component-16-factor-types.test.d.ts +13 -0
  298. package/tests/component-5level-integration.test.d.ts +14 -0
  299. package/tests/component-registry-ui.test.d.ts +13 -0
  300. package/tests/e2e/16-factor-visual.test.d.ts +14 -0
  301. package/tests/edge-cases.test.d.ts +14 -0
  302. package/tests/factor-17-24-integration.test.d.ts +14 -0
  303. package/tests/factor-17-24-performance.test.d.ts +14 -0
  304. package/tests/factor-validators.test.d.ts +13 -0
  305. package/tests/factors-1-6.test.d.ts +13 -0
  306. package/tests/factors-12-16.test.d.ts +13 -0
  307. package/tests/factors-17-24.test.d.ts +21 -0
  308. package/tests/factors-all.test.d.ts +13 -0
  309. package/tests/factors-registry.test.d.ts +11 -0
  310. package/tests/factors.test.d.ts +13 -0
  311. package/tests/granularity-types.test.d.ts +18 -0
  312. package/tests/groups.test.d.ts +14 -0
  313. package/tests/input.test.d.ts +16 -0
  314. package/tests/intents.test.d.ts +14 -0
  315. package/tests/memory-leak.test.d.ts +14 -0
  316. package/tests/modal.test.d.ts +19 -0
  317. package/tests/presets.test.d.ts +14 -0
  318. package/tests/radio.test.d.ts +13 -0
  319. package/tests/resolution-intents.test.d.ts +13 -0
  320. package/tests/resolution-presets.test.d.ts +13 -0
  321. package/tests/resolveProps.test.d.ts +14 -0
  322. package/tests/section-integration.test.d.ts +16 -0
  323. package/tests/section-types.test.d.ts +11 -0
  324. package/tests/setup.d.ts +13 -0
  325. package/tests/shorthands.test.d.ts +14 -0
  326. package/tests/switch.test.d.ts +13 -0
  327. package/tests/tabs.test.d.ts +13 -0
  328. package/tests/tiers-registry.test.d.ts +11 -0
  329. package/tests/useComponentStyles.test.d.ts +11 -0
  330. package/tests/useFactors.test.d.ts +13 -0
  331. package/tests/validators-invalid-input.test.d.ts +13 -0
  332. package/tsup.config.d.ts +11 -0
  333. package/vitest.config.d.ts +3 -0
@@ -0,0 +1,418 @@
1
+ /**
2
+ * Factor24 Validator - Complete Validation Utility for 24-Factor System
3
+ *
4
+ * Provides comprehensive validation for all 24 factors with:
5
+ * - Type-safe validation functions
6
+ * - Detailed error messages with suggestions
7
+ * - Batch validation for complete configs
8
+ * - Partial config validation
9
+ *
10
+ * @packageDocumentation
11
+ * @module resolution/validators/factor24-validator
12
+ * @since 2.1.0
13
+ *
14
+ * Powered by Nikkory
15
+ */
16
+ import type { Factor24Config, FactorShape, FactorPosition, FactorIconPosition, FactorState, FactorAnimation, FactorElevation, FactorA11y, FactorAlignment, FactorOrientation, FactorDensity, FactorLoadingState, FactorTheme, FactorSpacing, FactorTypography, FactorBorder, FactorOpacity, FactorOverflow, FactorCursor, FactorZIndex, FactorTransition, ComponentSize, ColorScheme } from '../types';
17
+ /**
18
+ * Valid values for Factor 1: Size
19
+ * @since 2.1.0
20
+ */
21
+ export declare const VALID_SIZES: ReadonlyArray<ComponentSize>;
22
+ /**
23
+ * Valid values for Factor 3: Color Scheme
24
+ * @since 2.1.0
25
+ */
26
+ export declare const VALID_COLOR_SCHEMES: ReadonlyArray<ColorScheme>;
27
+ /**
28
+ * Valid values for Factor 4: Shape
29
+ * @since 2.1.0
30
+ */
31
+ export declare const VALID_SHAPES: ReadonlyArray<FactorShape>;
32
+ /**
33
+ * Valid values for Factor 5: Position
34
+ * @since 2.1.0
35
+ */
36
+ export declare const VALID_POSITIONS: ReadonlyArray<FactorPosition>;
37
+ /**
38
+ * Valid values for Factor 6: Icon Position
39
+ * @since 2.1.0
40
+ */
41
+ export declare const VALID_ICON_POSITIONS: ReadonlyArray<FactorIconPosition>;
42
+ /**
43
+ * Valid values for Factor 7: State
44
+ * @since 2.1.0
45
+ */
46
+ export declare const VALID_STATES: ReadonlyArray<FactorState>;
47
+ /**
48
+ * Valid values for Factor 8: Animation
49
+ * @since 2.1.0
50
+ */
51
+ export declare const VALID_ANIMATIONS: ReadonlyArray<FactorAnimation>;
52
+ /**
53
+ * Valid values for Factor 9: Elevation
54
+ * @since 2.1.0
55
+ */
56
+ export declare const VALID_ELEVATIONS: ReadonlyArray<FactorElevation>;
57
+ /**
58
+ * Valid values for Factor 10: Accessibility
59
+ * @since 2.1.0
60
+ */
61
+ export declare const VALID_A11Y_LEVELS: ReadonlyArray<FactorA11y>;
62
+ /**
63
+ * Valid values for Factor 11: Alignment
64
+ * @since 2.1.0
65
+ */
66
+ export declare const VALID_ALIGNMENTS: ReadonlyArray<FactorAlignment>;
67
+ /**
68
+ * Valid values for Factor 12: Orientation
69
+ * @since 2.1.0
70
+ */
71
+ export declare const VALID_ORIENTATIONS: ReadonlyArray<FactorOrientation>;
72
+ /**
73
+ * Valid values for Factor 13: Density
74
+ * @since 2.1.0
75
+ */
76
+ export declare const VALID_DENSITIES: ReadonlyArray<FactorDensity>;
77
+ /**
78
+ * Valid values for Factor 14: Loading State
79
+ * @since 2.1.0
80
+ */
81
+ export declare const VALID_LOADING_STATES: ReadonlyArray<FactorLoadingState>;
82
+ /**
83
+ * Valid values for Factor 16: Theme
84
+ * @since 2.1.0
85
+ */
86
+ export declare const VALID_THEMES: ReadonlyArray<FactorTheme>;
87
+ /**
88
+ * Valid values for Factor 17: Spacing
89
+ * @since 2.1.0
90
+ */
91
+ export declare const VALID_SPACINGS: ReadonlyArray<FactorSpacing>;
92
+ /**
93
+ * Valid values for Factor 18: Typography
94
+ * @since 2.1.0
95
+ */
96
+ export declare const VALID_TYPOGRAPHIES: ReadonlyArray<FactorTypography>;
97
+ /**
98
+ * Valid values for Factor 19: Border
99
+ * @since 2.1.0
100
+ */
101
+ export declare const VALID_BORDERS: ReadonlyArray<FactorBorder>;
102
+ /**
103
+ * Valid values for Factor 20: Opacity
104
+ * @since 2.1.0
105
+ */
106
+ export declare const VALID_OPACITIES: ReadonlyArray<FactorOpacity>;
107
+ /**
108
+ * Valid values for Factor 21: Overflow
109
+ * @since 2.1.0
110
+ */
111
+ export declare const VALID_OVERFLOWS: ReadonlyArray<FactorOverflow>;
112
+ /**
113
+ * Valid values for Factor 22: Cursor
114
+ * @since 2.1.0
115
+ */
116
+ export declare const VALID_CURSORS: ReadonlyArray<FactorCursor>;
117
+ /**
118
+ * Valid values for Factor 23: Z-Index
119
+ * @since 2.1.0
120
+ */
121
+ export declare const VALID_Z_INDICES: ReadonlyArray<FactorZIndex>;
122
+ /**
123
+ * Valid values for Factor 24: Transition
124
+ * @since 2.1.0
125
+ */
126
+ export declare const VALID_TRANSITIONS: ReadonlyArray<FactorTransition>;
127
+ /**
128
+ * Check if value is a valid ComponentSize.
129
+ * @since 2.1.0
130
+ */
131
+ export declare function isValidSize(value: unknown): value is ComponentSize;
132
+ /**
133
+ * Check if value is a valid ColorScheme.
134
+ * @since 2.1.0
135
+ */
136
+ export declare function isValidColorScheme(value: unknown): value is ColorScheme;
137
+ /**
138
+ * Check if value is a valid FactorShape.
139
+ * @since 2.1.0
140
+ */
141
+ export declare function isValidShape(value: unknown): value is FactorShape;
142
+ /**
143
+ * Check if value is a valid FactorPosition.
144
+ * @since 2.1.0
145
+ */
146
+ export declare function isValidPosition(value: unknown): value is FactorPosition;
147
+ /**
148
+ * Check if value is a valid FactorIconPosition.
149
+ * @since 2.1.0
150
+ */
151
+ export declare function isValidIconPosition(value: unknown): value is FactorIconPosition;
152
+ /**
153
+ * Check if value is a valid FactorState.
154
+ * @since 2.1.0
155
+ */
156
+ export declare function isValidState(value: unknown): value is FactorState;
157
+ /**
158
+ * Check if value is a valid FactorAnimation.
159
+ * @since 2.1.0
160
+ */
161
+ export declare function isValidAnimation(value: unknown): value is FactorAnimation;
162
+ /**
163
+ * Check if value is a valid FactorElevation.
164
+ * @since 2.1.0
165
+ */
166
+ export declare function isValidElevation(value: unknown): value is FactorElevation;
167
+ /**
168
+ * Check if value is a valid FactorA11y.
169
+ * @since 2.1.0
170
+ */
171
+ export declare function isValidA11y(value: unknown): value is FactorA11y;
172
+ /**
173
+ * Check if value is a valid FactorAlignment.
174
+ * @since 2.1.0
175
+ */
176
+ export declare function isValidAlignment(value: unknown): value is FactorAlignment;
177
+ /**
178
+ * Check if value is a valid FactorOrientation.
179
+ * @since 2.1.0
180
+ */
181
+ export declare function isValidOrientation(value: unknown): value is FactorOrientation;
182
+ /**
183
+ * Check if value is a valid FactorDensity.
184
+ * @since 2.1.0
185
+ */
186
+ export declare function isValidDensity(value: unknown): value is FactorDensity;
187
+ /**
188
+ * Check if value is a valid FactorLoadingState.
189
+ * @since 2.1.0
190
+ */
191
+ export declare function isValidLoadingState(value: unknown): value is FactorLoadingState;
192
+ /**
193
+ * Check if value is a valid FactorTheme.
194
+ * @since 2.1.0
195
+ */
196
+ export declare function isValidTheme(value: unknown): value is FactorTheme;
197
+ /**
198
+ * Check if value is a valid FactorSpacing.
199
+ * @since 2.1.0
200
+ */
201
+ export declare function isValidSpacing(value: unknown): value is FactorSpacing;
202
+ /**
203
+ * Check if value is a valid FactorTypography.
204
+ * @since 2.1.0
205
+ */
206
+ export declare function isValidTypography(value: unknown): value is FactorTypography;
207
+ /**
208
+ * Check if value is a valid FactorBorder.
209
+ * @since 2.1.0
210
+ */
211
+ export declare function isValidBorder(value: unknown): value is FactorBorder;
212
+ /**
213
+ * Check if value is a valid FactorOpacity.
214
+ * @since 2.1.0
215
+ */
216
+ export declare function isValidOpacity(value: unknown): value is FactorOpacity;
217
+ /**
218
+ * Check if value is a valid FactorOverflow.
219
+ * @since 2.1.0
220
+ */
221
+ export declare function isValidOverflow(value: unknown): value is FactorOverflow;
222
+ /**
223
+ * Check if value is a valid FactorCursor.
224
+ * @since 2.1.0
225
+ */
226
+ export declare function isValidCursor(value: unknown): value is FactorCursor;
227
+ /**
228
+ * Check if value is a valid FactorZIndex.
229
+ * @since 2.1.0
230
+ */
231
+ export declare function isValidZIndex(value: unknown): value is FactorZIndex;
232
+ /**
233
+ * Check if value is a valid FactorTransition.
234
+ * @since 2.1.0
235
+ */
236
+ export declare function isValidTransition(value: unknown): value is FactorTransition;
237
+ /**
238
+ * Validation error with detailed information.
239
+ * @since 2.1.0
240
+ */
241
+ export interface Factor24ValidationError {
242
+ /** The factor that failed validation */
243
+ factor: keyof Factor24Config;
244
+ /** The factor number (1-24) */
245
+ factorNumber: number;
246
+ /** The invalid value provided */
247
+ invalidValue: unknown;
248
+ /** Expected type or values */
249
+ expected: string;
250
+ /** Human-readable error message */
251
+ message: string;
252
+ /** Suggestion for valid values */
253
+ suggestion?: string;
254
+ }
255
+ /**
256
+ * Validation result for Factor24Config.
257
+ * @since 2.1.0
258
+ */
259
+ export interface Factor24ValidationResult {
260
+ /** Whether the config is valid */
261
+ isValid: boolean;
262
+ /** List of validation errors (empty if valid) */
263
+ errors: Factor24ValidationError[];
264
+ /** Validated config (only set if valid) */
265
+ validatedConfig?: Partial<Factor24Config>;
266
+ /** Count of validated factors */
267
+ validatedCount: number;
268
+ /** Count of errors */
269
+ errorCount: number;
270
+ }
271
+ /**
272
+ * Factor metadata for validation and documentation.
273
+ * @since 2.1.0
274
+ */
275
+ interface FactorMetadata {
276
+ factorNumber: number;
277
+ name: string;
278
+ validator: (value: unknown) => boolean;
279
+ validValues: readonly string[];
280
+ }
281
+ /**
282
+ * Factor24 Validator - Complete validation utility.
283
+ *
284
+ * @example
285
+ * ```typescript
286
+ * const validator = new Factor24Validator();
287
+ *
288
+ * // Validate partial config
289
+ * const result = validator.validate({
290
+ * size: 'md',
291
+ * spacing: 'lg',
292
+ * cursor: 'pointer',
293
+ * });
294
+ *
295
+ * if (result.isValid) {
296
+ * console.log('Config is valid!');
297
+ * } else {
298
+ * console.log('Errors:', result.errors);
299
+ * }
300
+ * ```
301
+ *
302
+ * @since 2.1.0
303
+ */
304
+ export declare class Factor24Validator {
305
+ /**
306
+ * Validate a partial Factor24Config.
307
+ *
308
+ * @param config - The partial config to validate
309
+ * @returns Validation result with errors if any
310
+ * @since 2.1.0
311
+ */
312
+ validate(config: Partial<Factor24Config>): Factor24ValidationResult;
313
+ /**
314
+ * Validate a single factor value.
315
+ *
316
+ * @param factor - The factor key to validate
317
+ * @param value - The value to validate
318
+ * @returns True if the value is valid for the factor
319
+ * @since 2.1.0
320
+ */
321
+ validateFactor(factor: keyof Factor24Config, value: unknown): boolean;
322
+ /**
323
+ * Get valid values for a factor.
324
+ *
325
+ * @param factor - The factor key
326
+ * @returns Array of valid values
327
+ * @since 2.1.0
328
+ */
329
+ getValidValues(factor: keyof Factor24Config): readonly string[];
330
+ /**
331
+ * Get factor number for a key.
332
+ *
333
+ * @param factor - The factor key
334
+ * @returns Factor number (1-24) or 0 if not found
335
+ * @since 2.1.0
336
+ */
337
+ getFactorNumber(factor: keyof Factor24Config): number;
338
+ /**
339
+ * Get factor name for a key.
340
+ *
341
+ * @param factor - The factor key
342
+ * @returns Human-readable factor name
343
+ * @since 2.1.0
344
+ */
345
+ getFactorName(factor: keyof Factor24Config): string;
346
+ /**
347
+ * Get all factors for a specific factor number.
348
+ *
349
+ * @param factorNumber - The factor number (1-24)
350
+ * @returns Array of factor keys for that number
351
+ * @since 2.1.0
352
+ */
353
+ getFactorsByNumber(factorNumber: number): Array<keyof Factor24Config>;
354
+ /**
355
+ * Get complete factor metadata.
356
+ *
357
+ * @param factor - The factor key
358
+ * @returns Factor metadata or undefined
359
+ * @since 2.1.0
360
+ */
361
+ getFactorMetadata(factor: keyof Factor24Config): FactorMetadata | undefined;
362
+ /**
363
+ * Get all factor keys.
364
+ *
365
+ * @returns Array of all factor keys
366
+ * @since 2.1.0
367
+ */
368
+ getAllFactorKeys(): Array<keyof Factor24Config>;
369
+ /**
370
+ * Format validation errors as human-readable string.
371
+ *
372
+ * @param result - Validation result
373
+ * @returns Formatted error string
374
+ * @since 2.1.0
375
+ */
376
+ formatErrors(result: Factor24ValidationResult): string;
377
+ }
378
+ /**
379
+ * Global Factor24Validator instance.
380
+ * @since 2.1.0
381
+ */
382
+ export declare const factor24Validator: Factor24Validator;
383
+ /**
384
+ * Validate a Factor24Config using the global validator.
385
+ *
386
+ * @param config - The config to validate
387
+ * @returns Validation result
388
+ * @since 2.1.0
389
+ */
390
+ export declare function validateFactor24Config(config: Partial<Factor24Config>): Factor24ValidationResult;
391
+ /**
392
+ * Validate a single factor using the global validator.
393
+ *
394
+ * @param factor - The factor key
395
+ * @param value - The value to validate
396
+ * @returns True if valid
397
+ * @since 2.1.0
398
+ */
399
+ export declare function validateFactor(factor: keyof Factor24Config, value: unknown): boolean;
400
+ /**
401
+ * Quick check if a config is valid.
402
+ *
403
+ * @param config - The config to check
404
+ * @returns True if the config is valid
405
+ * @since 2.1.0
406
+ */
407
+ export declare function isValidFactor24Config(config: Partial<Factor24Config>): boolean;
408
+ /**
409
+ * Validate and return config or throw error.
410
+ *
411
+ * @param config - The config to validate
412
+ * @returns The validated config
413
+ * @throws Error if validation fails
414
+ * @since 2.1.0
415
+ */
416
+ export declare function assertValidFactor24Config(config: Partial<Factor24Config>): Partial<Factor24Config>;
417
+ export {};
418
+ //# sourceMappingURL=factor24-validator.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Validators Module - Factor24 Validation Utilities
3
+ *
4
+ * Central export point for all validation functionality.
5
+ *
6
+ * @packageDocumentation
7
+ * @module resolution/validators
8
+ * @since 2.1.0
9
+ *
10
+ * Powered by Nikkory
11
+ */
12
+ export { Factor24Validator, factor24Validator, validateFactor24Config, validateFactor, isValidFactor24Config, assertValidFactor24Config, VALID_SIZES, VALID_COLOR_SCHEMES, VALID_SHAPES, VALID_POSITIONS, VALID_ICON_POSITIONS, VALID_STATES, VALID_ANIMATIONS, VALID_ELEVATIONS, VALID_A11Y_LEVELS, VALID_ALIGNMENTS, VALID_ORIENTATIONS, VALID_DENSITIES, VALID_LOADING_STATES, VALID_THEMES, VALID_SPACINGS, VALID_TYPOGRAPHIES, VALID_BORDERS, VALID_OPACITIES, VALID_OVERFLOWS, VALID_CURSORS, VALID_Z_INDICES, VALID_TRANSITIONS, isValidSize, isValidColorScheme, isValidShape, isValidPosition, isValidIconPosition, isValidState, isValidAnimation, isValidElevation, isValidA11y, isValidAlignment, isValidOrientation, isValidDensity, isValidLoadingState, isValidTheme, isValidSpacing, isValidTypography, isValidBorder, isValidOpacity, isValidOverflow, isValidCursor, isValidZIndex, isValidTransition, } from './factor24-validator';
13
+ export type { Factor24ValidationError, Factor24ValidationResult, } from './factor24-validator';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generate React Library - Auto-generation script for all registry components
3
+ * @packageDocumentation
4
+ * @module scripts/generate-react-library
5
+ * @since 4.0.0
6
+ *
7
+ * Usage:
8
+ * pnpm tsx src/scripts/generate-react-library.ts
9
+ * pnpm tsx src/scripts/generate-react-library.ts --tier enterprise
10
+ * pnpm tsx src/scripts/generate-react-library.ts --design-system material-design
11
+ *
12
+ * Powered by Nikkory
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=generate-react-library.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Write React Library - Production file generation script
3
+ * @packageDocumentation
4
+ * @module scripts/write-react-library
5
+ * @since 4.0.0
6
+ *
7
+ * This script WRITES actual files to packages/react/src/
8
+ * Unlike generate-react-library.ts (testing only), this creates production files.
9
+ *
10
+ * Usage:
11
+ * pnpm tsx src/scripts/write-react-library.ts
12
+ * pnpm tsx src/scripts/write-react-library.ts --tier enterprise
13
+ * pnpm tsx src/scripts/write-react-library.ts --design-system material-design
14
+ *
15
+ * Powered by Nikkory
16
+ */
17
+ export {};
18
+ //# sourceMappingURL=write-react-library.d.ts.map
@@ -0,0 +1,182 @@
1
+ /**
2
+ * Cloud Sync Module
3
+ * Cloud synchronization for team and public templates
4
+ *
5
+ * @packageDocumentation
6
+ * @module storage/cloud-sync
7
+ * @since 4.0.0
8
+ *
9
+ * Powered by Nikkory
10
+ */
11
+ import type { SectionTemplate, SectionTemplateWithFactors, TemplateVisibility } from '../types/section-template.types';
12
+ /**
13
+ * Cloud sync operation result
14
+ */
15
+ export interface SyncResult<T> {
16
+ /** Whether sync succeeded */
17
+ readonly success: boolean;
18
+ /** Result data if successful */
19
+ readonly data?: T;
20
+ /** Error message if failed */
21
+ readonly error?: string;
22
+ /** Sync timestamp */
23
+ readonly syncedAt?: Date;
24
+ }
25
+ /**
26
+ * Sync status for a template
27
+ */
28
+ export interface SyncStatus {
29
+ /** Template identifier */
30
+ readonly templateId: string;
31
+ /** Whether template is synced */
32
+ readonly isSynced: boolean;
33
+ /** Last sync timestamp */
34
+ readonly lastSyncedAt?: Date;
35
+ /** Whether local has pending changes */
36
+ readonly hasPendingChanges: boolean;
37
+ /** Remote version if available */
38
+ readonly remoteVersion?: string;
39
+ /** Local version */
40
+ readonly localVersion: string;
41
+ }
42
+ /**
43
+ * Sync conflict information
44
+ */
45
+ export interface SyncConflict {
46
+ /** Template identifier */
47
+ readonly templateId: string;
48
+ /** Local template version */
49
+ readonly localVersion: string;
50
+ /** Remote template version */
51
+ readonly remoteVersion: string;
52
+ /** Local modified timestamp */
53
+ readonly localModifiedAt: Date;
54
+ /** Remote modified timestamp */
55
+ readonly remoteModifiedAt: Date;
56
+ /** Conflict resolution options */
57
+ readonly resolution: 'keep-local' | 'keep-remote' | 'merge' | 'pending';
58
+ }
59
+ /**
60
+ * Batch sync result
61
+ */
62
+ export interface BatchSyncResult {
63
+ /** Templates successfully synced */
64
+ readonly synced: readonly string[];
65
+ /** Templates that failed to sync */
66
+ readonly failed: readonly {
67
+ templateId: string;
68
+ error: string;
69
+ }[];
70
+ /** Templates with conflicts */
71
+ readonly conflicts: readonly SyncConflict[];
72
+ /** Total sync duration in ms */
73
+ readonly durationMs: number;
74
+ }
75
+ /**
76
+ * Visibility rules for cloud sync
77
+ *
78
+ * @remarks
79
+ * - private: Local storage only, no cloud sync
80
+ * - team: Syncs to team workspace in cloud
81
+ * - public: Syncs to cloud + listed in marketplace
82
+ */
83
+ export declare const VISIBILITY_SYNC_RULES: Record<TemplateVisibility, {
84
+ readonly syncEnabled: boolean;
85
+ readonly marketplaceListing: boolean;
86
+ readonly requiresAuth: boolean;
87
+ }>;
88
+ /**
89
+ * Check if visibility allows cloud sync
90
+ *
91
+ * @param visibility - Template visibility
92
+ * @returns Whether sync is enabled for this visibility
93
+ */
94
+ export declare function isSyncEnabled(visibility: TemplateVisibility): boolean;
95
+ /**
96
+ * Check if visibility allows marketplace listing
97
+ *
98
+ * @param visibility - Template visibility
99
+ * @returns Whether marketplace listing is enabled
100
+ */
101
+ export declare function isMarketplaceEnabled(visibility: TemplateVisibility): boolean;
102
+ /**
103
+ * Sync template to cloud
104
+ *
105
+ * @param template - Template to sync
106
+ * @param options - Sync options
107
+ * @returns Sync result
108
+ *
109
+ * @remarks
110
+ * Only syncs if visibility is 'team' or 'public'.
111
+ * Private templates are stored locally only.
112
+ *
113
+ * @example
114
+ * ```typescript
115
+ * const result = await syncToCloud(myTemplate);
116
+ * if (result.success) {
117
+ * console.log('Synced at:', result.syncedAt);
118
+ * }
119
+ * ```
120
+ */
121
+ export declare function syncToCloud(template: SectionTemplate | SectionTemplateWithFactors, options?: SyncOptions): Promise<SyncResult<string>>;
122
+ /**
123
+ * Sync options for cloud operations
124
+ */
125
+ export interface SyncOptions {
126
+ /** Force overwrite remote version */
127
+ readonly forceOverwrite?: boolean;
128
+ /** Skip conflict check */
129
+ readonly skipConflictCheck?: boolean;
130
+ /** Custom API endpoint */
131
+ readonly apiEndpoint?: string;
132
+ /** Auth token for API */
133
+ readonly authToken?: string;
134
+ }
135
+ /**
136
+ * Fetch template from cloud
137
+ *
138
+ * @param templateId - Template identifier
139
+ * @param options - Sync options
140
+ * @returns Sync result with template data
141
+ */
142
+ export declare function fetchFromCloud(templateId: string, options?: SyncOptions): Promise<SyncResult<SectionTemplate | SectionTemplateWithFactors>>;
143
+ /**
144
+ * Check sync status for a template
145
+ *
146
+ * @param templateId - Template identifier
147
+ * @param localVersion - Local template version
148
+ * @param options - Sync options
149
+ * @returns Sync status
150
+ */
151
+ export declare function checkSyncStatus(templateId: string, localVersion: string, _options?: SyncOptions): Promise<SyncResult<SyncStatus>>;
152
+ /**
153
+ * Sync multiple templates to cloud
154
+ *
155
+ * @param templates - Templates to sync
156
+ * @param options - Sync options
157
+ * @returns Batch sync result
158
+ *
159
+ * @example
160
+ * ```typescript
161
+ * const result = await batchSyncToCloud([template1, template2]);
162
+ * console.log(`Synced: ${result.synced.length}, Failed: ${result.failed.length}`);
163
+ * ```
164
+ */
165
+ export declare function batchSyncToCloud(templates: readonly (SectionTemplate | SectionTemplateWithFactors)[], options?: SyncOptions): Promise<BatchSyncResult>;
166
+ /**
167
+ * Delete template from cloud
168
+ *
169
+ * @param templateId - Template identifier
170
+ * @param options - Sync options
171
+ * @returns Sync result
172
+ */
173
+ export declare function deleteFromCloud(templateId: string, options?: SyncOptions): Promise<SyncResult<boolean>>;
174
+ /**
175
+ * Resolve sync conflict
176
+ *
177
+ * @param conflict - Conflict to resolve
178
+ * @param resolution - Resolution strategy
179
+ * @returns Resolution result
180
+ */
181
+ export declare function resolveConflict(conflict: SyncConflict, resolution: 'keep-local' | 'keep-remote' | 'merge'): Promise<SyncResult<SectionTemplate | SectionTemplateWithFactors>>;
182
+ //# sourceMappingURL=cloud-sync.d.ts.map