@tgsnake/core
Version:
Pure Telegram MTProto library for nodejs
37 lines (36 loc) • 1.3 kB
TypeScript
import * as crypto from 'crypto';
import * as net from 'net';
import * as os from 'os';
import * as path from 'path';
import process from 'process';
import { Buffer } from 'buffer';
export { inspect } from 'util';
export { gzipSync, gunzipSync } from 'zlib';
import bigInt from 'big-integer';
export { Logger } from '@tgsnake/log';
export { SocksClient } from 'socks';
export { Mutex, Semaphore } from 'async-mutex';
export { Readable, Writable, Duplex } from 'stream';
export declare const isDeno: boolean;
export declare const isBun: boolean;
export declare const isBrowser: boolean;
export declare const where: string;
export type BufferEncoding = 'utf-8' | 'utf8' | 'utf-16le' | 'utf16le' | 'latin1' | 'binary' | 'base64' | 'hex';
export declare namespace aesjs {
namespace ModeOfOperation {
class ecb {
constructor(..._args: Array<any>);
encrypt(..._args: Array<any>): Buffer;
decrypt(..._args: Array<any>): Buffer;
}
class ctr {
constructor(..._args: Array<any>);
encrypt(..._args: Array<any>): Buffer;
decrypt(..._args: Array<any>): Buffer;
}
}
class Counter {
constructor(..._args: Array<any>);
}
}
export { crypto, net, os, bigInt, path, process as sysprc, Buffer };