import { UID, Utils, Schema } from '../..'; import type * as Params from './params'; import type { PartialEntity, Result, PaginatedResult } from './result'; export type UploadFile = (uid: UID.Schema, entity: Record, files: Record) => Promise; export * as Params from './params'; export * from './result'; export * from './plugin'; type WrapAction = Omit; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. * @see {@link https://docs.strapi.io/dev-docs/api/document-service} Document Service API */ export interface EntityService { /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ wrapParams(params?: TParams, options?: { uid: TContentTypeUID; action: WrapAction; }): Promise | TResult; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ wrapResult(result: unknown, options?: { uid: TContentTypeUID; action: WrapAction; [key: string]: unknown; }): Promise | TResult; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ findMany>(uid: TContentTypeUID, params?: TParams): Promise, Result[] ], [ UID.IsSingleType, Result | null ] ], (Result | null) | Result[]>>; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ findOne>(uid: TContentTypeUID, entityId: Params.Attribute.ID, params?: TParams): Promise | null>; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ delete>(uid: TContentTypeUID, entityId: Params.Attribute.ID, params?: TParams): Promise | null>; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ create>(uid: TContentTypeUID, params?: TParams): Promise>; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ update>(uid: TContentTypeUID, entityId: Params.Attribute.ID, params?: TParams): Promise | null>; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ findPage>(uid: TContentTypeUID, params?: TParams): Promise>; /** * @deprecated Use the Document Service (`strapi.documents`) instead. Will be removed in the next major version. */ count(uid: TContentTypeUID, params?: Params.Pick): Promise; /** * @deprecated Will be removed in the next major version. * @internal */ load>(uid: TContentTypeUID, entity: PartialEntity, field: Utils.Guard.Never, params?: GetPopulatableFieldParams): Promise; /** * @deprecated Will be removed in the next major version. * @internal */ loadPages>(uid: TContentTypeUID, entity: PartialEntity, field: Utils.Guard.Never, params?: GetPopulatableFieldParams, pagination?: Params.Pagination.Any): Promise; } type GetPopulatableFieldParams> = Utils.MatchFirst<[ [ Schema.Attribute.HasTarget>, Params.Populate.NestedParams>> ], [ Schema.Attribute.HasMorphTargets>, (Params.Populate.Fragment>> | Params.Populate.NestedParams) ] ], Params.Populate.Fragment | Params.Populate.NestedParams>; //# sourceMappingURL=index.d.ts.map