tsinsim
Version:
An InSim library for Node.js (JavaScript runtime environment) with TypeScript support.
22 lines (21 loc) • 688 B
TypeScript
/// <reference types="node" resolution-mode="require"/>
import { Sendable } from './packets/utilities/index.js';
import { IS_ISI } from './packets/structs/index.js';
import { Events } from './utilities/events.js';
type InSimConnectionOptions = {
Host: string;
Port: number;
};
export declare class InSim extends Events {
private InSimOptions;
private stream;
private buffer;
connected: boolean;
constructor(InSimOptions: Partial<IS_ISI>);
connect(connectionOptions: InSimConnectionOptions): void;
peekByte(offset?: number): number;
disconnect(): void;
sendPacket(packet: Sendable): void;
deserializePacket(data: Buffer): void;
}
export {};