import { SystemsGazeBarometerCheck, SystemsGazeBarometerHost, SystemsGazeBarometerService, SystemsGazeBarometerState, } from "./lexicons/index.js"; export * from "./lexicons/index.js"; export const schemas = { "systems.gaze.barometer.host": SystemsGazeBarometerHost.mainSchema, "systems.gaze.barometer.service": SystemsGazeBarometerService.mainSchema, "systems.gaze.barometer.check": SystemsGazeBarometerCheck.mainSchema, "systems.gaze.barometer.state": SystemsGazeBarometerState.mainSchema, }; export const nsid = < T extends | typeof SystemsGazeBarometerHost | typeof SystemsGazeBarometerService | typeof SystemsGazeBarometerCheck | typeof SystemsGazeBarometerState, >( lex: T, ): (typeof schemas)[typeof lex.mainSchema.object.shape.$type.expected] => { return schemas[lex.mainSchema.object.shape.$type.expected]; };