import { implFetchUser } from '../../implementation/User.js'; import { type Client, type User } from '../../index.js'; import { type CommentSchema } from './comment.schema.js'; /** * A comment on a user profile. */ export declare class Comment implements User { /** * @param client The main client. * @param data The raw comment data from the FakeYou API. */ constructor(client: Client, data: CommentSchema); readonly client: Client; /** * The token of the comment. This is NOT the author's user token. */ readonly token: string; /** * The token of the user who left the comment. */ readonly userToken: string; /** * The username of the user who left the comment. */ readonly username: string; /** * The display name of the user who left the comment. */ readonly userDisplayName: string; readonly userGravatarHash: string; readonly defaultAvatarIndex: number; readonly defaultAvatarColorIndex: number; readonly commentMarkdown: string; readonly commentRenderedHtml: string; readonly createdAt: Date; readonly updatedAt: Date; readonly maybeEditedAt: Date | null; /** * Fetch the user profile of the user who left the comment. */ fetchProfile: typeof implFetchUser; }