UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

35 lines 1.33 kB
import type { Pbf as Protobuf } from '../..'; /** * An internationalized message containing per-language versions of a snippet of * text or a URL. * One of the strings from a message will be picked up. The resolution proceeds * as follows: * 1. If the UI language matches the language code of a translation, * the first matching translation is picked. * 2. If a default UI language (e.g., English) matches the language code of a * translation, the first matching translation is picked. * 3. If some translation has an unspecified language code, that translation is * picked. */ export declare class GTFSRealtimeTranslatedString { #private; /** At least one translation must be provided. */ translations: GTFSRealtimeTranslation[]; /** * @param pbf - The Protobuf object to read from * @param end - The end position of the message in the buffer */ constructor(pbf: Protobuf, end: number); } /** The translations field of a GTFSRealtimeTranslatedString */ export declare class GTFSRealtimeTranslation { #private; text: string; language?: string; /** * @param pbf - The Protobuf object to read from * @param end - The end position of the message in the buffer */ constructor(pbf: Protobuf, end: number); } //# sourceMappingURL=util.d.ts.map