@dialecte/core 0.0.16 → 0.0.17

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 (237) hide show
  1. package/dist/env.d.ts +1 -0
  2. package/dist/index.d.ts +1 -8
  3. package/dist/index.js +309 -308
  4. package/dist/{chain-methods → src/chain-methods}/chain-assembler.d.ts +3 -4
  5. package/dist/{chain-methods → src/chain-methods}/chain-creator.d.ts +3 -4
  6. package/dist/{chain-methods → src/chain-methods}/ending/index.d.ts +0 -1
  7. package/dist/{chain-methods → src/chain-methods}/ending/queries/context.d.ts +2 -3
  8. package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/filter-utils.helper.d.ts +2 -3
  9. package/dist/src/chain-methods/ending/queries/descendants/find-descendants-as-tree.d.ts +51 -0
  10. package/dist/src/chain-methods/ending/queries/descendants/find-descendants.d.ts +59 -0
  11. package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/flatten-tree.helper.d.ts +1 -2
  12. package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/group-records.helper.d.ts +1 -2
  13. package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/index.d.ts +0 -1
  14. package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/match-conditions.helper.d.ts +2 -3
  15. package/dist/src/chain-methods/ending/queries/descendants/types.d.ts +34 -0
  16. package/dist/{chain-methods → src/chain-methods}/ending/queries/descendants/walk-ancestry.helper.d.ts +1 -2
  17. package/dist/src/chain-methods/ending/queries/find-children.d.ts +8 -0
  18. package/dist/src/chain-methods/ending/queries/find-children.types.d.ts +5 -0
  19. package/dist/{chain-methods → src/chain-methods}/ending/queries/get-attributes-values.d.ts +1 -2
  20. package/dist/{chain-methods → src/chain-methods}/ending/queries/get-parent.d.ts +1 -2
  21. package/dist/{chain-methods → src/chain-methods}/ending/queries/get-tree.d.ts +3 -4
  22. package/dist/src/chain-methods/ending/queries/get-tree.types.d.ts +17 -0
  23. package/dist/{chain-methods → src/chain-methods}/ending/queries/index.d.ts +0 -1
  24. package/dist/{chain-methods → src/chain-methods}/ending/transaction/commit.d.ts +2 -3
  25. package/dist/src/chain-methods/ending/transaction/index.d.ts +1 -0
  26. package/dist/src/chain-methods/ending/transaction/merge-operations.d.ts +20 -0
  27. package/dist/{chain-methods → src/chain-methods}/index.d.ts +0 -1
  28. package/dist/{chain-methods → src/chain-methods}/mutations/clone.d.ts +2 -3
  29. package/dist/src/chain-methods/mutations/clone.types.d.ts +16 -0
  30. package/dist/{chain-methods → src/chain-methods}/mutations/create.d.ts +3 -4
  31. package/dist/src/chain-methods/mutations/create.types.d.ts +31 -0
  32. package/dist/{chain-methods → src/chain-methods}/mutations/delete.d.ts +4 -5
  33. package/dist/src/chain-methods/mutations/delete.types.d.ts +5 -0
  34. package/dist/{chain-methods → src/chain-methods}/mutations/index.d.ts +0 -1
  35. package/dist/{chain-methods → src/chain-methods}/mutations/update.d.ts +3 -4
  36. package/dist/src/chain-methods/mutations/update.types.d.ts +5 -0
  37. package/dist/{chain-methods → src/chain-methods}/navigation/go-to-element.d.ts +4 -5
  38. package/dist/{chain-methods → src/chain-methods}/navigation/go-to-parent.d.ts +5 -6
  39. package/dist/{chain-methods → src/chain-methods}/navigation/index.d.ts +0 -1
  40. package/dist/src/chain-methods/navigation/types.d.ts +11 -0
  41. package/dist/{chain-methods → src/chain-methods}/types.d.ts +9 -10
  42. package/dist/{database → src/database}/index.d.ts +0 -1
  43. package/dist/src/database/instance.d.ts +6 -0
  44. package/dist/src/database/types.d.ts +8 -0
  45. package/dist/{dialecte → src/dialecte}/entrypoints.d.ts +4 -5
  46. package/dist/{dialecte → src/dialecte}/index.d.ts +0 -1
  47. package/dist/{dialecte → src/dialecte}/main.d.ts +3 -4
  48. package/dist/{dialecte → src/dialecte}/state.d.ts +1 -2
  49. package/dist/{dialecte → src/dialecte}/types.d.ts +6 -7
  50. package/dist/{errors → src/errors}/codes.d.ts +0 -1
  51. package/dist/{errors → src/errors}/errors.d.ts +2 -3
  52. package/dist/{errors → src/errors}/index.d.ts +0 -1
  53. package/dist/src/errors/types.d.ts +22 -0
  54. package/dist/{helpers → src/helpers}/assert.d.ts +0 -1
  55. package/dist/{helpers → src/helpers}/index.d.ts +0 -1
  56. package/dist/{helpers → src/helpers}/record/converter.d.ts +1 -2
  57. package/dist/{helpers → src/helpers}/record/guard.d.ts +1 -2
  58. package/dist/{helpers → src/helpers}/record/index.d.ts +0 -1
  59. package/dist/{helpers → src/helpers}/record/operations.d.ts +1 -2
  60. package/dist/{helpers → src/helpers}/record/query/find-by-attributes.d.ts +3 -4
  61. package/dist/{helpers → src/helpers}/record/query/index.d.ts +0 -1
  62. package/dist/{helpers → src/helpers}/record/query/record.d.ts +2 -3
  63. package/dist/src/helpers/record/query/types.d.ts +9 -0
  64. package/dist/{helpers → src/helpers}/record/standardizing.d.ts +1 -2
  65. package/dist/{helpers → src/helpers}/test-fixtures/config.d.ts +35 -36
  66. package/dist/{helpers → src/helpers}/test-fixtures/constant.d.ts +0 -1
  67. package/dist/{helpers → src/helpers}/test-fixtures/create-test-dialecte.d.ts +3 -4
  68. package/dist/{helpers → src/helpers}/test-fixtures/generated/constants.generated.d.ts +41 -42
  69. package/dist/src/helpers/test-fixtures/generated/definition.d.ts +1 -0
  70. package/dist/{helpers → src/helpers}/test-fixtures/generated/index.d.ts +0 -1
  71. package/dist/{helpers → src/helpers}/test-fixtures/generated/types.generated.d.ts +37 -38
  72. package/dist/{helpers → src/helpers}/test-fixtures/index.d.ts +0 -1
  73. package/dist/{helpers → src/helpers}/test-fixtures/test-operations.d.ts +4 -5
  74. package/dist/src/helpers/test-fixtures/test-operations.types.d.ts +19 -0
  75. package/dist/{helpers → src/helpers}/test-fixtures/test-record.d.ts +2 -3
  76. package/dist/src/index.d.ts +7 -0
  77. package/dist/{io → src/io}/export/constant.d.ts +0 -1
  78. package/dist/{io → src/io}/export/download-file.d.ts +1 -2
  79. package/dist/{io → src/io}/export/formatter.d.ts +0 -1
  80. package/dist/{io → src/io}/export/index.d.ts +0 -1
  81. package/dist/{io → src/io}/export/main.d.ts +1 -2
  82. package/dist/{io → src/io}/import/database-helpers.d.ts +1 -2
  83. package/dist/{io → src/io}/import/guards.d.ts +0 -1
  84. package/dist/{io → src/io}/import/index.d.ts +0 -1
  85. package/dist/{io → src/io}/import/main.d.ts +1 -2
  86. package/dist/{io → src/io}/import/parser.d.ts +2 -3
  87. package/dist/{io → src/io}/import/relationships.d.ts +1 -2
  88. package/dist/{io → src/io}/import/types.d.ts +4 -5
  89. package/dist/{io → src/io}/index.d.ts +0 -1
  90. package/dist/src/types/context.d.ts +15 -0
  91. package/dist/{types → src/types}/definition.d.ts +6 -7
  92. package/dist/{types → src/types}/dialecte-config.d.ts +31 -32
  93. package/dist/{types → src/types}/index.d.ts +0 -1
  94. package/dist/{types → src/types}/io.d.ts +3 -4
  95. package/dist/{types → src/types}/operations.d.ts +5 -6
  96. package/dist/src/types/records.d.ts +56 -0
  97. package/dist/{utils → src/utils}/attributes.d.ts +1 -2
  98. package/dist/src/utils/index.d.ts +1 -0
  99. package/dist/vitest.shims.d.ts +1 -0
  100. package/package.json +8 -2
  101. package/dist/chain-methods/chain-assembler.d.ts.map +0 -1
  102. package/dist/chain-methods/chain-creator.d.ts.map +0 -1
  103. package/dist/chain-methods/ending/index.d.ts.map +0 -1
  104. package/dist/chain-methods/ending/queries/context.d.ts.map +0 -1
  105. package/dist/chain-methods/ending/queries/descendants/filter-utils.helper.d.ts.map +0 -1
  106. package/dist/chain-methods/ending/queries/descendants/find-descendants-as-tree.d.ts +0 -9
  107. package/dist/chain-methods/ending/queries/descendants/find-descendants-as-tree.d.ts.map +0 -1
  108. package/dist/chain-methods/ending/queries/descendants/find-descendants.d.ts +0 -16
  109. package/dist/chain-methods/ending/queries/descendants/find-descendants.d.ts.map +0 -1
  110. package/dist/chain-methods/ending/queries/descendants/flatten-tree.helper.d.ts.map +0 -1
  111. package/dist/chain-methods/ending/queries/descendants/group-records.helper.d.ts.map +0 -1
  112. package/dist/chain-methods/ending/queries/descendants/index.d.ts.map +0 -1
  113. package/dist/chain-methods/ending/queries/descendants/match-conditions.helper.d.ts.map +0 -1
  114. package/dist/chain-methods/ending/queries/descendants/types.d.ts +0 -35
  115. package/dist/chain-methods/ending/queries/descendants/types.d.ts.map +0 -1
  116. package/dist/chain-methods/ending/queries/descendants/walk-ancestry.helper.d.ts.map +0 -1
  117. package/dist/chain-methods/ending/queries/find-children.d.ts +0 -9
  118. package/dist/chain-methods/ending/queries/find-children.d.ts.map +0 -1
  119. package/dist/chain-methods/ending/queries/find-children.types.d.ts +0 -6
  120. package/dist/chain-methods/ending/queries/find-children.types.d.ts.map +0 -1
  121. package/dist/chain-methods/ending/queries/get-attributes-values.d.ts.map +0 -1
  122. package/dist/chain-methods/ending/queries/get-parent.d.ts.map +0 -1
  123. package/dist/chain-methods/ending/queries/get-tree.d.ts.map +0 -1
  124. package/dist/chain-methods/ending/queries/get-tree.types.d.ts +0 -18
  125. package/dist/chain-methods/ending/queries/get-tree.types.d.ts.map +0 -1
  126. package/dist/chain-methods/ending/queries/index.d.ts.map +0 -1
  127. package/dist/chain-methods/ending/transaction/commit.d.ts.map +0 -1
  128. package/dist/chain-methods/ending/transaction/index.d.ts +0 -2
  129. package/dist/chain-methods/ending/transaction/index.d.ts.map +0 -1
  130. package/dist/chain-methods/ending/transaction/merge-operations.d.ts +0 -33
  131. package/dist/chain-methods/ending/transaction/merge-operations.d.ts.map +0 -1
  132. package/dist/chain-methods/index.d.ts.map +0 -1
  133. package/dist/chain-methods/mutations/clone.d.ts.map +0 -1
  134. package/dist/chain-methods/mutations/clone.types.d.ts +0 -17
  135. package/dist/chain-methods/mutations/clone.types.d.ts.map +0 -1
  136. package/dist/chain-methods/mutations/create.d.ts.map +0 -1
  137. package/dist/chain-methods/mutations/create.types.d.ts +0 -32
  138. package/dist/chain-methods/mutations/create.types.d.ts.map +0 -1
  139. package/dist/chain-methods/mutations/delete.d.ts.map +0 -1
  140. package/dist/chain-methods/mutations/delete.types.d.ts +0 -6
  141. package/dist/chain-methods/mutations/delete.types.d.ts.map +0 -1
  142. package/dist/chain-methods/mutations/index.d.ts.map +0 -1
  143. package/dist/chain-methods/mutations/update.d.ts.map +0 -1
  144. package/dist/chain-methods/mutations/update.types.d.ts +0 -6
  145. package/dist/chain-methods/mutations/update.types.d.ts.map +0 -1
  146. package/dist/chain-methods/navigation/go-to-element.d.ts.map +0 -1
  147. package/dist/chain-methods/navigation/go-to-parent.d.ts.map +0 -1
  148. package/dist/chain-methods/navigation/index.d.ts.map +0 -1
  149. package/dist/chain-methods/navigation/types.d.ts +0 -12
  150. package/dist/chain-methods/navigation/types.d.ts.map +0 -1
  151. package/dist/chain-methods/types.d.ts.map +0 -1
  152. package/dist/database/index.d.ts.map +0 -1
  153. package/dist/database/instance.d.ts +0 -8
  154. package/dist/database/instance.d.ts.map +0 -1
  155. package/dist/database/types.d.ts +0 -8
  156. package/dist/database/types.d.ts.map +0 -1
  157. package/dist/dialecte/entrypoints.d.ts.map +0 -1
  158. package/dist/dialecte/index.d.ts.map +0 -1
  159. package/dist/dialecte/main.d.ts.map +0 -1
  160. package/dist/dialecte/state.d.ts.map +0 -1
  161. package/dist/dialecte/types.d.ts.map +0 -1
  162. package/dist/errors/codes.d.ts.map +0 -1
  163. package/dist/errors/errors.d.ts.map +0 -1
  164. package/dist/errors/index.d.ts.map +0 -1
  165. package/dist/errors/types.d.ts +0 -23
  166. package/dist/errors/types.d.ts.map +0 -1
  167. package/dist/helpers/assert.d.ts.map +0 -1
  168. package/dist/helpers/index.d.ts.map +0 -1
  169. package/dist/helpers/record/converter.d.ts.map +0 -1
  170. package/dist/helpers/record/guard.d.ts.map +0 -1
  171. package/dist/helpers/record/index.d.ts.map +0 -1
  172. package/dist/helpers/record/operations.d.ts.map +0 -1
  173. package/dist/helpers/record/query/find-by-attributes.d.ts.map +0 -1
  174. package/dist/helpers/record/query/index.d.ts.map +0 -1
  175. package/dist/helpers/record/query/record.d.ts.map +0 -1
  176. package/dist/helpers/record/query/types.d.ts +0 -10
  177. package/dist/helpers/record/query/types.d.ts.map +0 -1
  178. package/dist/helpers/record/standardizing.d.ts.map +0 -1
  179. package/dist/helpers/test-fixtures/config.d.ts.map +0 -1
  180. package/dist/helpers/test-fixtures/constant.d.ts.map +0 -1
  181. package/dist/helpers/test-fixtures/create-test-dialecte.d.ts.map +0 -1
  182. package/dist/helpers/test-fixtures/generated/constants.generated.d.ts.map +0 -1
  183. package/dist/helpers/test-fixtures/generated/definition.d.ts +0 -3
  184. package/dist/helpers/test-fixtures/generated/definition.d.ts.map +0 -1
  185. package/dist/helpers/test-fixtures/generated/index.d.ts.map +0 -1
  186. package/dist/helpers/test-fixtures/generated/types.generated.d.ts.map +0 -1
  187. package/dist/helpers/test-fixtures/index.d.ts.map +0 -1
  188. package/dist/helpers/test-fixtures/test-operations.d.ts.map +0 -1
  189. package/dist/helpers/test-fixtures/test-operations.types.d.ts +0 -20
  190. package/dist/helpers/test-fixtures/test-operations.types.d.ts.map +0 -1
  191. package/dist/helpers/test-fixtures/test-record.d.ts.map +0 -1
  192. package/dist/index.d.ts.map +0 -1
  193. package/dist/io/export/constant.d.ts.map +0 -1
  194. package/dist/io/export/download-file.d.ts.map +0 -1
  195. package/dist/io/export/formatter.d.ts.map +0 -1
  196. package/dist/io/export/index.d.ts.map +0 -1
  197. package/dist/io/export/main.d.ts.map +0 -1
  198. package/dist/io/import/database-helpers.d.ts.map +0 -1
  199. package/dist/io/import/guards.d.ts.map +0 -1
  200. package/dist/io/import/index.d.ts.map +0 -1
  201. package/dist/io/import/main.d.ts.map +0 -1
  202. package/dist/io/import/parser.d.ts.map +0 -1
  203. package/dist/io/import/relationships.d.ts.map +0 -1
  204. package/dist/io/import/test.handler.d.ts +0 -9
  205. package/dist/io/import/test.handler.d.ts.map +0 -1
  206. package/dist/io/import/test.types.d.ts +0 -4
  207. package/dist/io/import/test.types.d.ts.map +0 -1
  208. package/dist/io/import/types.d.ts.map +0 -1
  209. package/dist/io/index.d.ts.map +0 -1
  210. package/dist/script/element-parent-mapping.d.ts +0 -2
  211. package/dist/script/element-parent-mapping.d.ts.map +0 -1
  212. package/dist/script/find-unreferenced-elements.d.ts +0 -3
  213. package/dist/script/find-unreferenced-elements.d.ts.map +0 -1
  214. package/dist/script/generate-definition.d.ts +0 -3
  215. package/dist/script/generate-definition.d.ts.map +0 -1
  216. package/dist/script/generate-definition.types.d.ts +0 -86
  217. package/dist/script/generate-definition.types.d.ts.map +0 -1
  218. package/dist/script/generate-test-fixtures.d.ts +0 -16
  219. package/dist/script/generate-test-fixtures.d.ts.map +0 -1
  220. package/dist/script/pyodide.d.ts +0 -12
  221. package/dist/script/pyodide.d.ts.map +0 -1
  222. package/dist/script/sorted-dexie-dump-json.d.ts +0 -2
  223. package/dist/script/sorted-dexie-dump-json.d.ts.map +0 -1
  224. package/dist/script/test-pyodide.d.ts +0 -9
  225. package/dist/script/test-pyodide.d.ts.map +0 -1
  226. package/dist/types/context.d.ts +0 -16
  227. package/dist/types/context.d.ts.map +0 -1
  228. package/dist/types/definition.d.ts.map +0 -1
  229. package/dist/types/dialecte-config.d.ts.map +0 -1
  230. package/dist/types/index.d.ts.map +0 -1
  231. package/dist/types/io.d.ts.map +0 -1
  232. package/dist/types/operations.d.ts.map +0 -1
  233. package/dist/types/records.d.ts +0 -57
  234. package/dist/types/records.d.ts.map +0 -1
  235. package/dist/utils/attributes.d.ts.map +0 -1
  236. package/dist/utils/index.d.ts +0 -2
  237. package/dist/utils/index.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { FindChildrenParams, GetTreeParams, DescendantsFilter, FindDescendantsReturn } from './ending/queries';
