import Joi from 'joi'; import { FileToServer } from '../file-to-server'; import { FieldToServerFull } from './field-to-server-full'; import { FieldsToServerFull } from './fields-to-server-full'; type FieldToServerPartial = { key: string; value: FieldToServerFull; } | { key: string; delete?: string[]; add?: FileToServer[]; }; type FieldsToServerPartial = FieldToServerPartial[]; type FieldsToServerUpdate = FieldsToServerFull | FieldsToServerPartial; declare const schema: Joi.AlternativesSchema; export { schema, FieldsToServerUpdate, };