import { AjaxOptions } from './helpers'; import { Account, Avatar, List } from './interfaces/account'; import { Channel, CreateChannelPayload } from './interfaces/channel'; import { Comment } from './interfaces/comment'; import { Config } from './interfaces/config'; import { Server } from './interfaces/server'; import { AvatarPayload, ListUserParams, Subscription, UpdateMyselfPayload, UpdateUserPayload, User, UserPayload, UserRegisterPayload } from './interfaces/user'; import { Abuse, AbuseListParams, BasicListParams, BlacklistedVideo, BlacklistParams, ListVideoParamsFull, SearchListParams, UpdateVideoPayload, Video, VideoDetails } from './interfaces/video'; import { OAuth } from './oauth'; interface PeertubeOptions { instance: string; user: string; password: string; } export declare class Peertube extends OAuth { constructor({ instance, password, user }: PeertubeOptions); fetch(path: string, init?: AjaxOptions): Promise; getConfig(): Promise; getAbout(): Promise; getCategories(): Promise>; getLicences(): Promise>; getLanguages(): Promise>; getPrivacies(): Promise>; getChannels(): Promise>; getAccounts(): Promise>; getAccountByName(name: string): Promise; getVideosByAccount(name: string): Promise>; getChannelByAccount(name: string): Promise>; getVideos(query?: ListVideoParamsFull): Promise>; getVideo(id: number): Promise; getCommentsByVideo(id: number, query?: BasicListParams): Promise>; getComment(id: number, commentId: number): Promise<{ comment: Comment; children: Comment[]; }>; getVideoDescription(id: number): Promise<{ description: string; }>; getChannel(name: string): Promise; getVideoByChannel(id: number): Promise>; getFollowers(): Promise>; getFollowedServers(): Promise>; getFeed(format: 'xml' | 'json' | 'atom', query?: { accountId?: string; accountName?: string; }): Promise>; search(query: SearchListParams): Promise>; createUser(body: UserPayload): Promise; getUsers(query?: ListUserParams): Promise>; removeUser(id: number): Promise; getUser(id: number): Promise; updateUser(id: number, body: UpdateUserPayload): Promise; getMyself(): Promise; updateMyself(body: UpdateMyselfPayload): Promise; getMyQuota(): Promise<{ videoQuotaUsed: number; videoQuotaUsedDaily: number; }>; getMyRating(id: number): Promise<{ id: number; rating: number; }>; getMyVideos(query?: BasicListParams): Promise>; getMySubscriptions(query?: BasicListParams): Promise>; getSubcription(uri: string): Promise; addSubscription(body: {}): Promise; deleteSubcription(uri: string): Promise; subscriptionsExist(query?: { uris: string[]; }): Promise; getSubscribedVideos(query?: BasicListParams): Promise>; registerUser(body: UserRegisterPayload): Promise; updateAvatar(body: AvatarPayload): Promise; deleteVideo(id: number): Promise