2
- import { AddChildParamsWithFocus, AddChildParamsWithoutFocus, UpdateElementParams, DeepCloneChildWithFocusParams, DeepCloneChildWithoutFocusParams, DeleteElementParams } from './mutations';
3
- import { GoToElementParams, GoToParentParams } from './navigation';
4
- import { Context, AnyDialecteConfig, ElementsOf, ChildrenOf, ParentsOf, ExtensionRegistry, ChainRecord, TreeRecord, FullAttributeObjectOf } from '../types';
5
- export type CoreChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
2
+ import type { AddChildParamsWithFocus, AddChildParamsWithoutFocus, UpdateElementParams, DeepCloneChildWithFocusParams, DeepCloneChildWithoutFocusParams, DeleteElementParams } from './mutations';
3
+ import type { GoToElementParams, GoToParentParams } from './navigation';
4
+ import type { Context, AnyDialecteConfig, ElementsOf, ChildrenOf, ParentsOf, ExtensionRegistry, ChainRecord, TreeRecord, FullAttributeObjectOf } from '../types';
5
+ export declare type CoreChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
6
6
  goToElement<GenericTargetElement extends ElementsOf<GenericConfig>>(params: GoToElementParams<GenericConfig, GenericTargetElement>): Chain<GenericConfig, GenericTargetElement, GenericExtensionRegistry>;
