{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import './legacy.ts';\n\nexport { ColyseusSDK, Client, type JoinOptions, type EndpointSettings, type ClientOptions, type RoomAvailable, type ISeatReservation as SeatReservation } from './Client.ts';\nexport { type FetchFn } from './HTTP.ts';\nexport { Room, type InputHandle, type InputOptions } from './Room.ts';\nexport type { RoomClock, RoomClockLike } from './RoomClock.ts';\nexport { type RequestOptions } from './RoomRequest.ts';\nexport { Auth, type AuthSettings, type PopupSettings, type AuthResponse, type UserDataResponse, type ForgotPasswordResponse, type AuthData } from \"./Auth.ts\";\nexport { ServerError, AbortError, MatchMakeError } from './errors/Errors.ts';\nexport { CloseCode, ErrorCode, Protocol } from '@colyseus/shared-types'; // convenience re-export / backwards compatibility\nexport type { InferRoomConstructor } from './core/utils.ts';\n\n/*\n * Serializers\n */\nimport { SchemaSerializer, getStateCallbacks } from \"./serializer/SchemaSerializer.ts\";\nimport { NoneSerializer } from \"./serializer/NoneSerializer.ts\";\nimport { registerSerializer } from './serializer/Serializer.ts';\nexport { Callbacks } from \"@colyseus/schema\";\n\nexport { registerSerializer, SchemaSerializer, getStateCallbacks };\nregisterSerializer('schema', SchemaSerializer);\nregisterSerializer('none', NoneSerializer);\n\n/*\n * Prediction (high-level): Predict + Reconciler + event channels/spawns.\n * The subpath `@colyseus/sdk/predict` is the tree-shake-friendly entry; this\n * top-level re-export covers the convenience `import { Predict } from\n * \"@colyseus/sdk\"` form and the UMD `Colyseus.Predict` namespace.\n */\nexport {\n    Predict,\n    Reconciler,\n    SimReconciler,\n    PredictedSpawns,\n    type PredictMode,\n    type PredictOptions,\n    type PredictGetOptions,\n    type AttachConfig,\n    type ReconcilerOptions,\n    type SimReconcilerOptions,\n    type StepContext,\n    type PredictedSpawnsOptions,\n    type SpawnEntry,\n    type SpawnHandle,\n} from './predict.ts';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,CAAC;AAC9C,kBAAkB,CAAC,MAAM,EAAE,cAAc,CAAC;;;;"}