import { CreateReviewDto } from './dto/create-review.dto';
import { PrismaService } from '../prisma/prisma.service';
export declare class ReviewsService {
    private prisma;
    constructor(prisma: PrismaService);
    create(createReviewDto: CreateReviewDto, userId?: string): Promise<{
        id: string;
        createdAt: Date;
        productId: string;
        userId: string | null;
        rating: number;
        comment: string | null;
        isApproved: boolean;
    }>;
    findAll(productId?: string, isApproved?: boolean): Promise<({
        user: {
            name: string;
            image: string;
        };
        product: {
            name: string;
            slug: string;
        };
    } & {
        id: string;
        createdAt: Date;
        productId: string;
        userId: string | null;
        rating: number;
        comment: string | null;
        isApproved: boolean;
    })[]>;
    findOne(id: string): Promise<{
        id: string;
        createdAt: Date;
        productId: string;
        userId: string | null;
        rating: number;
        comment: string | null;
        isApproved: boolean;
    }>;
    updateStatus(id: string, isApproved: boolean): Promise<{
        id: string;
        createdAt: Date;
        productId: string;
        userId: string | null;
        rating: number;
        comment: string | null;
        isApproved: boolean;
    }>;
    remove(id: string): Promise<{
        id: string;
        createdAt: Date;
        productId: string;
        userId: string | null;
        rating: number;
        comment: string | null;
        isApproved: boolean;
    }>;
}
