import { EntitySubscriberInterface, InsertEvent, UpdateEvent, EntityManager } from 'typeorm'; import { Connection } from '../utils/typeormProxy'; import AdminUser from './adminUser.entity'; export declare class AdminUserService implements EntitySubscriberInterface { readonly connection: Connection; private readonly entityManager; constructor(connection: Connection, entityManager: EntityManager); listenTo(): typeof AdminUser; hashPassword(password: string): string; comparePassword(adminUser: AdminUser, password: string): boolean; beforeInsert(event: InsertEvent): void; beforeUpdate(event: UpdateEvent): void; create(username: string, password: string): Promise; findOne(username: string): Promise; validateAdminCredentials(username: string, password: string): Promise<{ id: string; username: string; }>; }