type SchemaValue = string | number | boolean | null | readonly SchemaValue[] | { readonly [key: string]: SchemaValue; }; export type DeviceJsonSchema = { readonly [key: string]: SchemaValue; }; type Check = (value: unknown, path: string) => void; export interface Rule extends Check { readonly jsonSchema: DeviceJsonSchema; } export declare const define: (check: Check, jsonSchema: DeviceJsonSchema) => Rule; export declare const fail: (path: string, expected: string) => never; export declare const text: Rule; export declare const boolean: Rule; export declare const number: Rule; export declare const durationSeconds: Rule; export declare const oneOf: (...values: readonly string[]) => Rule; export declare const nullable: (rule: Rule) => Rule; export declare const object: (fields: Record, required?: readonly string[]) => Rule; export declare const array: (rule: Rule, identities?: boolean) => Rule; export {}; //# sourceMappingURL=deviceJsonRule.d.ts.map