declare namespace ApiTwitch { /** Twitch user. */ interface ApiUser { /** Twitch user's ID. */ id: string | undefined; /** Twitch user's name. */ name: string | undefined; } /** * Get {@link ApiUser} by Twitch user's name. * @param username Twitch user's name * @param client_id Client ID of your dev.twitch.tv application. * @param access_token Access token. * @returns ApiUser or null (if something went wrong). */ function getUserByName(username: string, client_id: string, access_token: string): Promise; /** * Get {@link ApiUser} by Twitch user's ID. * @param username Twitch user's ID * @param client_id Client ID of your dev.twitch.tv application. * @param access_token Access token. * @returns ApiUser or null (if something went wrong). */ function getUserById(user_id: string, client_id: string, access_token: string): Promise; } export default ApiTwitch;