import { WorldMapConfig } from '@rpgjs/common'; import { z } from 'zod'; /** * Zod schema for validating map update request body * * This schema ensures that the required fields are present and properly typed * when updating a map configuration. */ export declare const MapUpdateSchema: z.ZodObject<{ config: z.ZodOptional; damageFormulas: z.ZodOptional; id: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; events: z.ZodOptional>; hitboxes: z.ZodOptional>; positions: z.ZodOptional>; parsedMap: z.ZodOptional; data: z.ZodOptional; database: z.ZodOptional, z.ZodRecord]>>; params: z.ZodOptional; }, z.core.$strip>; /** * 401 response returned by the administrative map and world update endpoints. */ export declare function unauthorizedUpdateResponse(kind: "map" | "world", path: string): Response; /** * Default damage formulas, overridden by the formulas published with the map. */ export declare function withDefaultDamageFormulas(damageFormulas: Record | undefined): Record; /** * Read the world id from a world update URL. * * The URL can be either the room-local path or the complete * `/parties///world/:id/update` transport path. */ export declare function parseWorldIdFromUpdateUrl(url: string | undefined): string; /** * Normalize a world update payload (`WorldMapConfig[]` or `{ maps }`). * Missing sizes fall back to the current map data. */ export declare function normalizeWorldMapConfigs(payload: unknown, fallback: { width?: number; height?: number; tileWidth?: number; tileHeight?: number; }): WorldMapConfig[];