import { Networking } from "@flamework/networking"; import type { SyncPayload } from "@rbxts/charm-sync"; import type { CharacterData } from "../exports"; import type { SerializedData } from "./serdes"; interface ClientToServerEvents { start(): void; requestSkill(serialized: SerializedData): void; messageToServer(serialized: SerializedData): void; messageToServer_urel: Networking.Unreliable<(serialized: SerializedData) => void>; } interface ServerToClientEvents { sync(payloads: SyncPayload<{ atom: Charm.Atom; }>[]): void; messageToClient(serialized: SerializedData): void; messageToClient_urel: Networking.Unreliable<(serialized: SerializedData) => void>; damageTaken(Damage: number): void; damageDealt(SourceId: string, Type: "Skill" | "Status", Damage: number): void; } interface ClientToServerFunctions { messageToServer(serialized: SerializedData): unknown; } interface ServerToClientFunctions { messageToClient(serialized: SerializedData): unknown; } export declare const GlobalFunctions: import("@flamework/networking/out/functions/types").GlobalFunction; export declare const ServerFunctions: import("@flamework/networking/out/functions/types").ServerHandler; export declare const ClientFunctions: import("@flamework/networking/out/functions/types").ClientHandler; export declare const GlobalEvents: import("@flamework/networking/out/events/types").GlobalEvent; export declare const ServerEvents: import("@flamework/networking/out/events/types").ServerHandler; export declare const ClientEvents: import("@flamework/networking/out/events/types").ClientHandler; export {};