import { Repository } from 'typeorm';
import { JwtService } from '@nestjs/jwt';
import { ConfigService } from '@nestjs/config';
import { User } from '../../modules/user/entities/user.entity';
import { Store } from '../../modules/store/entities/store.entity';
export declare enum AuthErrorCode {
    USER_NOT_FOUND = "USER_NOT_FOUND",
    ACCOUNT_INACTIVE = "ACCOUNT_INACTIVE",
    INVALID_PASSWORD = "INVALID_PASSWORD",
    MISSING_CREDENTIALS = "MISSING_CREDENTIALS",
    STORE_NOT_FOUND = "STORE_NOT_FOUND",
    STORE_NOT_ASSIGNED = "STORE_NOT_ASSIGNED",
    MISSING_STORE = "MISSING_STORE",
    NO_STORES_ASSIGNED = "NO_STORES_ASSIGNED"
}
export declare class AuthError extends Error {
    readonly code: AuthErrorCode;
    readonly message: string;
    readonly statusCode: number;
    constructor(code: AuthErrorCode, message: string, statusCode?: number);
}
export declare class AuthService {
    private readonly userRepository;
    private readonly storeRepository;
    private readonly jwtService;
    private readonly configService;
    constructor(userRepository: Repository<User>, storeRepository: Repository<Store>, jwtService: JwtService, configService: ConfigService);
    getUserById(id: number): Promise<User | null>;
    validateUser(email: string, pass: string): Promise<any>;
    private validateUserStoreAccess;
    login(email: string, password: string, storeId: number): Promise<{
        access_token: string;
        refresh_token: string;
    }>;
    private validateUserStoreAccessById;
    getUserStoresByEmail(email: string): Promise<Store[]>;
    refreshToken(userId: number, providedRefreshToken: string): Promise<{
        access_token: string;
        refresh_token: string;
    }>;
    clearExpiredRefreshTokens(): Promise<void>;
    clearExpiredRefreshToken(userId: number): Promise<void>;
    logout(userId: number): Promise<void>;
    logoutAllSessions(userId: number): Promise<void>;
    changePassword(userId: number, oldPassword: string, newPassword: string): Promise<void>;
    deactivateUser(userId: number): Promise<void>;
    activateUser(userId: number): Promise<void>;
}
