UNPKG

rock-mod

Version:

Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.

8 lines (7 loc) 582 B
import { type IRPCManager } from "../../common/rpc/IRPCManager"; import { type IClientRPCList, type IServerRPCList } from "../../../../shared/net/common/rpc/types"; export declare class RageRPCManager implements IRPCManager { register<K extends keyof IClientRPCList>(rpcName: K, handler: (...args: Parameters<IClientRPCList[K]>) => ReturnType<IClientRPCList[K]>): void; unregister<K extends keyof IClientRPCList>(rpcName: K): void; emitServer<K extends keyof IServerRPCList>(rpcName: K, ...args: Parameters<IServerRPCList[K]>): Promise<ReturnType<IServerRPCList[K]>>; }