import { GetResponse, type ExtractValue } from "../../util.js"; import Base from "../Base.js"; import type { CreatePostVoteData, CreatePostVoteResponses } from "../../generated/types.js"; /** @category Modules/Types */ export type PostVoteScore = ExtractValue<"score", CreatePostVoteData>; /** @category Modules/Types */ export interface CreatePostVoteResponse extends GetResponse { } /** @category Modules */ export default class PostVotes extends Base { /** * Create Post Vote * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Post_Votes-createPostVote createPostVote} * * @see {@link https://e621.wiki/#operations-Post_Votes-createPostVote Documentation} for more details. */ create(id: number, score: PostVoteScore, no_unvote?: boolean): Promise; /** * Delete Post Vote * * @requiresApiKeyAuth * * @operationId {@link https://e621.wiki/#operations-Post_Votes-deletePostVote deletePostVote} * * @see {@link https://e621.wiki/#operations-Post_Votes-deletePostVote Documentation} for more details. */ delete(id: number): Promise; }