import AccountManager from "../account"; import User, { UserInfos } from "./user"; export type FriendInfos = { since: string; pending: boolean; user: UserInfos; }; export declare function convertRawToFriend(accountManager: AccountManager, raw: S): S extends FriendInfos[] ? Friend[] : Friend; export default class Friend { private accountManager; constructor(accountManager: AccountManager, infos: FriendInfos); /** * The User Infos of the Friend * @since 0.1.25 */ user: User; /** * Whether this Friend has not accepted the request yet * @since 0.0.11 */ pending: boolean; /** * The Date when the Friend Request was sent * @since 0.0.11 */ since: Date; /** * Unfriend or Delete the Friend * * If the Friend has already accepted the request this will remove the friend, * otherwise it will remove the pending request. * @since 0.0.11 */ remove(): import("../..").Response; /** * Accept the Friends friend request * @since 0.0.11 */ accept(): import("../..").Response; }