7
7
  goToParent: GenericElement extends GenericConfig['rootElementName'] ? never : <GenericParentElement extends ParentsOf<GenericConfig, GenericElement>>(params: GoToParentParams<GenericConfig, GenericElement, GenericParentElement>) => Chain<GenericConfig, GenericParentElement, GenericExtensionRegistry>;
8
8
  findChildren<GenericChild extends ChildrenOf<GenericConfig, GenericElement>>(params: FindChildrenParams<GenericConfig, GenericElement, GenericChild>): Promise<Record<GenericChild, ChainRecord<GenericConfig, GenericChild>[]>>;
@@ -35,26 +35,25 @@ export type CoreChain<GenericConfig extends AnyDialecteConfig, GenericElement ex
35
35
  /**
36
36
  * Extract extension methods from mapped object
37
37
  */
38
- type ExtractExtensionMethods<GenericMethod> = {
38
+ declare type ExtractExtensionMethods<GenericMethod> = {
39
39
  [K in keyof GenericMethod]: GenericMethod[K] extends (params: any) => infer Method ? Method : never;
40
40
  };
41
41
  /**
42
42
  * Extension methods for a specific element from the extension registry
43
43
  */
44
- export type ExtensionChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = ExtractExtensionMethods<GenericExtensionRegistry[GenericElement]>;
44
+ export declare type ExtensionChain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = ExtractExtensionMethods<GenericExtensionRegistry[GenericElement]>;
45
45
  /**
46
46
  * Complete chain with core and extensions methods
47
47
  */
48
- export type Chain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = CoreChain<GenericConfig, GenericElement, GenericExtensionRegistry> & ExtensionChain<GenericConfig, GenericElement, GenericExtensionRegistry>;
48
+ export declare type Chain<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = CoreChain<GenericConfig, GenericElement, GenericExtensionRegistry> & ExtensionChain<GenericConfig, GenericElement, GenericExtensionRegistry>;
49
49
  /**
50
50
  * Chain factory with bound Config and Registry - only Element varies per call.
51
51
  * Matches the implementation's closure-based structure where Config and Registry
52
52
  * are captured from the outer scope.
53
53
  */
54
- export type ChainFactory<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = <GenericFocusedElement extends ElementsOf<GenericConfig>>(params: {
54
+ export declare type ChainFactory<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = <GenericFocusedElement extends ElementsOf<GenericConfig>>(params: {
55
55
  contextPromise: Promise<Context<GenericConfig, GenericFocusedElement>>;
56
56
  newFocusedTagName?: GenericFocusedElement;
57
57
  }) => Chain<GenericConfig, GenericFocusedElement, GenericExtensionRegistry>;
58
- export type AnyChain = Chain<AnyDialecteConfig, ElementsOf<AnyDialecteConfig>, ExtensionRegistry<AnyDialecteConfig>>;
58
+ export declare type AnyChain = Chain<AnyDialecteConfig, ElementsOf<AnyDialecteConfig>, ExtensionRegistry<AnyDialecteConfig>>;
59
59
  export {};
60
- //# sourceMappingURL=types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from './instance';
2
2
  export type * from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import type { DatabaseInstance } from './types';
2
+ import type { AnyDialecteConfig } from '../types';
3
+ export declare function createDatabaseInstance<GenericConfig extends AnyDialecteConfig>(params: {
4
+ databaseName: string;
5
+ dialecteConfig: GenericConfig;
6
+ }): DatabaseInstance<GenericConfig>;
@@ -0,0 +1,8 @@
1
+ import Dexie from 'dexie';
2
+ import type { AnyDialecteConfig, ElementsOf } from '../types/dialecte-config';
3
+ import type { RawRecord } from '../types/records';
4
+ import type { EntityTable } from 'dexie';
5
+ export declare type DatabaseInstance<GenericConfig extends AnyDialecteConfig> = Dexie & {
6
+ [tableName: string]: EntityTable<RawRecord<GenericConfig, ElementsOf<GenericConfig>>, 'id'>;
7
+ };
8
+ export declare type AnyDatabaseInstance = DatabaseInstance<AnyDialecteConfig>;
@@ -1,7 +1,7 @@
1
- import { FromElementParams } from './types';
2
- import { Chain } from '../chain-methods/types';
3
- import { DatabaseInstance } from '../database';
4
- import { AnyDialecteConfig, RootElementOf, ElementsOf, ExtensionRegistry } from '../types';
1
+ import type { FromElementParams } from './types';
2
+ import type { Chain } from '../chain-methods/types';
3
+ import type { DatabaseInstance } from '../database';
4
+ import type { AnyDialecteConfig, RootElementOf, ElementsOf, ExtensionRegistry } from '../types';
5
5
  /**
6
6
  * Create a chain starting from the root element
7
7
  */
@@ -18,4 +18,3 @@ export declare function fromElement<GenericConfig extends AnyDialecteConfig, Gen
18
18
  databaseInstance: DatabaseInstance<GenericConfig>;
19
19
  extensions: GenericExtensionRegistry;
20
20
  } & FromElementParams<GenericConfig, GenericElement>): Chain<GenericConfig, GenericElement, GenericExtensionRegistry>;
21
- //# sourceMappingURL=entrypoints.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './main';
2
2
  export * from './state';
3
3
  export type * from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,7 @@
1
- import { DialecteCore } from './types';
2
- import { AnyDialecteConfig, ExtensionRegistry } from '../types';
1
+ import type { DialecteCore } from './types';
2
+ import type { AnyDialecteConfig, ExtensionRegistry } from '../types';
3
3
  export declare function createDialecte<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>>(params: {
4
4
  databaseName: string;
5
5
  dialecteConfig: GenericConfig;
6
6
  extensions: GenericExtensionRegistry;
7
- }): Promise<DialecteCore<GenericConfig, GenericExtensionRegistry>>;
8
- //# sourceMappingURL=main.d.ts.map
7
+ }): DialecteCore<GenericConfig, GenericExtensionRegistry>;
@@ -1,4 +1,4 @@
1
- import { DialecteState } from './types';
1
+ import type { DialecteState } from './types';
2
2
  /**
3
3
  * Mark SDK as loading and optionally set initial progress
4
4
  */
