import { Schema, Decoder, Iterator } from "@colyseus/schema"; import type { Serializer } from "./Serializer.ts"; import type { Room } from "../Room.ts"; export type SchemaConstructor = new (...args: any[]) => T; export declare function getStateCallbacks(room: Room): import("@colyseus/schema").SchemaCallbackProxy; export declare class SchemaSerializer implements Serializer { state: T; decoder: Decoder; setState(encodedState: Uint8Array, it?: Iterator): void; getState(): T; patch(patches: Uint8Array, it?: Iterator): import("@colyseus/schema").DataChange[]; teardown(): void; handshake(bytes: Uint8Array, it?: Iterator): void; }