{"version":3,"file":"index.cjs","names":["createClientFactory"],"sources":["../../src/client/createClient.ts"],"sourcesContent":["import { createClientFactory } from \"@hellacardgames/lib\";\nimport type { Manager } from \"../manager/createManager.js\";\nimport type { Server } from \"../server/createServer.js\";\n\nexport type Client = ReturnType<typeof createClient>;\n\nexport const createClient = createClientFactory<Server, Manager>({\n  drawCard: (gameId: string, playerId: string) => ({\n    gameId,\n    playerId,\n  }),\n  playCard: (gameId: string, playerId: string, cardId: string) => ({\n    gameId,\n    playerId,\n    cardId,\n  }),\n  playWildCard: (gameId, playerId, cardId, color) => ({\n    gameId,\n    playerId,\n    cardId,\n    color,\n  }),\n});\n"],"mappings":";;AAMA,MAAa,gBAAA,gCAAeA,CAAAA,CAAAA,oBAAAA,CAAqC;CAC/D,WAAW,QAAgB,cAAsB;EAC/C;EACA;CACF;CACA,WAAW,QAAgB,UAAkB,YAAoB;EAC/D;EACA;EACA;CACF;CACA,eAAe,QAAQ,UAAU,QAAQ,WAAW;EAClD;EACA;EACA;EACA;CACF;AACF,CAAC"}