@@ -51,4 +51,3 @@ export declare function getState(): DialecteState;
51
51
  */
52
52
  export declare function resetState(): void;
53
53
  export {};
54
- //# sourceMappingURL=state.d.ts.map
@@ -1,13 +1,13 @@
1
- import { Chain } from '../chain-methods';
2
- import { DatabaseInstance } from '../database';
3
- import { AnyDialecteConfig, ElementsOf, ExtensionRegistry, RootElementOf, SingletonElementsOf } from '../types';
4
- export type DialecteCore<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
1
+ import type { Chain } from '../chain-methods';
2
+ import type { DatabaseInstance } from '../database';
3
+ import type { AnyDialecteConfig, ElementsOf, ExtensionRegistry, RootElementOf, SingletonElementsOf } from '../types';
4
+ export declare type DialecteCore<GenericConfig extends AnyDialecteConfig, GenericExtensionRegistry extends ExtensionRegistry<GenericConfig>> = {
5
5
  getState(): DialecteState;
6
6
  getDatabaseInstance(): DatabaseInstance<GenericConfig>;
7
7
  fromRoot(): Chain<GenericConfig, RootElementOf<GenericConfig>, GenericExtensionRegistry>;
8
8
  fromElement<GenericElement extends ElementsOf<GenericConfig>>(params: FromElementParams<GenericConfig, GenericElement>): Chain<GenericConfig, GenericElement, GenericExtensionRegistry>;
9
9
  };
