import { TiledMap } from '../types/Map'; import { TiledTileset } from '../types/Tileset'; import { Buffer } from 'buffer'; export declare class TiledParser { private xml; private filePath; private basePath; private layers; constructor(xml: string, filePath?: string, basePath?: string); static propToNumber: (obj: any, props: string[]) => any; static propToBool: (obj: any, props: string[]) => any; static toArray(prop: any): T[]; getImagePath(image: string): string; /** * Check if the object is a tileset source reference * Tileset sources should not have their paths transformed with getImagePath */ private isTilesetSource; transform: (obj: any) => any; static unpackTileBytes(buffer: Buffer, size: number): number[] | never; static decode(obj: { encoding: string; data: string; }, size: number): string | number[]; parseMap(): TiledMap; parseTileset(): TiledTileset; }