forked from
j4ck.xyz/tweets2bsky
A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
1declare module '@steipete/bird/dist/lib/twitter-client.js' {
2 export interface TwitterClientOptions {
3 cookies: {
4 authToken: string;
5 ct0: string;
6 };
7 }
8
9 export interface TwitterUser {
10 username: string;
11 id?: string;
12 name?: string;
13 }
14
15 export interface TwitterUserResult {
16 success: boolean;
17 user?: TwitterUser;
18 error?: Error | string;
19 }
20
21 export interface TwitterSearchResult {
22 success: boolean;
23 tweets?: unknown[];
24 error?: Error | string;
25 }
26
27 export class TwitterClient {
28 constructor(options: TwitterClientOptions);
29 getCurrentUser(): Promise<TwitterUserResult>;
30 search(query: string, limit: number): Promise<TwitterSearchResult>;
31 mapTweetResult(result: unknown): unknown;
32 }
33}
34
35declare module 'franc-min' {
36 const franc: (text: string) => string;
37 export default franc;
38 export = franc;
39}
40
41declare module 'iso-639-1' {
42 const iso6391: {
43 getCode(name: string): string | undefined;
44 getName(code: string): string | undefined;
45 getAllNames(): string[];
46 getAllCodes(): string[];
47 };
48 export default iso6391;
49}