import type Client from '../../index.js'; import { type LeaderboardResponseSchema } from './leaderboard.schema.js'; import { LeaderboardUser } from './leaderboardUser/LeaderboardUser.js'; /** * The leaderboard class for the TTS and W2L leaderboards. */ export declare class Leaderboard { /** * @param client The main client. * @param data The raw leaderboard data from the FakeYou API. */ constructor(client: Client, data: LeaderboardResponseSchema); /** * The URL to the leaderboard page in the browser. */ readonly webUrl: string; readonly ttsLeaderboard: LeaderboardUser[]; readonly w2lLeaderboard: LeaderboardUser[]; /** * Get an entry from the leaderboard using its index. * * @param index the index of the entry. Starts at 0. * @param type the type of the entry (tts or w2l). * @returns the single entry. */ getEntry(index: number, type: 'tts' | 'w2l'): LeaderboardUser | undefined; }