import type { AuthenticatedUser, UserRecord, UserRepository } from '@cepseudo/shared'; /** * Service for managing users in the Digital Twin framework. * * Delegates all database operations to a UserRepository implementation, * removing the previous direct Knex dependency. * * When authentication is disabled, returns mock user records without * touching the database. */ export declare class UserService { #private; constructor(userRepository: UserRepository); /** Ensures all user-related tables exist in the database */ initializeTables(): Promise; /** * Finds or creates a user and synchronizes their roles. * * When authentication is disabled, returns a mock user record * without touching the database. */ findOrCreateUser(authUser: AuthenticatedUser): Promise; /** Gets a user by their database ID */ getUserById(id: number): Promise; /** Gets a user by their Keycloak ID with roles */ getUserByKeycloakId(keycloakId: string): Promise; } //# sourceMappingURL=user_service.d.ts.map