/** * @module OAuth */ import { Request } from '../util'; import OAuth from '../oauth'; import * as YT from '..'; export declare class OAuthComments { #private; oauth: OAuth; constructor(oauth: OAuth, request: Request); /** * Post a [Comment](../../Library-Exports/classes/Comment#) on a [Video](../../Library-Exports/classes/Video#) or [Channel](../../Library-Exports/classes/Channel#) discussion. * @param text The text content of the comment. * @param channelResolvable The channel to post the comment on. * @param videoResolvable The video of the channel to post the comment on. * If falsey, the comment will be posted to the channel discussion. */ postComment(text: string, channelResolvable: YT.ChannelResolvable, videoResolvable: YT.VideoResolvable): Promise; /** * Replies to a [Comment](../../Library-Exports/classes/Comment#). * @param commentId The ID of the comment to reply to. * @param text The text to reply with. * Required for [Comment.url](../../Library-Exports/classes/Comment#url) to be correct. */ replyToComment(commentId: string, text: string): Promise; /** * Edit a [Comment](../../Library-Exports/classes/Comment#) on a [Video](../../Library-Exports/classes/Video#) or [Channel](../../Library-Exports/classes/Channel#) discussion. * @param commentId The ID of the comment. * @param text The new text content of the comment. */ editComment(commentId: string, text: string): Promise; /** * Marks a [Comment](../../Library-Exports/classes/Comment#) as spam. * @param commentId The ID of the comment to mark as spam. */ markCommentAsSpam(commentId: string): Promise; /** * Sets the moderation status of a [Comment](../../Library-Exports/classes/Comment#) * @param commentId The ID of the comment to set the moderation status of. * @param moderationStatus The moderation status to set the comment to. * @param banAuthor Whether or not to ban the author from making future comments. */ setCommentModerationStatus(commentId: string, moderationStatus: 'heldForReview' | 'published' | 'rejected', banAuthor?: boolean): Promise; /** * Deletes a [Comment](../../Library-Exports/classes/Comment#). * @param commentId The ID of the comment to delete. */ deleteComment(commentId: string): Promise; }