import { SchemaInput } from "./computed-types-wrapper"; import { zBlockPosition } from "./types"; export declare const zPickupGun: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "PICKUP_GUN"; position: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; }>>>; export declare type ZPickupGun = SchemaInput; export declare const zMovementQueue: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; export declare type ZMovementQueue = SchemaInput; export declare const zMovement: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; velocity: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; inputs: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; right: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; up: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; down: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; jump: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ left: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; right: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; up: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; down: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; jump: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; queue: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "MOVEMENT"; position: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; velocity: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; inputs: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; right: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; up: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; down: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; jump: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ left: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; right: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; up: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; down: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; jump: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; queue: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>>; export declare type ZMovement = SchemaInput; export declare const zFireBullet: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "FIRE_BULLET"; angle: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>>; export declare type ZFireBullet = SchemaInput; export declare const zEquipGun: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "EQUIP_GUN"; equipped: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; export declare type ZEquipGun = SchemaInput; export declare const zChat: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "CHAT"; message: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>>; export declare type ZChat = SchemaInput; export declare const zWorldAction: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ action: "save"; } | { action: "load"; } | { action: "clear"; } | { action: "change title"; title: string; }, [{ action: "save"; } | { action: "load"; } | { action: "clear"; } | { action: "change title"; title: string; }]>>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "WORLD_ACTION"; action: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ action: "save"; } | { action: "load"; } | { action: "clear"; } | { action: "change title"; title: string; }, [{ action: "save"; } | { action: "load"; } | { action: "clear"; } | { action: "change title"; title: string; }]>>>; }>>>; export declare type ZWorldAction = SchemaInput; export declare const zPlayerListAction: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ action: "give edit"; playerId: number; } | { action: "remove edit"; playerId: number; } | { action: "kick"; playerId: number; } | { action: "give god"; playerId: number; } | { action: "remove god"; playerId: number; }, [{ action: "give edit"; playerId: number; } | { action: "remove edit"; playerId: number; } | { action: "kick"; playerId: number; } | { action: "give god"; playerId: number; } | { action: "remove god"; playerId: number; }]>>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "PLAYER_LIST_ACTION"; action: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ action: "give edit"; playerId: number; } | { action: "remove edit"; playerId: number; } | { action: "kick"; playerId: number; } | { action: "give god"; playerId: number; } | { action: "remove god"; playerId: number; }, [{ action: "give edit"; playerId: number; } | { action: "remove edit"; playerId: number; } | { action: "kick"; playerId: number; } | { action: "give god"; playerId: number; } | { action: "remove god"; playerId: number; }]>>>; }>>>; export declare type ZPlayerListAction = SchemaInput; export declare const zBlockSingle: (blockPosition: ReturnType) => import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; layer: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default>; block: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default>>; heap: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default<{ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined, [({ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined)?]>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "BLOCK_SINGLE"; position: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; layer: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default>; block: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default>>; heap: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default<{ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined, [({ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined)?]>>; }>>; export declare type ZBlockSingle = SchemaInput>; export declare const zBlockLine: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; end: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; layer: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default>; block: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default>>; heap: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default<{ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined, [({ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined)?]>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "BLOCK_LINE"; start: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; end: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; layer: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default>; block: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default>>; heap: import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default<{ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined, [({ kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined)?]>>; }>>>; export declare type ZBlockLine = SchemaInput; export declare const zKeyTouch: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<"white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple", ["white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"]>>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "KEY_TOUCH"; kind: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<"white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple", ["white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"]>>>; }>>>; export declare type ZKeyTouch = SchemaInput; export declare const zToggleGod: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "TOGGLE_GOD"; god: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; export declare type ZToggleGod = SchemaInput; export declare const zTeleportPlayer: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; position: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; velocity: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types/lib/schema/FunctionType").default<{ x: number; y: number; } | undefined, [({ x: number; y: number; } | null | undefined)?]>>; }>>, import("computed-types").SchemaValidatorFunction<{ packetId: "TELEPORT_PLAYER"; playerId: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; position: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types").SchemaValidatorFunction<{ x: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>>; velocity: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; y: import("computed-types/lib/Validator").ValidatorProxy, import("computed-types/lib/schema/FunctionType").default>; }>>, import("computed-types/lib/schema/FunctionType").default<{ x: number; y: number; } | undefined, [({ x: number; y: number; } | null | undefined)?]>>; }>>>; export declare type ZTeleportPlayer = SchemaInput; /** Z Server packets (they're so frequent it's worth it to abbreviate) */ export declare const zs: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>, import("computed-types").SchemaValidatorFunction<{ playerId: import("./computed-types-wrapper").ParsableSchemaInput, import("computed-types/lib/schema/FunctionType").default>>; }>>>; export declare const zsBlockLine: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_BLOCK_LINE"; block: number; start: { x: number; y: number; }; end: { x: number; y: number; }; layer?: import("./types").TileLayer | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined; }, [{ playerId: number; } & { packetId: "SERVER_BLOCK_LINE"; block: number; start: { x: number; y: number; }; end: { x: number; y: number; }; layer?: import("./types").TileLayer | null | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined; }]>>>; export declare type ZSBlockLine = SchemaInput; export declare const zsWorldAction: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { action: { action: "save"; } | { action: "load"; blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; } | { action: "clear"; } | { action: "change title"; title: string; }; packetId: "SERVER_WORLD_ACTION"; }, [{ playerId: number; } & { action: { action: "save"; } | { action: "load"; blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; } | { action: "clear"; } | { action: "change title"; title: string; }; packetId: "SERVER_WORLD_ACTION"; }]>>>; export declare type ZSWorldAction = SchemaInput; export declare const zsBlockSingle: (blockPosition: ReturnType) => import("computed-types/lib/Validator").ValidatorProxy>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_BLOCK_SINGLE"; position: { x: number; y: number; }; block: number; layer?: import("./types").TileLayer | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined; }, [{ playerId: number; } & { packetId: "SERVER_BLOCK_SINGLE"; position: { x: number; y: number; }; block: number; layer?: import("./types").TileLayer | null | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined; }]>>; export declare type ZSBlockSingle = SchemaInput>; export declare const zsRoleUpdate: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & ({ packetId: "SERVER_ROLE_UPDATE"; permission: "ROLE"; newRole: "non" | "edit" | "owner" | "staff"; } | { packetId: "SERVER_ROLE_UPDATE"; permission: "GOD"; canGod: boolean; }), [{ playerId: number; } & ({ packetId: "SERVER_ROLE_UPDATE"; permission: "ROLE"; newRole: "non" | "edit" | "owner" | "staff"; } | { packetId: "SERVER_ROLE_UPDATE"; permission: "GOD"; canGod: boolean; })]>>>; export declare type ZSRoleUpdate = SchemaInput; export declare const zsPlayerLeave: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_PLAYER_LEAVE"; }, [{ playerId: number; } & { packetId: "SERVER_PLAYER_LEAVE"; }]>>>; export declare type ZSPlayerLeave = SchemaInput; export declare const zsPlayerJoin: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; }, [{ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; }]>>>; export declare type ZSPlayerJoin = SchemaInput; export declare const zsPickupGun: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_PICKUP_GUN"; }, [{ playerId: number; } & { packetId: "SERVER_PICKUP_GUN"; }]>>>; export declare type ZSPickupGun = SchemaInput; export declare const zsMovement: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_MOVEMENT"; position: { x: number; y: number; }; velocity: { x: number; y: number; }; inputs: { left: boolean; right: boolean; up: boolean; down: boolean; jump: boolean; }; queue: number[]; }, [{ playerId: number; } & { packetId: "SERVER_MOVEMENT"; position: { x: number; y: number; }; velocity: { x: number; y: number; }; inputs: { left: boolean; right: boolean; up: boolean; down: boolean; jump: boolean; }; queue: number[]; }]>>>; export declare type ZSMovement = SchemaInput; export declare const zsInit: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; username: string; packetId: "SERVER_INIT"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; worldId: string; size: { width: number; height: number; }; spawnPosition: { x: number; y: number; }; players: ({ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; })[]; }, [{ playerId: number; } & { blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; username: string; packetId: "SERVER_INIT"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; worldId: string; size: { width: number; height: number; }; spawnPosition: { x: number; y: number; }; players: ({ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; })[]; }]>>>; export declare type ZSInit = SchemaInput; export declare const zsFireBullet: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_FIRE_BULLET"; angle: number; }, [{ playerId: number; } & { packetId: "SERVER_FIRE_BULLET"; angle: number; }]>>>; export declare type ZSFireBullet = SchemaInput; export declare const zsEquipGun: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_EQUIP_GUN"; equipped: boolean; }, [{ playerId: number; } & { packetId: "SERVER_EQUIP_GUN"; equipped: boolean; }]>>>; export declare type ZSEquipGun = SchemaInput; export declare const zsChat: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_CHAT"; message: string; }, [{ playerId: number; } & { packetId: "SERVER_CHAT"; message: string; }]>>>; export declare type ZSChat = SchemaInput; export declare const zsEvent: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_EVENT"; event: { type: "chat rate limited"; duration: number; }; }, [{ playerId: number; } & { packetId: "SERVER_EVENT"; event: { type: "chat rate limited"; duration: number; }; }]>>>; export declare type ZSEvent = SchemaInput; export declare const zsKeyTouch: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { kind: "white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"; packetId: "SERVER_KEY_TOUCH"; deactivateTime: number; }, [{ playerId: number; } & { kind: "white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"; packetId: "SERVER_KEY_TOUCH"; deactivateTime: number; }]>>>; export declare type ZSKeyTouch = SchemaInput; export declare const zsToggleGod: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_TOGGLE_GOD"; god: boolean; }, [{ playerId: number; } & { packetId: "SERVER_TOGGLE_GOD"; god: boolean; }]>>>; export declare type ZSToggleGod = SchemaInput; export declare const zsTeleportPlayer: import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ playerId: number; } & { packetId: "SERVER_TELEPORT_PLAYER"; position: { x: number; y: number; }; teleportedPlayerId: number; velocity?: { x: number; y: number; } | undefined; }, [{ playerId: number; } & { packetId: "SERVER_TELEPORT_PLAYER"; position: { x: number; y: number; }; teleportedPlayerId: number; velocity?: { x: number; y: number; } | null | undefined; }]>>>; export declare type ZSTeleportPlayer = SchemaInput; /** * Constructs a `zod` validator that will validate any packet that a client would send. When developers are adding new * client packets, they are expected to add them to this union. At that point, typescript type checking will take over * to ensure that any new packets are properly handled in all places. * @param width The width of the world. * @param height The height of the world. */ export declare const zPacket: (width: number, height: number) => import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<{ packetId: "PICKUP_GUN"; position: { x: number; y: number; }; } | { packetId: "MOVEMENT"; position: { x: number; y: number; }; velocity: { x: number; y: number; }; inputs: { left: boolean; right: boolean; up: boolean; down: boolean; jump: boolean; }; queue: number[]; } | { packetId: "FIRE_BULLET"; angle: number; } | { packetId: "EQUIP_GUN"; equipped: boolean; } | { packetId: "CHAT"; message: string; } | { action: { action: "save"; } | { action: "load"; } | { action: "clear"; } | { action: "change title"; title: string; }; packetId: "WORLD_ACTION"; } | { action: { action: "give edit"; playerId: number; } | { action: "remove edit"; playerId: number; } | { action: "kick"; playerId: number; } | { action: "give god"; playerId: number; } | { action: "remove god"; playerId: number; }; packetId: "PLAYER_LIST_ACTION"; } | { packetId: "BLOCK_SINGLE"; position: { x: number; y: number; }; block: number; layer?: import("./types").TileLayer | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined; } | { packetId: "BLOCK_LINE"; block: number; start: { x: number; y: number; }; end: { x: number; y: number; }; layer?: import("./types").TileLayer | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined; } | { kind: "white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"; packetId: "KEY_TOUCH"; } | { packetId: "TOGGLE_GOD"; god: boolean; } | { playerId: number; packetId: "TELEPORT_PLAYER"; position: { x: number; y: number; }; velocity?: { x: number; y: number; } | undefined; }, [{ packetId: "PICKUP_GUN"; position: { x: number; y: number; }; } | { packetId: "MOVEMENT"; position: { x: number; y: number; }; velocity: { x: number; y: number; }; inputs: { left: boolean; right: boolean; up: boolean; down: boolean; jump: boolean; }; queue: number[]; } | { packetId: "FIRE_BULLET"; angle: number; } | { packetId: "EQUIP_GUN"; equipped: boolean; } | { packetId: "CHAT"; message: string; } | { action: { action: "save"; } | { action: "load"; } | { action: "clear"; } | { action: "change title"; title: string; }; packetId: "WORLD_ACTION"; } | { action: { action: "give edit"; playerId: number; } | { action: "remove edit"; playerId: number; } | { action: "kick"; playerId: number; } | { action: "give god"; playerId: number; } | { action: "remove god"; playerId: number; }; packetId: "PLAYER_LIST_ACTION"; } | { packetId: "BLOCK_SINGLE"; position: { x: number; y: number; }; block: number; layer?: import("./types").TileLayer | null | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined; } | { packetId: "BLOCK_LINE"; block: number; start: { x: number; y: number; }; end: { x: number; y: number; }; layer?: import("./types").TileLayer | null | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined; } | { kind: "white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"; packetId: "KEY_TOUCH"; } | { packetId: "TOGGLE_GOD"; god: boolean; } | { playerId: number; packetId: "TELEPORT_PLAYER"; position: { x: number; y: number; }; velocity?: { x: number; y: number; } | null | undefined; }]>>>; export declare type ZPacket = SchemaInput>; export declare type ZPacketId = Pick; export declare type ZPacketValidator = ReturnType; declare type PickZPacket = Extract; /** * A type which maps every possible key of Packet to a function that accepts the packet whose packetId matches the lookup key. */ export declare type ZPacketLookup = { [K in ZPacket["packetId"]]: (packet: PickZPacket, args: TArgs) => TResult; }; /** * Constructs a `zod` validator that will validate any packet that a server would send. When developers are adding new * server packets, they are expected to add them to this union. At that point, typescript type checking will take over * to ensure that any new packets are properly handled in all places. * @param width The width of the world. * @param height The height of the world. */ export declare const zsPacket: (width: number, height: number) => import("./computed-types-wrapper").ParsableSchemaInput>, import("computed-types/lib/schema/FunctionType").default<({ playerId: number; } & { packetId: "SERVER_BLOCK_LINE"; block: number; start: { x: number; y: number; }; end: { x: number; y: number; }; layer?: import("./types").TileLayer | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined; }) | ({ playerId: number; } & { action: { action: "save"; } | { action: "load"; blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; } | { action: "clear"; } | { action: "change title"; title: string; }; packetId: "SERVER_WORLD_ACTION"; }) | ({ playerId: number; } & { packetId: "SERVER_BLOCK_SINGLE"; position: { x: number; y: number; }; block: number; layer?: import("./types").TileLayer | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | undefined; }) | ({ playerId: number; } & ({ packetId: "SERVER_ROLE_UPDATE"; permission: "ROLE"; newRole: "non" | "edit" | "owner" | "staff"; } | { packetId: "SERVER_ROLE_UPDATE"; permission: "GOD"; canGod: boolean; })) | ({ playerId: number; } & { packetId: "SERVER_PLAYER_LEAVE"; }) | ({ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; }) | ({ playerId: number; } & { packetId: "SERVER_PICKUP_GUN"; }) | ({ playerId: number; } & { packetId: "SERVER_MOVEMENT"; position: { x: number; y: number; }; velocity: { x: number; y: number; }; inputs: { left: boolean; right: boolean; up: boolean; down: boolean; jump: boolean; }; queue: number[]; }) | ({ playerId: number; } & { blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; username: string; packetId: "SERVER_INIT"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; worldId: string; size: { width: number; height: number; }; spawnPosition: { x: number; y: number; }; players: ({ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; })[]; }) | ({ playerId: number; } & { packetId: "SERVER_FIRE_BULLET"; angle: number; }) | ({ playerId: number; } & { packetId: "SERVER_EQUIP_GUN"; equipped: boolean; }) | ({ playerId: number; } & { packetId: "SERVER_CHAT"; message: string; }) | ({ playerId: number; } & { packetId: "SERVER_EVENT"; event: { type: "chat rate limited"; duration: number; }; }) | ({ playerId: number; } & { kind: "white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"; packetId: "SERVER_KEY_TOUCH"; deactivateTime: number; }) | ({ playerId: number; } & { packetId: "SERVER_TOGGLE_GOD"; god: boolean; }) | ({ playerId: number; } & { packetId: "SERVER_TELEPORT_PLAYER"; position: { x: number; y: number; }; teleportedPlayerId: number; velocity?: { x: number; y: number; } | undefined; }), [({ playerId: number; } & { packetId: "SERVER_BLOCK_LINE"; block: number; start: { x: number; y: number; }; end: { x: number; y: number; }; layer?: import("./types").TileLayer | null | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined; }) | ({ playerId: number; } & { action: { action: "save"; } | { action: "load"; blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; } | { action: "clear"; } | { action: "change title"; title: string; }; packetId: "SERVER_WORLD_ACTION"; }) | ({ playerId: number; } & { packetId: "SERVER_BLOCK_SINGLE"; position: { x: number; y: number; }; block: number; layer?: import("./types").TileLayer | null | undefined; heap?: { kind: "sign"; text: string; } | { kind: "switch"; id: number; } | null | undefined; }) | ({ playerId: number; } & ({ packetId: "SERVER_ROLE_UPDATE"; permission: "ROLE"; newRole: "non" | "edit" | "owner" | "staff"; } | { packetId: "SERVER_ROLE_UPDATE"; permission: "GOD"; canGod: boolean; })) | ({ playerId: number; } & { packetId: "SERVER_PLAYER_LEAVE"; }) | ({ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; }) | ({ playerId: number; } & { packetId: "SERVER_PICKUP_GUN"; }) | ({ playerId: number; } & { packetId: "SERVER_MOVEMENT"; position: { x: number; y: number; }; velocity: { x: number; y: number; }; inputs: { left: boolean; right: boolean; up: boolean; down: boolean; jump: boolean; }; queue: number[]; }) | ({ playerId: number; } & { blocks: number[][][]; heaps: (0 | { kind: "sign"; text: string; } | { kind: "switch"; id: number; })[][][]; username: string; packetId: "SERVER_INIT"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; worldId: string; size: { width: number; height: number; }; spawnPosition: { x: number; y: number; }; players: ({ playerId: number; } & { username: string; packetId: "SERVER_PLAYER_JOIN"; canGod: boolean; role: "non" | "edit" | "owner" | "staff"; isGuest: boolean; joinLocation: { x: number; y: number; }; hasGun: boolean; gunEquipped: boolean; inGod: boolean; })[]; }) | ({ playerId: number; } & { packetId: "SERVER_FIRE_BULLET"; angle: number; }) | ({ playerId: number; } & { packetId: "SERVER_EQUIP_GUN"; equipped: boolean; }) | ({ playerId: number; } & { packetId: "SERVER_CHAT"; message: string; }) | ({ playerId: number; } & { packetId: "SERVER_EVENT"; event: { type: "chat rate limited"; duration: number; }; }) | ({ playerId: number; } & { kind: "white" | "gray" | "black" | "red" | "orange" | "yellow" | "green" | "aqua" | "blue" | "purple"; packetId: "SERVER_KEY_TOUCH"; deactivateTime: number; }) | ({ playerId: number; } & { packetId: "SERVER_TOGGLE_GOD"; god: boolean; }) | ({ playerId: number; } & { packetId: "SERVER_TELEPORT_PLAYER"; position: { x: number; y: number; }; teleportedPlayerId: number; velocity?: { x: number; y: number; } | null | undefined; })]>>>; export declare type ZSPacket = SchemaInput>; export declare type ZSPacketId = Pick; export declare type PickZSPacket = Extract; export {};