/** * Comments Operations Module * Handles all comment-related WordPress REST API operations */ import type { WordPressComment, CommentQueryParams, CreateCommentRequest, UpdateCommentRequest } from "../../types/wordpress.js"; /** * Interface for the base client methods needed by comments operations */ export interface CommentsClientBase { get(endpoint: string): Promise; post(endpoint: string, data?: unknown): Promise; put(endpoint: string, data?: unknown): Promise; delete(endpoint: string): Promise; } /** * Comments operations mixin * Provides CRUD operations for WordPress comments */ export declare class CommentsOperations { private client; constructor(client: CommentsClientBase); /** * Get a list of comments with optional filtering */ getComments(params?: CommentQueryParams): Promise; /** * Get a single comment by ID */ getComment(id: number, context?: "view" | "embed" | "edit"): Promise; /** * Create a new comment */ createComment(data: CreateCommentRequest): Promise; /** * Update an existing comment */ updateComment(data: UpdateCommentRequest): Promise; /** * Delete a comment */ deleteComment(id: number, force?: boolean): Promise<{ deleted: boolean; previous?: WordPressComment; }>; /** * Approve a comment */ approveComment(id: number): Promise; /** * Reject/unapprove a comment */ rejectComment(id: number): Promise; /** * Mark a comment as spam */ spamComment(id: number): Promise; } //# sourceMappingURL=comments.d.ts.map