mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 07:42:11 +00:00
* Prefer `c ? x : y` over `c && x || y` * Avoid unnecessary asssignment expressions * Prefer switch statements over object lookup tables * Add an .editorconfig * Fix style issues * Fix mentioned issues * remove dynamic require * Introduce esbuild as a build system * Add cross platform stream api * Replace 'fs' with custom cache api * Add cross platform crypto api * Add misc. dependencies * Create multi-platform tests * Update package-lock, Add build files * Pull from upstream * Fix linting issues, and update build files * Fix comments issues * Regenerate types, add source maps Co-authored-by: bob <bob.varioa@gmail.com>
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
export = LiveChat;
|
|
declare class LiveChat {
|
|
/**
|
|
* @param {import('./VideoInfo')} video_info
|
|
*/
|
|
constructor(video_info: import('./VideoInfo'));
|
|
ev: any;
|
|
initial_info: any;
|
|
live_metadata: {
|
|
/** @type {import('../contents/classes/livechat/metadata/UpdateTitleAction')} */
|
|
title: any;
|
|
/** @type {import('../contents/classes/livechat/metadata/UpdateDescriptionAction')} */
|
|
description: any;
|
|
/** @type {import('../contents/classes/livechat/metadata/UpdateViewershipAction')} */
|
|
views: any;
|
|
/** @type {import('../contents/classes/livechat/metadata/UpdateTitleAction')} */
|
|
likes: any;
|
|
/** @type {import('../contents/classes/livechat/metadata/UpdateDateTextAction')} */
|
|
date: any;
|
|
};
|
|
running: boolean;
|
|
is_replay: boolean;
|
|
start(): void;
|
|
stop(): void;
|
|
metadata: any;
|
|
/**
|
|
* Sends a message.
|
|
* @param {string} text
|
|
* @returns {Promise.<import('../contents/classes/livechat/AddChatItemAction')[]>}
|
|
*/
|
|
sendMessage(text: string): Promise<import('../contents/classes/livechat/AddChatItemAction')[]>;
|
|
#private;
|
|
}
|