import { FindConfig } from "../common"; import { Context } from "../shared-context"; import { BaseFilterable, FilterQuery as InternalFilterQuery, FilterQuery, PerformedActions, UpsertWithReplaceConfig } from "../dal"; import { InferEntityType } from "../dml"; export interface IMedusaInternalService { get __container__(): TContainer; retrieve(idOrObject: string, config?: FindConfig, sharedContext?: Context): Promise>; retrieve(idOrObject: object, config?: FindConfig, sharedContext?: Context): Promise>; list(filters?: FilterQuery | BaseFilterable>, config?: FindConfig, sharedContext?: Context): Promise[]>; listAndCount(filters?: FilterQuery | BaseFilterable>, config?: FindConfig, sharedContext?: Context): Promise<[InferEntityType[], number]>; create(data: any[], sharedContext?: Context): Promise[]>; create(data: any, sharedContext?: Context): Promise>; update(data: any[], sharedContext?: Context): Promise[]>; update(data: any, sharedContext?: Context): Promise>; update(selectorAndData: { selector: FilterQuery | BaseFilterable>; data: any; }, sharedContext?: Context): Promise[]>; update(selectorAndData: { selector: FilterQuery | BaseFilterable>; data: any; }[], sharedContext?: Context): Promise[]>; delete(idOrSelector: string, sharedContext?: Context): Promise; delete(idOrSelector: string[], sharedContext?: Context): Promise; delete(idOrSelector: object, sharedContext?: Context): Promise; delete(idOrSelector: object[], sharedContext?: Context): Promise; delete(idOrSelector: { selector: FilterQuery | BaseFilterable>; }, sharedContext?: Context): Promise; softDelete(idsOrFilter: string | string[] | InternalFilterQuery | InternalFilterQuery[], sharedContext?: Context): Promise<[InferEntityType[], Record]>; restore(idsOrFilter: string[] | InternalFilterQuery, sharedContext?: Context): Promise<[InferEntityType[], Record]>; upsert(data: any[], sharedContext?: Context): Promise[]>; upsert(data: any, sharedContext?: Context): Promise>; upsertWithReplace(data: any[], config?: UpsertWithReplaceConfig>, sharedContext?: Context): Promise<{ entities: InferEntityType[]; performedActions: PerformedActions; }>; } //# sourceMappingURL=medusa-internal-service.d.ts.map