1import {
2 SystemsGazeBarometerCheck,
3 SystemsGazeBarometerHost,
4 SystemsGazeBarometerService,
5 SystemsGazeBarometerState,
6} from "./lexicons/index.js";
7
8export * from "./lexicons/index.js";
9
10export const schemas = {
11 "systems.gaze.barometer.host": SystemsGazeBarometerHost.mainSchema,
12 "systems.gaze.barometer.service": SystemsGazeBarometerService.mainSchema,
13 "systems.gaze.barometer.check": SystemsGazeBarometerCheck.mainSchema,
14 "systems.gaze.barometer.state": SystemsGazeBarometerState.mainSchema,
15};
16export const nsid = <
17 T extends
18 | typeof SystemsGazeBarometerHost
19 | typeof SystemsGazeBarometerService
20 | typeof SystemsGazeBarometerCheck
21 | typeof SystemsGazeBarometerState,
22>(
23 lex: T,
24): (typeof schemas)[typeof lex.mainSchema.object.shape.$type.expected] => {
25 return schemas[lex.mainSchema.object.shape.$type.expected];
26};