10
- export type DialecteState = {
10
+ export declare type DialecteState = {
11
11
  loading: boolean;
12
12
  error: Error | null;
13
13
  progress: {
@@ -22,11 +22,10 @@ export type DialecteState = {
22
22
  operation: string;
23
23
  } | null;
24
24
  };
25
- export type FromElementParams<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>> = GenericElement extends SingletonElementsOf<GenericConfig> ? {
25
+ export declare type FromElementParams<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>> = GenericElement extends SingletonElementsOf<GenericConfig> ? {
26
26
  tagName: GenericElement;
27
27
  id?: string;
28
28
  } : {
29
29
  tagName: GenericElement;
30
30
  id: string;
31
31
  };
32
- //# sourceMappingURL=types.d.ts.map
@@ -36,4 +36,3 @@ export declare const ERROR_CATALOG: {
36
36
  readonly message: "Failed to create child element";
37
37
  };
38
38
  };
39
- //# sourceMappingURL=codes.d.ts.map
@@ -1,5 +1,5 @@
1
- import { DialecteErrorKey, DialecteErrorContext, DialecteCoreError } from './types';
2
- import { AnyDialecteConfig } from '../types';
1
+ import type { DialecteErrorKey, DialecteErrorContext, DialecteCoreError } from './types';
2
+ import type { AnyDialecteConfig } from '../types';
3
3
  /**
4
4
  * Create a structured error with code, message, and context
5
5
  *
@@ -31,4 +31,3 @@ export declare function createError<GenericConfig extends AnyDialecteConfig = An
31
31
  * Check if error is a CoreError
32
32
  */
33
33
  export declare function isCoreError(error: unknown): error is DialecteCoreError;
34
- //# sourceMappingURL=errors.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './codes';
2
2
  export * from './errors';
3
3
  export type * from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,22 @@
1
+ import type { ERROR_CATALOG } from './codes';
2
+ import type { AnyDialecteConfig, ChainRecord, ElementsOf, Operation } from '../types';
3
+ export declare type DialecteErrorKey = keyof typeof ERROR_CATALOG;
4
+ export declare type DialecteErrorCode = (typeof ERROR_CATALOG)[DialecteErrorKey]['code'];
5
+ /**
6
+ * Standard error context that all errors should include
7
+ */
8
+ export declare type DialecteErrorContext<GenericConfig extends AnyDialecteConfig = AnyDialecteConfig> = {
9
+ method?: string;
10
+ currentFocus?: ChainRecord<GenericConfig, ElementsOf<GenericConfig>>;
11
+ operations?: Operation<GenericConfig>[];
12
+ [key: string]: any;
13
+ };
14
+ /**
15
+ * Core error type with code, default message, and context
16
+ */
17
+ export declare type DialecteCoreError<GenericConfig extends AnyDialecteConfig = AnyDialecteConfig> = Error & {
18
+ code: DialecteErrorCode;
19
+ errorKey: DialecteErrorKey;
20
+ defaultMessage: string;
21
+ context?: DialecteErrorContext<GenericConfig>;
22
+ };
@@ -1,2 +1 @@
1
1
  export declare function assert(condition: unknown, message?: string): asserts condition;
2
- //# sourceMappingURL=assert.d.ts.map
@@ -2,4 +2,3 @@ export * from './assert';
2
2
  export * from './record';
3
3
  export * from './record/operations';
4
4
  export * from './test-fixtures';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { RawRecord, ChainRecord, TreeRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, OperationStatus } from '../../types';
1
+ import type { RawRecord, ChainRecord, TreeRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, OperationStatus } from '../../types';
2
2
  /**
3
3
  * Converts a ChainRecord | TreeRecord to RawRecord
4
4
  * If already a RawRecord, returns as-is.
@@ -31,4 +31,3 @@ export declare function toFullAttributeArray<GenericConfig extends AnyDialecteCo
31
31
  attributes: Partial<AttributesValueObjectOf<GenericConfig, GenericElement>> | Partial<FullAttributeObjectOf<GenericConfig, GenericElement>>[];
32
32
  dialecteConfig: GenericConfig;
33
33
  }): FullAttributeObjectOf<GenericConfig, GenericElement>[];
34
- //# sourceMappingURL=converter.d.ts.map
@@ -1,4 +1,4 @@
1
- import { RawRecord, ChainRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, TreeRecord } from '../../types';
1
+ import type { RawRecord, ChainRecord, AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, AttributesValueObjectOf, TreeRecord } from '../../types';
2
2
  /**
3
3
  * Type guard to check if attributes are in array format (FullAttributeObject[])
4
4
  */
@@ -15,4 +15,3 @@ export declare function isChainRecord<GenericConfig extends AnyDialecteConfig, G
15
15
  * Type guard to check if a record is an TreeRecord
16
16
  */
17
17
  export declare function isTreeRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>>(record: RawRecord<GenericConfig, GenericElement> | ChainRecord<GenericConfig, GenericElement> | TreeRecord<GenericConfig, GenericElement>): record is TreeRecord<GenericConfig, GenericElement>;
18
- //# sourceMappingURL=guard.d.ts.map
@@ -3,4 +3,3 @@ export * from './standardizing';
3
3
  export * from './converter';
4
4
  export * from './query';
5
5
  export * from './operations';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Operation, RawRecord, ElementsOf, AnyDialecteConfig } from '../../types';
1
+ import type { Operation, RawRecord, ElementsOf, AnyDialecteConfig } from '../../types';
2
2
  export declare function addStagedOperation<GenericConfig extends AnyDialecteConfig>(params: {
3
3
  context: {
4
4
  stagedOperations: Operation<GenericConfig>[];
@@ -21,4 +21,3 @@ export declare function addStagedOperation<GenericConfig extends AnyDialecteConf
21
21
  status: 'deleted';
22
22
  record: RawRecord<GenericConfig, ElementsOf<GenericConfig>>;
23
23
  }): void;
24
- //# sourceMappingURL=operations.d.ts.map
@@ -1,6 +1,6 @@
1
- import { FilterAttributes } from './types';
2
- import { DatabaseInstance } from '../../../database';
3
- import { AnyDialecteConfig, Context, ChainRecord, ElementsOf, RawRecord } from '../../../types';
1
+ import type { FilterAttributes } from './types';
2
+ import type { DatabaseInstance } from '../../../database';
3
+ import type { AnyDialecteConfig, Context, ChainRecord, ElementsOf, RawRecord } from '../../../types';
4
4
  /**
5
5
  * Find elements by tagName and attributes.
6
6
  * Core primitive for all query operations.
@@ -23,4 +23,3 @@ export declare function matchesAttributeFilter<GenericConfig extends AnyDialecte
23
23
  record: RawRecord<GenericConfig, GenericElement>;
24
24
  attributeFilter?: FilterAttributes<GenericConfig, GenericElement>;
25
25
  }): boolean;
26
- //# sourceMappingURL=find-by-attributes.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './find-by-attributes';
2
2
  export * from './record';
3
3
  export type * from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { DatabaseInstance } from '../../../database';
2
- import { Operation, RawRecord, ElementsOf, AnyDialecteConfig, AnyElement, ChainRecord } from '../../../types';
1
+ import type { DatabaseInstance } from '../../../database';
2
+ import type { Operation, RawRecord, ElementsOf, AnyDialecteConfig, AnyElement, ChainRecord } from '../../../types';
3
3
  export declare function getRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends AnyElement>(params: {
4
4
  id: string;
5
5
  tagName: GenericElement;
@@ -68,4 +68,3 @@ export declare function getLatestStagedRecord<GenericConfig extends AnyDialecteC
68
68
  record: RawRecord<GenericConfig, GenericElement>;
69
69
  status: Operation<GenericConfig>['status'];
70
70
  } | undefined;
71
- //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1,9 @@
1
+ import type { AnyDialecteConfig, AttributesOf, AttributesValueObjectOf, ChainRecord, ElementsOf } from '../../../types';
2
+ export declare type FilterAttributes<GenericVersion extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericVersion>> = {
3
+ [K in AttributesOf<GenericVersion, GenericElement>]?: AttributesValueObjectOf<GenericVersion, GenericElement>[K] | Array<AttributesValueObjectOf<GenericVersion, GenericElement>[K]>;
4
+ };
5
+ export declare type GroupedRecordsByTagName<GenericConfig extends AnyDialecteConfig, GenericRecords extends readonly ChainRecord<GenericConfig, any>[]> = {
6
+ [K in GenericRecords[number]['tagName']]?: Extract<GenericRecords[number], {
7
+ tagName: K;
8
+ }>[];
9
+ };
@@ -1,4 +1,4 @@
1
- import { AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, RawRecord, AttributesValueObjectOf } from '../../types';
1
+ import type { AnyDialecteConfig, ElementsOf, FullAttributeObjectOf, RawRecord, AttributesValueObjectOf } from '../../types';
2
2
  export declare function standardizeRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>>(params: {
3
3
  record: {
4
4
  tagName: GenericElement;
@@ -6,4 +6,3 @@ export declare function standardizeRecord<GenericConfig extends AnyDialecteConfi
6
6
  } & Partial<RawRecord<GenericConfig, GenericElement>>;
7
7
  dialecteConfig: GenericConfig;
8
8
  }): RawRecord<GenericConfig, GenericElement>;
9
- //# sourceMappingURL=standardizing.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export declare const IO_CONFIG: {
2
2
  readonly supportedFileExtensions: readonly [".xml"];
3
- };
3
+ }, satisfies: any, IOConfig: any;
4
4
  export declare const DATABASE_CONFIG: {
5
5
  readonly tables: {
6
6
  readonly xmlElements: {
@@ -8,7 +8,7 @@ export declare const DATABASE_CONFIG: {
8
8
  readonly schema: "id, tagName, [id+tagName], parent.id, parent.tagName, *children.id, *children.tagName";
9
9
  };
10
10
  };
11
- };
11
+ }, satisfies: any, DatabaseConfig: any;
12
12
  export declare const TEST_DIALECTE_CONFIG: {
13
13
  readonly rootElementName: "Root";
14
14
  readonly singletonElements: readonly ["Root", "A", "B", "C", "D"];
@@ -28,37 +28,37 @@ export declare const TEST_DIALECTE_CONFIG: {
28
28
  };
29
29
  };
30
30
  readonly attributes: {
31
- readonly A: import('./generated').AttributesOf<"A">;
32
- readonly AAAA_1: import('./generated').AttributesOf<"AAAA_1">;
33
- readonly AAAA_2: import('./generated').AttributesOf<"AAAA_2">;
34
- readonly AAAA_3: import('./generated').AttributesOf<"AAAA_3">;
35
- readonly AAA_1: import('./generated').AttributesOf<"AAA_1">;
36
- readonly AAA_2: import('./generated').AttributesOf<"AAA_2">;
37
- readonly AAA_3: import('./generated').AttributesOf<"AAA_3">;
38
- readonly AA_1: import('./generated').AttributesOf<"AA_1">;
39
- readonly AA_2: import('./generated').AttributesOf<"AA_2">;
40
- readonly AA_3: import('./generated').AttributesOf<"AA_3">;
41
- readonly B: import('./generated').AttributesOf<"B">;
42
- readonly BBBB_1: import('./generated').AttributesOf<"BBBB_1">;
43
- readonly BBBB_2: import('./generated').AttributesOf<"BBBB_2">;
44
- readonly BBBB_3: import('./generated').AttributesOf<"BBBB_3">;
45
- readonly BBB_1: import('./generated').AttributesOf<"BBB_1">;
46
- readonly BBB_2: import('./generated').AttributesOf<"BBB_2">;
47
- readonly BBB_3: import('./generated').AttributesOf<"BBB_3">;
48
- readonly BB_1: import('./generated').AttributesOf<"BB_1">;
49
- readonly BB_2: import('./generated').AttributesOf<"BB_2">;
50
- readonly BB_3: import('./generated').AttributesOf<"BB_3">;
51
- readonly C: import('./generated').AttributesOf<"C">;
52
- readonly CCCC_1: import('./generated').AttributesOf<"CCCC_1">;
53
- readonly CCCC_2: import('./generated').AttributesOf<"CCCC_2">;
54
- readonly CCCC_3: import('./generated').AttributesOf<"CCCC_3">;
55
- readonly CCC_1: import('./generated').AttributesOf<"CCC_1">;
56
- readonly CCC_2: import('./generated').AttributesOf<"CCC_2">;
57
- readonly CCC_3: import('./generated').AttributesOf<"CCC_3">;
58
- readonly CC_1: import('./generated').AttributesOf<"CC_1">;
59
- readonly CC_2: import('./generated').AttributesOf<"CC_2">;
60
- readonly CC_3: import('./generated').AttributesOf<"CC_3">;
61
- readonly Root: import('./generated').AttributesOf<"Root">;
31
+ readonly A: import("./generated").AttributesA;
32
+ readonly AAAA_1: import("./generated").AttributesAAAA_1;
33
+ readonly AAAA_2: import("./generated").AttributesAAAA_2;
34
+ readonly AAAA_3: import("./generated").AttributesAAAA_3;
35
+ readonly AAA_1: import("./generated").AttributesAAA_1;
36
+ readonly AAA_2: import("./generated").AttributesAAA_2;
37
+ readonly AAA_3: import("./generated").AttributesAAA_3;
38
+ readonly AA_1: import("./generated").AttributesAA_1;
39
+ readonly AA_2: import("./generated").AttributesAA_2;
40
+ readonly AA_3: import("./generated").AttributesAA_3;
41
+ readonly B: import("./generated").AttributesB;
42
+ readonly BBBB_1: import("./generated").AttributesBBBB_1;
43
+ readonly BBBB_2: import("./generated").AttributesBBBB_2;
44
+ readonly BBBB_3: import("./generated").AttributesBBBB_3;
45
+ readonly BBB_1: import("./generated").AttributesBBB_1;
46
+ readonly BBB_2: import("./generated").AttributesBBB_2;
47
+ readonly BBB_3: import("./generated").AttributesBBB_3;
48
+ readonly BB_1: import("./generated").AttributesBB_1;
49
+ readonly BB_2: import("./generated").AttributesBB_2;
50
+ readonly BB_3: import("./generated").AttributesBB_3;
51
+ readonly C: import("./generated").AttributesC;
52
+ readonly CCCC_1: import("./generated").AttributesCCCC_1;
53
+ readonly CCCC_2: import("./generated").AttributesCCCC_2;
54
+ readonly CCCC_3: import("./generated").AttributesCCCC_3;
55
+ readonly CCC_1: import("./generated").AttributesCCC_1;
56
+ readonly CCC_2: import("./generated").AttributesCCC_2;
57
+ readonly CCC_3: import("./generated").AttributesCCC_3;
58
+ readonly CC_1: import("./generated").AttributesCC_1;
59
+ readonly CC_2: import("./generated").AttributesCC_2;
60
+ readonly CC_3: import("./generated").AttributesCC_3;
61
+ readonly Root: import("./generated").AttributesRoot;
62
62
  };
63
63
  readonly children: {
64
64
  readonly A: readonly ["AA_1", "AA_2", "AA_3"];
@@ -203,7 +203,6 @@ export declare const TEST_DIALECTE_CONFIG: {
203
203
  readonly io: {
204
204
  readonly supportedFileExtensions: readonly [".xml"];
205
205
  };
206
- readonly definition: Record<string, import('../../types').ElementDefinition>;
206
+ readonly definition: Record<string, ElementDefinition>;
207
207
  readonly hooks: {};
208
- };
209
- //# sourceMappingURL=config.d.ts.map
208
+ }, satisfies: any, AnyDialecteConfig: any;
@@ -17,4 +17,3 @@ export declare const XMLNS_DEV_NAMESPACE: string;
17
17
  export declare const XMLNS_EXT_NAMESPACE: string;
18
18
  export declare const DEV_CUSTOM_RECORD_ID_ATTRIBUTE_NAME = "db-id";
19
19
  export declare const DEV_ID: string;
20
- //# sourceMappingURL=constant.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { TEST_DIALECTE_CONFIG } from './config';
2
- import { DialecteCore } from '../../dialecte';
3
- import { AnyDialecteConfig, ExtensionRegistry } from '../../types';
4
- type TestDialecteConfig = typeof TEST_DIALECTE_CONFIG;
2
+ import type { DialecteCore } from '../../dialecte';
3
+ import type { AnyDialecteConfig, ExtensionRegistry } from '../../types';
4
+ declare type TestDialecteConfig = typeof TEST_DIALECTE_CONFIG;
5
5
  /**
6
6
  * Create SDK instance from XML string for testing
7
7
  * Imports the XML into a database and returns configured SDK
@@ -16,4 +16,3 @@ export declare function createTestDialecte<GenericConfig extends AnyDialecteConf
16
16
  cleanup: () => Promise<void>;
17
17
  }>;
18
18
  export {};
19
- //# sourceMappingURL=create-test-dialecte.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AvailableElement, AttributesOf } from './types.generated';
1
+ import type { AvailableElement } from './types.generated';
2
2
  export declare const ELEMENT_NAMES: readonly ["A", "AAAA_1", "AAAA_2", "AAAA_3", "AAA_1", "AAA_2", "AAA_3", "AA_1", "AA_2", "AA_3", "B", "BBBB_1", "BBBB_2", "BBBB_3", "BBB_1", "BBB_2", "BBB_3", "BB_1", "BB_2", "BB_3", "C", "CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3", "CC_1", "CC_2", "CC_3", "Root"];
3
3
  export declare const ELEMENT_NAMES_WITH_ATTRIBUTES_PATTERNS: readonly [];
4
4
  export declare const REQUIRED_ATTRIBUTES: {
@@ -33,41 +33,41 @@ export declare const REQUIRED_ATTRIBUTES: {
33
33
  readonly CC_2: readonly ["aCC_2"];
34
34
  readonly CC_3: readonly ["aCC_3"];
35
35
  readonly Root: readonly ["root"];
36
- };
37
- export declare const PATTERNS: {};
36
+ }, satisfies: any, Record: any;
37
+ export declare const PATTERNS: {}, satisfies: any, Partial: any;
38
38
  export declare const ATTRIBUTES: {
39
- readonly A: AttributesOf<"A">;
40
- readonly AAAA_1: AttributesOf<"AAAA_1">;
41
- readonly AAAA_2: AttributesOf<"AAAA_2">;
42
- readonly AAAA_3: AttributesOf<"AAAA_3">;
43
- readonly AAA_1: AttributesOf<"AAA_1">;
44
- readonly AAA_2: AttributesOf<"AAA_2">;
45
- readonly AAA_3: AttributesOf<"AAA_3">;
46
- readonly AA_1: AttributesOf<"AA_1">;
47
- readonly AA_2: AttributesOf<"AA_2">;
48
- readonly AA_3: AttributesOf<"AA_3">;
49
- readonly B: AttributesOf<"B">;
50
- readonly BBBB_1: AttributesOf<"BBBB_1">;
51
- readonly BBBB_2: AttributesOf<"BBBB_2">;
52
- readonly BBBB_3: AttributesOf<"BBBB_3">;
53
- readonly BBB_1: AttributesOf<"BBB_1">;
54
- readonly BBB_2: AttributesOf<"BBB_2">;
55
- readonly BBB_3: AttributesOf<"BBB_3">;
56
- readonly BB_1: AttributesOf<"BB_1">;
57
- readonly BB_2: AttributesOf<"BB_2">;
58
- readonly BB_3: AttributesOf<"BB_3">;
59
- readonly C: AttributesOf<"C">;
60
- readonly CCCC_1: AttributesOf<"CCCC_1">;
61
- readonly CCCC_2: AttributesOf<"CCCC_2">;
62
- readonly CCCC_3: AttributesOf<"CCCC_3">;
63
- readonly CCC_1: AttributesOf<"CCC_1">;
64
- readonly CCC_2: AttributesOf<"CCC_2">;
65
- readonly CCC_3: AttributesOf<"CCC_3">;
66
- readonly CC_1: AttributesOf<"CC_1">;
67
- readonly CC_2: AttributesOf<"CC_2">;
68
- readonly CC_3: AttributesOf<"CC_3">;
69
- readonly Root: AttributesOf<"Root">;
70
- };
39
+ readonly A: import("./types.generated").AttributesA;
40
+ readonly AAAA_1: import("./types.generated").AttributesAAAA_1;
41
+ readonly AAAA_2: import("./types.generated").AttributesAAAA_2;
42
+ readonly AAAA_3: import("./types.generated").AttributesAAAA_3;
43
+ readonly AAA_1: import("./types.generated").AttributesAAA_1;
44
+ readonly AAA_2: import("./types.generated").AttributesAAA_2;
45
+ readonly AAA_3: import("./types.generated").AttributesAAA_3;
46
+ readonly AA_1: import("./types.generated").AttributesAA_1;
47
+ readonly AA_2: import("./types.generated").AttributesAA_2;
48
+ readonly AA_3: import("./types.generated").AttributesAA_3;
49
+ readonly B: import("./types.generated").AttributesB;
50
+ readonly BBBB_1: import("./types.generated").AttributesBBBB_1;
51
+ readonly BBBB_2: import("./types.generated").AttributesBBBB_2;
52
+ readonly BBBB_3: import("./types.generated").AttributesBBBB_3;
53
+ readonly BBB_1: import("./types.generated").AttributesBBB_1;
54
+ readonly BBB_2: import("./types.generated").AttributesBBB_2;
55
+ readonly BBB_3: import("./types.generated").AttributesBBB_3;
56
+ readonly BB_1: import("./types.generated").AttributesBB_1;
57
+ readonly BB_2: import("./types.generated").AttributesBB_2;
58
+ readonly BB_3: import("./types.generated").AttributesBB_3;
59
+ readonly C: import("./types.generated").AttributesC;
60
+ readonly CCCC_1: import("./types.generated").AttributesCCCC_1;
61
+ readonly CCCC_2: import("./types.generated").AttributesCCCC_2;
62
+ readonly CCCC_3: import("./types.generated").AttributesCCCC_3;
63
+ readonly CCC_1: import("./types.generated").AttributesCCC_1;
64
+ readonly CCC_2: import("./types.generated").AttributesCCC_2;
65
+ readonly CCC_3: import("./types.generated").AttributesCCC_3;
66
+ readonly CC_1: import("./types.generated").AttributesCC_1;
67
+ readonly CC_2: import("./types.generated").AttributesCC_2;
68
+ readonly CC_3: import("./types.generated").AttributesCC_3;
69
+ readonly Root: import("./types.generated").AttributesRoot;
70
+ }, satisfies: any, AttributesOf: any;
71
71
  export declare const CHILDREN: {
72
72
  readonly A: readonly ["AA_1", "AA_2", "AA_3"];
73
73
  readonly AAAA_1: readonly [];
@@ -100,7 +100,7 @@ export declare const CHILDREN: {
100
100
  readonly CC_2: readonly ["CCC_1", "CCC_2", "CCC_3"];
101
101
  readonly CC_3: readonly ["CCC_1", "CCC_2", "CCC_3"];
102
102
  readonly Root: readonly ["A", "B", "C"];
103
- };
103
+ }, satisfies: any, Record: any;
104
104
  export declare const PARENTS: {
105
105
  readonly A: readonly ["Root"];
106
106
  readonly AAAA_1: readonly ["AAA_1"];
@@ -133,7 +133,7 @@ export declare const PARENTS: {
133
133
  readonly CC_2: readonly ["C"];
134
134
  readonly CC_3: readonly ["C"];
135
135
  readonly Root: readonly [];
136
- };
136
+ }, satisfies: any, Record: any;
137
137
  /**
138
138
  * DESCENDANTS maps each element to all its possible descendants (children, grandchildren, etc.)
139
139
  * Computed by traversing the CHILDREN graph.
@@ -170,7 +170,7 @@ export declare const DESCENDANTS: {
170
170
  readonly CC_2: readonly ["CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3"];
171
171
  readonly CC_3: readonly ["CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3"];
172
172
  readonly Root: readonly ["A", "AAAA_1", "AAAA_2", "AAAA_3", "AAA_1", "AAA_2", "AAA_3", "AA_1", "AA_2", "AA_3", "B", "BBBB_1", "BBBB_2", "BBBB_3", "BBB_1", "BBB_2", "BBB_3", "BB_1", "BB_2", "BB_3", "C", "CCCC_1", "CCCC_2", "CCCC_3", "CCC_1", "CCC_2", "CCC_3", "CC_1", "CC_2", "CC_3"];
173
- };
173
+ }, satisfies: any, Record: any;
174
174
  /**
175
175
  * ANCESTORS maps each element to all its possible ancestors (parents, grandparents, etc.)
176
176
  * Computed by traversing the PARENTS graph.
@@ -207,13 +207,12 @@ export declare const ANCESTORS: {
207
207
  readonly CC_2: readonly ["C", "Root"];
208
208
  readonly CC_3: readonly ["C", "Root"];
209
209
  readonly Root: readonly [];
210
- };
210
+ }, satisfies: any, Record: any;
211
211
  /**
212
212
  * Type helper to get all descendants of an element
213
213
  */
214
- export type DescendantsOf<T extends AvailableElement> = (typeof DESCENDANTS)[T][number];
214
+ export declare type DescendantsOf<T extends AvailableElement> = (typeof DESCENDANTS)[T][number];
215
215
  /**
216
216
  * Type helper to get all ancestors of an element
217
217
  */
218
- export type AncestorsOf<T extends AvailableElement> = (typeof ANCESTORS)[T][number];
219
- //# sourceMappingURL=constants.generated.d.ts.map
218
+ export declare type AncestorsOf<T extends AvailableElement> = (typeof ANCESTORS)[T][number];
@@ -0,0 +1 @@
1
+ export declare const DEFINITION: Record<string, ElementDefinition>;
@@ -1,4 +1,3 @@
1
1
  export * from './constants.generated';
2
2
  export * from './types.generated';
3
3
  export * from './definition';
4
- //# sourceMappingURL=index.d.ts.map