earthmc
Version:
An unofficial EarthMC library providing handy methods and extensive info.
35 lines • 1.13 kB
TypeScript
import type { Resident, SquaremapMarkerset, SquaremapNation, SquaremapRawPlayer, SquaremapTown } from '../../types/index.js';
interface ParsedPopup {
town: string;
nation: string;
mayor?: string;
board?: string;
founded?: string;
councillors: string[];
residents: string[];
flags: {
pvp: string;
public: string;
};
wikis?: {
town?: string;
nation?: string;
};
}
export declare const parsePopup: (popup: string) => ParsedPopup;
export declare const parseInfoString: (str: string) => string;
export declare const parseTowns: (res: SquaremapMarkerset, removeAccents?: boolean) => SquaremapTown[];
export declare const parseNations: (towns: SquaremapTown[]) => SquaremapNation[];
export declare const parseResidents: (towns: SquaremapTown[]) => Resident[];
export declare const parsePlayers: (players: SquaremapRawPlayer[]) => {
uuid: string;
name: string;
nickname?: string;
world?: string;
x: number | string;
z: number | string;
y?: number | string;
yaw?: number | string;
}[];
export {};
//# sourceMappingURL=parser.d.ts.map