import Net from "@rbxts/net" ; import t from "@rbxts/t" ; import { $print } from "rbxts-transform-debug" ; const { Create , Namespace , Event , Function , AsyncFunction , ServerAsyncFunction , ServerToClientEvent , ClientToServerEvent , } = Net . Definitions ; const Remotes = Create ( { TestStandaloneEvent : ServerToClientEvent < [ message2 : string ] > ( ) , TestStandaloneClientEvent : ClientToServerEvent < [ message : string ] > ( ) , TestingFunctions : Namespace ( { CallServerAndAddNumbers : ServerAsyncFunction < ( a : number , b : number ) => number > ( ) , } ) , TestingEvents : Namespace ( { PrintMessage : ClientToServerEvent < [ message : string ] > ( ) , } ) , Legacy : Namespace ( { LegacyEvent : Event < [ message : string ] , [ message2 : number ] > ( ) , LegacyFunction : Function < ( server : number ) => string > ( ) , LegacyAsyncFunction : AsyncFunction < ( server : number ) => string , ( client : number ) => string > ( ) , } ) , } , [ Net . Middleware . Global ( ( remote , data , player ) => { $print ( "call from" , player , "via" , remote , ... data ) ; } ) , ] ) ; export default Remotes ;