import type { ApiClient } from './client.js'; import type { CommentsResponse, CommentThread, Comment, CommentSortBy } from '../types/index.js'; export interface CommentsApi { ensureThread(params: { pageUrl: string; hostname: string; }): Promise; getComments(params: { pageUrl: string; sortBy: CommentSortBy; }): Promise; postComment(params: { threadId: string; content: string; parentCommentId?: string | null; }): Promise; editComment(commentId: string, content: string): Promise; deleteComment(commentId: string): Promise; toggleLike(commentId: string): Promise<{ success: boolean; data: { _id: string; likeCount: number; hasLiked: boolean; }; }>; } export declare function createCommentsApi(client: ApiClient): CommentsApi;