@skygraph/core 0.0.0-placeholder.0 → 0.4.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.
- package/LICENSE +21 -0
- package/dist/calendar.cjs +404 -0
- package/dist/calendar.cjs.map +1 -0
- package/dist/calendar.d.cts +209 -0
- package/dist/calendar.d.ts +209 -0
- package/dist/calendar.js +12 -0
- package/dist/calendar.js.map +1 -0
- package/dist/chunk-5CCD5Q4B.js +36 -0
- package/dist/chunk-5CCD5Q4B.js.map +1 -0
- package/dist/chunk-AB3RLBLW.js +357 -0
- package/dist/chunk-AB3RLBLW.js.map +1 -0
- package/dist/chunk-GEMALROQ.js +258 -0
- package/dist/chunk-GEMALROQ.js.map +1 -0
- package/dist/chunk-IY6LJU3L.js +256 -0
- package/dist/chunk-IY6LJU3L.js.map +1 -0
- package/dist/chunk-KMGRNPLG.js +453 -0
- package/dist/chunk-KMGRNPLG.js.map +1 -0
- package/dist/chunk-KP75DEA4.js +1012 -0
- package/dist/chunk-KP75DEA4.js.map +1 -0
- package/dist/chunk-Y7FTBBYX.js +397 -0
- package/dist/chunk-Y7FTBBYX.js.map +1 -0
- package/dist/chunk-ZWB7JGAJ.js +488 -0
- package/dist/chunk-ZWB7JGAJ.js.map +1 -0
- package/dist/form.cjs +498 -0
- package/dist/form.cjs.map +1 -0
- package/dist/form.d.cts +130 -0
- package/dist/form.d.ts +130 -0
- package/dist/form.js +8 -0
- package/dist/form.js.map +1 -0
- package/dist/graph.cjs +1065 -0
- package/dist/graph.cjs.map +1 -0
- package/dist/graph.d.cts +542 -0
- package/dist/graph.d.ts +542 -0
- package/dist/graph.js +24 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.cjs +3656 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +144 -0
- package/dist/index.d.ts +144 -0
- package/dist/index.js +467 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime-internal.cjs +339 -0
- package/dist/runtime-internal.cjs.map +1 -0
- package/dist/runtime-internal.d.cts +130 -0
- package/dist/runtime-internal.d.ts +130 -0
- package/dist/runtime-internal.js +67 -0
- package/dist/runtime-internal.js.map +1 -0
- package/dist/table.cjs +537 -0
- package/dist/table.cjs.map +1 -0
- package/dist/table.d.cts +215 -0
- package/dist/table.d.ts +215 -0
- package/dist/table.js +16 -0
- package/dist/table.js.map +1 -0
- package/dist/tree.cjs +442 -0
- package/dist/tree.cjs.map +1 -0
- package/dist/tree.d.cts +76 -0
- package/dist/tree.d.ts +76 -0
- package/dist/tree.js +8 -0
- package/dist/tree.js.map +1 -0
- package/dist/types-B-rKQJ4R.d.cts +35 -0
- package/dist/types-B-rKQJ4R.d.ts +35 -0
- package/dist/virtual.cjs +283 -0
- package/dist/virtual.cjs.map +1 -0
- package/dist/virtual.d.cts +96 -0
- package/dist/virtual.d.ts +96 -0
- package/dist/virtual.js +9 -0
- package/dist/virtual.js.map +1 -0
- package/package.json +98 -18
- package/README.md +0 -12
- package/index.js +0 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { C as Core, W as WriteEvent, M as Middleware } from './types-B-rKQJ4R.cjs';
|
|
2
|
+
export { N as NextFn, a as WriteSource } from './types-B-rKQJ4R.cjs';
|
|
3
|
+
export { MeasureCache, MeasureCacheEvent, MeasureCacheListener, MeasureCacheOptions, VirtualEngine, VirtualEngineEvent, VirtualEngineListener, VirtualEngineOptions, VirtualItem, VirtualRange, createMeasureCache, createVirtual } from './virtual.cjs';
|
|
4
|
+
export { FieldMeta, FieldMetaExtensions, FieldOptions, FormEngine, FormListOperation, FormOptions, FormState, GetFieldValue, Rule, RuleFn, RuleObject, ValidationMode, ValidationResult, createForm } from './form.cjs';
|
|
5
|
+
export { AABB, Anchor, AnchorId, AnchorPolicy, BezierPathOptions, EdgeEndpoint, EdgeId, EdgeInit, GraphEdge, GraphEngine, GraphEngineOptions, GraphNode, GraphState, NodeId, NodeInit, NodeTransform, NodeUpdate, OBB, Outline, Point, RouteOrthogonalOptions, Side, aabbFromOBB, createGraph, getBezierPath, nearestSide, obbContainsPoint, obbCorners, pointsToPath, pointsToRoundedPath, routeOrthogonal } from './graph.cjs';
|
|
6
|
+
export { AdvancedFilter, AggregateFn, AggregateType, ColumnAggregate, ColumnFilter, FilterFn, FilterOperator, RowId, SortConfig, SortDirection, TableEngine, TableGroup, TableOptions, TableState, computeAggregate, createTable, matchesColumnFilter, matchesOperator, resolveOperator } from './table.cjs';
|
|
7
|
+
export { TreeEngine, TreeEngineOptions, TreeFieldNames, TreeKey, TreeNodeData, TreeState, createTree } from './tree.cjs';
|
|
8
|
+
export { Assignment as CalendarAssignment, AssignmentStatus as CalendarAssignmentStatus, AvailabilityRule as CalendarAvailabilityRule, Conflict as CalendarConflict, ConflictReason as CalendarConflictReason, DayOfWeek as CalendarDayOfWeek, DetectConflictsOptions as CalendarDetectConflictsOptions, CalendarEngine, CalendarEngineOptions, Resource as CalendarResource, CalendarScale, CalendarState, createCalendar, detectConflicts, isAvailable } from './calendar.cjs';
|
|
9
|
+
|
|
10
|
+
declare function createCore(): Core;
|
|
11
|
+
|
|
12
|
+
interface LoggerOptions {
|
|
13
|
+
filter?: (event: WriteEvent) => boolean;
|
|
14
|
+
log?: (message: string, event: WriteEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
declare function loggerMiddleware(options?: LoggerOptions): Middleware;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Prevents writes to specified path prefixes.
|
|
20
|
+
* Useful for making parts of the store read-only.
|
|
21
|
+
*/
|
|
22
|
+
declare function freezeMiddleware(frozenPaths: string[]): Middleware;
|
|
23
|
+
|
|
24
|
+
interface PersistenceOptions {
|
|
25
|
+
key?: string;
|
|
26
|
+
paths?: string[];
|
|
27
|
+
storage?: {
|
|
28
|
+
getItem(key: string): string | null;
|
|
29
|
+
setItem(key: string, value: string): void;
|
|
30
|
+
};
|
|
31
|
+
debounce?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Persists selected paths to a storage backend (localStorage by default).
|
|
35
|
+
* Debounced to avoid excessive writes.
|
|
36
|
+
*/
|
|
37
|
+
declare function persistenceMiddleware(options?: PersistenceOptions): Middleware;
|
|
38
|
+
|
|
39
|
+
type Validator = (event: WriteEvent) => boolean | string;
|
|
40
|
+
interface ValidationMiddlewareOptions {
|
|
41
|
+
validators: Record<string, Validator>;
|
|
42
|
+
onReject?: (event: WriteEvent, reason: string) => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Validates writes against a map of path -> validator.
|
|
46
|
+
* If the validator returns false or a string (error message),
|
|
47
|
+
* the write is rejected and onReject is called (if provided).
|
|
48
|
+
*/
|
|
49
|
+
declare function validationMiddleware(optionsOrValidators: ValidationMiddlewareOptions | Record<string, Validator>): Middleware;
|
|
50
|
+
|
|
51
|
+
interface HistoryEntry {
|
|
52
|
+
timestamp: number;
|
|
53
|
+
patches: ReadonlyArray<{
|
|
54
|
+
path: string;
|
|
55
|
+
value: unknown;
|
|
56
|
+
oldValue: unknown;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
interface HistoryPlugin {
|
|
60
|
+
readonly entries: ReadonlyArray<HistoryEntry>;
|
|
61
|
+
readonly cursor: number;
|
|
62
|
+
readonly canUndo: boolean;
|
|
63
|
+
readonly canRedo: boolean;
|
|
64
|
+
undo(): void;
|
|
65
|
+
redo(): void;
|
|
66
|
+
jumpTo(index: number): void;
|
|
67
|
+
clear(): void;
|
|
68
|
+
destroy(): void;
|
|
69
|
+
}
|
|
70
|
+
interface HistoryOptions {
|
|
71
|
+
maxEntries?: number;
|
|
72
|
+
/** Group multiple writes within this window (ms) into a single entry */
|
|
73
|
+
groupWindow?: number;
|
|
74
|
+
filter?: (event: WriteEvent) => boolean;
|
|
75
|
+
}
|
|
76
|
+
declare function createHistory(core: Core, options?: HistoryOptions): HistoryPlugin;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Utility types for path-based type inference.
|
|
80
|
+
* These provide compile-time type safety over the untyped Core runtime.
|
|
81
|
+
*/
|
|
82
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Extracts dot-notation paths from a nested object type (max 3 levels deep).
|
|
85
|
+
* Example: Path<{user: {name: string}}> = "user" | "user.name"
|
|
86
|
+
*/
|
|
87
|
+
type Path<T> = T extends Primitive ? never : {
|
|
88
|
+
[K in keyof T & string]: T[K] extends Primitive ? K : T[K] extends Record<string, unknown> ? K | `${K}.${keyof T[K] & string}` | {
|
|
89
|
+
[L in keyof T[K] & string]: T[K][L] extends Record<string, unknown> ? `${K}.${L}.${keyof T[K][L] & string}` : never;
|
|
90
|
+
}[keyof T[K] & string] : K;
|
|
91
|
+
}[keyof T & string];
|
|
92
|
+
/**
|
|
93
|
+
* Resolves the value type at a given dot-notation path (max 3 levels).
|
|
94
|
+
*/
|
|
95
|
+
type PathValue<T, P extends string> = P extends keyof T ? T[P] : P extends `${infer K}.${infer Rest}` ? K extends keyof T ? Rest extends keyof T[K] ? T[K][Rest] : Rest extends `${infer L}.${infer M}` ? L extends keyof T[K] ? M extends keyof T[K][L] ? T[K][L][M] : unknown : unknown : unknown : unknown : unknown;
|
|
96
|
+
/**
|
|
97
|
+
* Type-safe wrapper over Core.
|
|
98
|
+
* Compile-time only — runtime behavior is identical to Core.
|
|
99
|
+
*/
|
|
100
|
+
interface TypedCore<T> {
|
|
101
|
+
get<K extends Path<T>>(path: K): PathValue<T, K>;
|
|
102
|
+
set<K extends Path<T>>(path: K, value: PathValue<T, K>): void;
|
|
103
|
+
subscribe<K extends Path<T>>(path: K, cb: (value: PathValue<T, K>) => void): () => void;
|
|
104
|
+
batch(fn: () => void): void;
|
|
105
|
+
transaction(fn: () => void): void;
|
|
106
|
+
computed<K extends Path<T>>(target: K, deps: Path<T>[], fn: (...values: unknown[]) => PathValue<T, K>): void;
|
|
107
|
+
/** Access the untyped core underneath */
|
|
108
|
+
raw: Core;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a type-safe wrapper around an existing Core instance.
|
|
112
|
+
* No runtime overhead — just type narrowing.
|
|
113
|
+
*/
|
|
114
|
+
declare function createTypedCore<T>(core: Core): TypedCore<T>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Engine path namespace registry
|
|
118
|
+
*
|
|
119
|
+
* Every engine that stores state in the Core store under a `$`-prefixed
|
|
120
|
+
* namespace MUST register its prefix here. This prevents two engines from
|
|
121
|
+
* silently colliding on the same root path (e.g. two engines both writing
|
|
122
|
+
* under `$meta.`).
|
|
123
|
+
*
|
|
124
|
+
* Rules:
|
|
125
|
+
* 1. Prefixes MUST start with `$` and end with `.`.
|
|
126
|
+
* 2. Prefixes MUST be unique across all engines.
|
|
127
|
+
* 3. An engine MUST use `reservedPrefix(name)` at module load so
|
|
128
|
+
* collisions surface at import time during dev/test.
|
|
129
|
+
* 4. User data MUST NOT live under `$` prefixes — reserve them for engines.
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Reserve (or look up) a prefix for an engine. Throws synchronously if the
|
|
133
|
+
* same prefix is already owned by a different engine.
|
|
134
|
+
*/
|
|
135
|
+
declare function reservePrefix(engine: string, prefix: string): string;
|
|
136
|
+
/** Snapshot of registered engine prefixes (debug / introspection). */
|
|
137
|
+
declare function listReservedPrefixes(): ReadonlyMap<string, string>;
|
|
138
|
+
declare const FORM_META_PREFIX: string;
|
|
139
|
+
declare const TABLE_PREFIX: string;
|
|
140
|
+
declare const TREE_PREFIX: string;
|
|
141
|
+
declare const GRAPH_PREFIX: string;
|
|
142
|
+
declare const CALENDAR_PREFIX: string;
|
|
143
|
+
|
|
144
|
+
export { CALENDAR_PREFIX, Core, FORM_META_PREFIX, GRAPH_PREFIX, type HistoryEntry, type HistoryOptions, type HistoryPlugin, Middleware, type Path, type PathValue, TABLE_PREFIX, TREE_PREFIX, type TypedCore, type ValidationMiddlewareOptions, type Validator, WriteEvent, createCore, createHistory, createTypedCore, freezeMiddleware, listReservedPrefixes, loggerMiddleware, persistenceMiddleware, reservePrefix, validationMiddleware };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { C as Core, W as WriteEvent, M as Middleware } from './types-B-rKQJ4R.js';
|
|
2
|
+
export { N as NextFn, a as WriteSource } from './types-B-rKQJ4R.js';
|
|
3
|
+
export { MeasureCache, MeasureCacheEvent, MeasureCacheListener, MeasureCacheOptions, VirtualEngine, VirtualEngineEvent, VirtualEngineListener, VirtualEngineOptions, VirtualItem, VirtualRange, createMeasureCache, createVirtual } from './virtual.js';
|
|
4
|
+
export { FieldMeta, FieldMetaExtensions, FieldOptions, FormEngine, FormListOperation, FormOptions, FormState, GetFieldValue, Rule, RuleFn, RuleObject, ValidationMode, ValidationResult, createForm } from './form.js';
|
|
5
|
+
export { AABB, Anchor, AnchorId, AnchorPolicy, BezierPathOptions, EdgeEndpoint, EdgeId, EdgeInit, GraphEdge, GraphEngine, GraphEngineOptions, GraphNode, GraphState, NodeId, NodeInit, NodeTransform, NodeUpdate, OBB, Outline, Point, RouteOrthogonalOptions, Side, aabbFromOBB, createGraph, getBezierPath, nearestSide, obbContainsPoint, obbCorners, pointsToPath, pointsToRoundedPath, routeOrthogonal } from './graph.js';
|
|
6
|
+
export { AdvancedFilter, AggregateFn, AggregateType, ColumnAggregate, ColumnFilter, FilterFn, FilterOperator, RowId, SortConfig, SortDirection, TableEngine, TableGroup, TableOptions, TableState, computeAggregate, createTable, matchesColumnFilter, matchesOperator, resolveOperator } from './table.js';
|
|
7
|
+
export { TreeEngine, TreeEngineOptions, TreeFieldNames, TreeKey, TreeNodeData, TreeState, createTree } from './tree.js';
|
|
8
|
+
export { Assignment as CalendarAssignment, AssignmentStatus as CalendarAssignmentStatus, AvailabilityRule as CalendarAvailabilityRule, Conflict as CalendarConflict, ConflictReason as CalendarConflictReason, DayOfWeek as CalendarDayOfWeek, DetectConflictsOptions as CalendarDetectConflictsOptions, CalendarEngine, CalendarEngineOptions, Resource as CalendarResource, CalendarScale, CalendarState, createCalendar, detectConflicts, isAvailable } from './calendar.js';
|
|
9
|
+
|
|
10
|
+
declare function createCore(): Core;
|
|
11
|
+
|
|
12
|
+
interface LoggerOptions {
|
|
13
|
+
filter?: (event: WriteEvent) => boolean;
|
|
14
|
+
log?: (message: string, event: WriteEvent) => void;
|
|
15
|
+
}
|
|
16
|
+
declare function loggerMiddleware(options?: LoggerOptions): Middleware;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Prevents writes to specified path prefixes.
|
|
20
|
+
* Useful for making parts of the store read-only.
|
|
21
|
+
*/
|
|
22
|
+
declare function freezeMiddleware(frozenPaths: string[]): Middleware;
|
|
23
|
+
|
|
24
|
+
interface PersistenceOptions {
|
|
25
|
+
key?: string;
|
|
26
|
+
paths?: string[];
|
|
27
|
+
storage?: {
|
|
28
|
+
getItem(key: string): string | null;
|
|
29
|
+
setItem(key: string, value: string): void;
|
|
30
|
+
};
|
|
31
|
+
debounce?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Persists selected paths to a storage backend (localStorage by default).
|
|
35
|
+
* Debounced to avoid excessive writes.
|
|
36
|
+
*/
|
|
37
|
+
declare function persistenceMiddleware(options?: PersistenceOptions): Middleware;
|
|
38
|
+
|
|
39
|
+
type Validator = (event: WriteEvent) => boolean | string;
|
|
40
|
+
interface ValidationMiddlewareOptions {
|
|
41
|
+
validators: Record<string, Validator>;
|
|
42
|
+
onReject?: (event: WriteEvent, reason: string) => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Validates writes against a map of path -> validator.
|
|
46
|
+
* If the validator returns false or a string (error message),
|
|
47
|
+
* the write is rejected and onReject is called (if provided).
|
|
48
|
+
*/
|
|
49
|
+
declare function validationMiddleware(optionsOrValidators: ValidationMiddlewareOptions | Record<string, Validator>): Middleware;
|
|
50
|
+
|
|
51
|
+
interface HistoryEntry {
|
|
52
|
+
timestamp: number;
|
|
53
|
+
patches: ReadonlyArray<{
|
|
54
|
+
path: string;
|
|
55
|
+
value: unknown;
|
|
56
|
+
oldValue: unknown;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
interface HistoryPlugin {
|
|
60
|
+
readonly entries: ReadonlyArray<HistoryEntry>;
|
|
61
|
+
readonly cursor: number;
|
|
62
|
+
readonly canUndo: boolean;
|
|
63
|
+
readonly canRedo: boolean;
|
|
64
|
+
undo(): void;
|
|
65
|
+
redo(): void;
|
|
66
|
+
jumpTo(index: number): void;
|
|
67
|
+
clear(): void;
|
|
68
|
+
destroy(): void;
|
|
69
|
+
}
|
|
70
|
+
interface HistoryOptions {
|
|
71
|
+
maxEntries?: number;
|
|
72
|
+
/** Group multiple writes within this window (ms) into a single entry */
|
|
73
|
+
groupWindow?: number;
|
|
74
|
+
filter?: (event: WriteEvent) => boolean;
|
|
75
|
+
}
|
|
76
|
+
declare function createHistory(core: Core, options?: HistoryOptions): HistoryPlugin;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Utility types for path-based type inference.
|
|
80
|
+
* These provide compile-time type safety over the untyped Core runtime.
|
|
81
|
+
*/
|
|
82
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Extracts dot-notation paths from a nested object type (max 3 levels deep).
|
|
85
|
+
* Example: Path<{user: {name: string}}> = "user" | "user.name"
|
|
86
|
+
*/
|
|
87
|
+
type Path<T> = T extends Primitive ? never : {
|
|
88
|
+
[K in keyof T & string]: T[K] extends Primitive ? K : T[K] extends Record<string, unknown> ? K | `${K}.${keyof T[K] & string}` | {
|
|
89
|
+
[L in keyof T[K] & string]: T[K][L] extends Record<string, unknown> ? `${K}.${L}.${keyof T[K][L] & string}` : never;
|
|
90
|
+
}[keyof T[K] & string] : K;
|
|
91
|
+
}[keyof T & string];
|
|
92
|
+
/**
|
|
93
|
+
* Resolves the value type at a given dot-notation path (max 3 levels).
|
|
94
|
+
*/
|
|
95
|
+
type PathValue<T, P extends string> = P extends keyof T ? T[P] : P extends `${infer K}.${infer Rest}` ? K extends keyof T ? Rest extends keyof T[K] ? T[K][Rest] : Rest extends `${infer L}.${infer M}` ? L extends keyof T[K] ? M extends keyof T[K][L] ? T[K][L][M] : unknown : unknown : unknown : unknown : unknown;
|
|
96
|
+
/**
|
|
97
|
+
* Type-safe wrapper over Core.
|
|
98
|
+
* Compile-time only — runtime behavior is identical to Core.
|
|
99
|
+
*/
|
|
100
|
+
interface TypedCore<T> {
|
|
101
|
+
get<K extends Path<T>>(path: K): PathValue<T, K>;
|
|
102
|
+
set<K extends Path<T>>(path: K, value: PathValue<T, K>): void;
|
|
103
|
+
subscribe<K extends Path<T>>(path: K, cb: (value: PathValue<T, K>) => void): () => void;
|
|
104
|
+
batch(fn: () => void): void;
|
|
105
|
+
transaction(fn: () => void): void;
|
|
106
|
+
computed<K extends Path<T>>(target: K, deps: Path<T>[], fn: (...values: unknown[]) => PathValue<T, K>): void;
|
|
107
|
+
/** Access the untyped core underneath */
|
|
108
|
+
raw: Core;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a type-safe wrapper around an existing Core instance.
|
|
112
|
+
* No runtime overhead — just type narrowing.
|
|
113
|
+
*/
|
|
114
|
+
declare function createTypedCore<T>(core: Core): TypedCore<T>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Engine path namespace registry
|
|
118
|
+
*
|
|
119
|
+
* Every engine that stores state in the Core store under a `$`-prefixed
|
|
120
|
+
* namespace MUST register its prefix here. This prevents two engines from
|
|
121
|
+
* silently colliding on the same root path (e.g. two engines both writing
|
|
122
|
+
* under `$meta.`).
|
|
123
|
+
*
|
|
124
|
+
* Rules:
|
|
125
|
+
* 1. Prefixes MUST start with `$` and end with `.`.
|
|
126
|
+
* 2. Prefixes MUST be unique across all engines.
|
|
127
|
+
* 3. An engine MUST use `reservedPrefix(name)` at module load so
|
|
128
|
+
* collisions surface at import time during dev/test.
|
|
129
|
+
* 4. User data MUST NOT live under `$` prefixes — reserve them for engines.
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Reserve (or look up) a prefix for an engine. Throws synchronously if the
|
|
133
|
+
* same prefix is already owned by a different engine.
|
|
134
|
+
*/
|
|
135
|
+
declare function reservePrefix(engine: string, prefix: string): string;
|
|
136
|
+
/** Snapshot of registered engine prefixes (debug / introspection). */
|
|
137
|
+
declare function listReservedPrefixes(): ReadonlyMap<string, string>;
|
|
138
|
+
declare const FORM_META_PREFIX: string;
|
|
139
|
+
declare const TABLE_PREFIX: string;
|
|
140
|
+
declare const TREE_PREFIX: string;
|
|
141
|
+
declare const GRAPH_PREFIX: string;
|
|
142
|
+
declare const CALENDAR_PREFIX: string;
|
|
143
|
+
|
|
144
|
+
export { CALENDAR_PREFIX, Core, FORM_META_PREFIX, GRAPH_PREFIX, type HistoryEntry, type HistoryOptions, type HistoryPlugin, Middleware, type Path, type PathValue, TABLE_PREFIX, TREE_PREFIX, type TypedCore, type ValidationMiddlewareOptions, type Validator, WriteEvent, createCore, createHistory, createTypedCore, freezeMiddleware, listReservedPrefixes, loggerMiddleware, persistenceMiddleware, reservePrefix, validationMiddleware };
|