webshot.d.ts 631 B

123456789101112131415
  1. import * as CallableInstance from 'callable-instance';
  2. import { Tweets } from './twitter';
  3. declare class Webshot extends CallableInstance<[Tweets, (...args: any[]) => void, number], Promise<void>> {
  4. private browser;
  5. private mode;
  6. private wsUrl;
  7. constructor(wsUrl: string, mode: number, onready?: (...args: any[]) => void);
  8. private connect;
  9. private reconnect;
  10. private extendEntity;
  11. private renderWebshot;
  12. private fetchMedia;
  13. webshot(tweets: Tweets, callback: (twiId: string, msgs: string, text: string, author: string) => void, webshotDelay: number): Promise<void>;
  14. }
  15. export default Webshot;