trender-client
Version:
Official Trender client API
13 lines (12 loc) • 815 B
TypeScript
import RequestEmitter, { requestParams } from '../utils/RequestEmitter';
import type { FollowInterface, GlobalInterface } from './Interfaces';
declare class FollowManager extends RequestEmitter {
constructor(params: requestParams);
delete(target_id: string): Promise<FollowInterface.followInformations>;
create(target_id: string): Promise<FollowInterface.followInformations>;
accept(follow_id: string): Promise<FollowInterface.followInformations>;
unacceptedList(): Promise<FollowInterface.followListInformations>;
follows(nickname: string, params?: GlobalInterface.paginationParams): Promise<FollowInterface.followListInformations>;
followers(nickname: string, params?: GlobalInterface.paginationParams): Promise<FollowInterface.followListInformations>;
}
export default FollowManager;