import { GetResponse, type ExtractValue } from "../../util.js"; import Base from "../Base.js"; import type { CreateForumPostVoteData, CreateForumPostVoteResponses } from "../../generated/types.js"; export type ForumPostVoteScore = ExtractValue<"forum_post_vote[score]", CreateForumPostVoteData>; export interface CreateForumPostVoteResponse extends GetResponse { } /** @category Modules */ export default class ForumPostVotes extends Base { /** * Create Forum Post Vote * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-createForumPostVote createForumPostVote} * * @see {@link https://e621.wiki/#operations-Forum_Post_Votes-createForumPostVote Documentation} for more details. */ create(id: number, score: ForumPostVoteScore): Promise; /** * Delete Forum Post Vote * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-deleteForumPostVote deleteForumPostVote} * * @see {@link https://e621.wiki/#operations-Forum_Post_Votes-deleteForumPostVote Documentation} for more details. */ delete(id: number): Promise; }