import type { ContentTypes } from '../schema'; import type * as UID from '../uid'; import type * as EntityService from './entity-service'; export type Entity = { id: number; [key: string]: unknown; } | null; type Options = { isDraft?: boolean; locale?: string; }; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ export interface EntityValidator { validateEntityCreation: (model: ContentTypes[TUID], data: EntityService.Params.Data.Input, options?: Options) => Promise>; validateEntityUpdate: (model: ContentTypes[TUID], data: Partial> | undefined, options?: Options, entity?: Entity) => Promise>; } export {}; //# sourceMappingURL=entity-validator.d.ts.map