import { Context, DAL, InferEntityType, InternalModuleDeclaration, ModulesSdkTypes, ProjectConfigOptions, UserTypes } from "@medusajs/framework/types"; import { Invite, User } from "../models"; type InjectedDependencies = { baseRepository: DAL.RepositoryService; userService: ModulesSdkTypes.IMedusaInternalService; inviteService: ModulesSdkTypes.IMedusaInternalService; }; declare const UserModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType<{ User: { dto: UserTypes.UserDTO; }; Invite: { dto: UserTypes.InviteDTO; }; }>; export default class UserModuleService extends UserModuleService_base implements UserTypes.IUserModuleService { protected baseRepository_: DAL.RepositoryService; protected readonly userService_: ModulesSdkTypes.IMedusaInternalService>; protected readonly inviteService_: ModulesSdkTypes.IMedusaInternalService>; protected readonly config: { jwtSecret: string; jwtPublicKey?: string; jwt_verify_options: ProjectConfigOptions["http"]["jwtVerifyOptions"]; jwtOptions: ProjectConfigOptions["http"]["jwtOptions"] & { expiresIn: number; }; }; constructor({ userService, inviteService, baseRepository }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration); validateInviteToken(token: string, sharedContext?: Context): Promise; refreshInviteTokens(inviteIds: string[], sharedContext?: Context): Promise; refreshInviteTokens_(inviteIds: string[], sharedContext?: Context): Promise<{ id: string; email: string; accepted: boolean; token: string; expires_at: Date; metadata: Record | null; created_at: Date; updated_at: Date; deleted_at: Date | null; }[]>; createUsers(data: UserTypes.CreateUserDTO[], sharedContext?: Context): Promise; createUsers(data: UserTypes.CreateUserDTO, sharedContext?: Context): Promise; updateUsers(data: UserTypes.UpdateUserDTO[], sharedContext?: Context): Promise; updateUsers(data: UserTypes.UpdateUserDTO, sharedContext?: Context): Promise; createInvites(data: UserTypes.CreateInviteDTO[], sharedContext?: Context): Promise; createInvites(data: UserTypes.CreateInviteDTO, sharedContext?: Context): Promise; private createInvites_; updateInvites(data: UserTypes.UpdateInviteDTO[], sharedContext?: Context): Promise; updateInvites(data: UserTypes.UpdateInviteDTO, sharedContext?: Context): Promise; private generateToken; } export {}; //# sourceMappingURL=user-module.d.ts.map