import { Repository } from 'typeorm';
import { ErrorService } from '../../error/error.service';
import { LogClient, LogEntity } from './entities/log.entity';
import { LogInterface } from './log.interface';
export declare class LogService {
    private logRepository;
    private error;
    constructor(logRepository: Repository<LogEntity>, error: ErrorService);
    add({ operatorUserId, affectedId, type, action, message, client, item, oldItem, }: LogInterface): Promise<void>;
    getAll(page?: number, limit?: number, filters?: any, sorts?: any): Promise<{
        items: LogEntity[];
        pagination: {
            itemsPerPage: number;
            totalItems: number;
            currentPage: number;
            totalPages: number;
        };
    }>;
    getById(id: number): Promise<{
        params: any;
        id: number;
        operatorUserId: string;
        type: string;
        action: string;
        affectedId: string;
        message: string;
        client: LogClient;
        ip: string;
        createdAt: Date;
        updatedAt: Date;
        operatorUser: import("../user/entities/user.entity").UserEntity;
        affectedUser: import("../user/entities/user.entity").UserEntity;
        affectedProduct: import("../product/entities/product.entity").ProductEntity;
    }>;
}
