extended-nmea
Version:
A TypeScript library for parsing NMEA0183-like sentences with support for custom and proprietary sentences.
14 lines (13 loc) • 835 B
TypeScript
import { INmeaSentence, IProprietarySentence, IProprietarySentenceConstructor, IQuerySentence, ITalkerSentence, ITalkerSentenceConstructor } from "./types";
export declare class Decoder {
private static readonly TalkerCodecs;
private static readonly ProprietaryCodecs;
static register(id: string, sentence: ITalkerSentenceConstructor): void;
static unregister(id: string): boolean;
static registerProprietary(manufacturerId: string, sentence: IProprietarySentenceConstructor): void;
static unregisterProprietary(manufacturerId: string): boolean;
static decode(data: string): INmeaSentence;
static decodeQuery(data: string): IQuerySentence;
static decodeProprietary<T extends IProprietarySentence>(data: string): T;
static decodeTalker<T extends ITalkerSentence>(data: string): T;
}