export type ValidationResult = { ok: true; value: T; } | { ok: false; error: string; }; /** * Validate the `update-script` request body. Returns the parsed, * schema-conformant script on success, or a human-readable error * suitable for sending back as a 400 response. */ export declare function validateUpdateScriptBody(body: unknown): ValidationResult<{ filePath: string; script: unknown; }>; /** * Validate the `update-beat` request body. `beatIndex` is allowed * to be any non-negative integer; the handler still bounds-checks * against the actual script length after reading the file. */ export declare function validateUpdateBeatBody(body: unknown): ValidationResult<{ filePath: string; beatIndex: number; beat: unknown; }>; //# sourceMappingURL=validate.d.ts.map