import type { Db, ReviewStatus, MarketplacePluginOptions } from "../types.js"; export declare class ReviewService { private db; private options; constructor(db: Db, options: MarketplacePluginOptions); create(data: { vendorId: string; customerId?: string; orderId?: string; rating: number; title?: string; body?: string; }): Promise<{ id: string; createdAt: Date; status: string; vendorId: string; title: string | null; customerId: string | null; orderId: string | null; body: string | null; rating: number; vendorResponse: string | null; vendorRespondedAt: Date | null; } | undefined>; getForVendor(vendorId: string, includeUnpublished?: boolean): Promise<{ id: string; vendorId: string; customerId: string | null; orderId: string | null; rating: number; title: string | null; body: string | null; status: string; vendorResponse: string | null; vendorRespondedAt: Date | null; createdAt: Date; }[]>; getAggregateRating(vendorId: string): Promise<{ average: number; count: number; }>; respond(reviewId: string, response: string): Promise<{ id: string; vendorId: string; customerId: string | null; orderId: string | null; rating: number; title: string | null; body: string | null; status: string; vendorResponse: string | null; vendorRespondedAt: Date | null; createdAt: Date; } | null>; moderate(reviewId: string, status: ReviewStatus): Promise<{ id: string; vendorId: string; customerId: string | null; orderId: string | null; rating: number; title: string | null; body: string | null; status: string; vendorResponse: string | null; vendorRespondedAt: Date | null; createdAt: Date; } | null>; } //# sourceMappingURL=review.d.ts.map