/** * Address */ export type Addr = number | BigInt; /** * Basic Process Info */ export type BasicProcessInfo = { /** * PID */ pid: number; /** * PPID */ ppid: number | undefined; /** * Name */ name: string; }; /** * @typedef {number | BigInt} Addr Address */ /** * @typedef {Object} BasicProcessInfo Basic Process Info * @property {number} pid PID * @property {number | undefined} ppid PPID * @property {string} name Name */ /** * Get basic information about all the processes that currently running * *Note: `root` is required on Linux and MacOS.* * @returns {Array} */ export function getProcesses(): Array; /** * Process class */ export class Process { /** * Create a new Process by PID * @param {number} pid PID */ constructor(pid: number); /** * Base Address of the Process * @readonly * @returns {BigInt} Base Address */ readonly get baseAddr(): BigInt; /** * Read `byte` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Value */ readByte(addr: Addr): number; /** * Read `int` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Value */ readInt(addr: Addr): number; /** * Read `int32` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Result */ readInt32(addr: Addr): number; /** * Read `uint32` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Result */ readUint32(addr: Addr): number; /** * Read `int64` from virtual memory at addr. * @param {Addr} addr Address * @returns {BigInt} Result */ readInt64(addr: Addr): BigInt; /** * Read `uint64` from virtual memory at addr. * @param {Addr} addr Address * @returns {BigInt} Result */ readUint64(addr: Addr): BigInt; /** * Read `short` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Result */ readShort(addr: Addr): number; /** * Read `long` from virtual memory at addr. * @param {Addr} addr Address * @returns {BigInt} Result */ readLong(addr: Addr): BigInt; /** * Read `float` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Result */ readFloat(addr: Addr): number; /** * Read `double` from virtual memory at addr. * @param {Addr} addr Address * @returns {number} Result */ readDouble(addr: Addr): number; /** * Read pointer from virtual memory at addr. * @param {Addr} addr Address * @returns {BigInt} Result */ readPointer(addr: Addr): BigInt; /** * Read `bool` from virtual memory at addr. * @param {Addr} addr Address * @returns {boolean} Result */ readBool(addr: Addr): boolean; /** * Read `DWORD` from virtual memory at addr. * @param {Addr} addr Address * @returns {BigInt} Result */ readDword(addr: Addr): BigInt; /** * Read string from virtual memory at addr. * @param {Addr} addr Address * @returns {string} Value */ readString(addr: Addr): string; /** * Write `byte` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeByte(addr: BigInt, val: number): void; /** * Write `int` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeInt(addr: BigInt, val: number): void; /** * Write `int32` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeInt32(addr: BigInt, val: number): void; /** * Write `uint32` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeUint32(addr: BigInt, val: number): void; /** * Write `int64` to virtual memory at addr. * @param {BigInt} addr Address * @param {BigInt} val Value */ writeInt64(addr: BigInt, val: BigInt): void; /** * Write `uint64` to virtual memory at addr. * @param {BigInt} addr Address * @param {BigInt} val Value */ writeUint64(addr: BigInt, val: BigInt): void; /** * Write `short` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeShort(addr: BigInt, val: number): void; /** * Write `long` to virtual memory at addr. * @param {BigInt} addr Address * @param {BigInt} val Value */ writeLong(addr: BigInt, val: BigInt): void; /** * Write `float` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeFloat(addr: BigInt, val: number): void; /** * Write `double` to virtual memory at addr. * @param {BigInt} addr Address * @param {number} val Value */ writeDouble(addr: BigInt, val: number): void; /** * Write pointer to virtual memory at addr. * @param {BigInt} addr Address * @param {BigInt} val Value */ writePointer(addr: BigInt, val: BigInt): void; /** * Write `bool` to virtual memory at addr. * @param {BigInt} addr Address * @param {boolean} val Value */ writeBool(addr: BigInt, val: boolean): void; /** * Write `DWORD` to virtual memory at addr. * @param {BigInt} addr Address * @param {BigInt} val Value */ writeDword(addr: BigInt, val: BigInt): void; /** * Write `string` to virtual memory at addr. * @param {BigInt} addr Address * @param {string} val Value */ writeString(addr: BigInt, val: string): void; /** * Release process handle / task port */ release(): void; /** * Check if process has released handle / task port * @returns {bool} Result */ hasReleased(): bool; #private; } //# sourceMappingURL=memorykit.d.ts.map