/** * Wire format validation — runtime schema checks for $prefab wire data. * * Validates that incoming JSON conforms to the $prefab wire format * and returns structured error information. */ import type { PrefabWireFormat } from '../app.js'; export interface ValidationError { path: string; message: string; } export interface ValidationResult { valid: boolean; errors: ValidationError[]; } /** * Validate a wire format payload. Returns `{ valid: true, errors: [] }` if OK, * or `{ valid: false, errors: [...] }` with details about what's wrong. * * @param data - The raw parsed JSON to validate * @param opts - Optional: `strict` mode warns on unknown component types */ export declare function validateWireFormat(data: unknown, opts?: { strict?: boolean; }): ValidationResult; /** * Quick boolean check — returns true if data looks like valid $prefab wire format. */ export declare function isValidWireFormat(data: unknown): data is PrefabWireFormat; //# sourceMappingURL=validate.d.ts.map