/** * Digits 1-2 of a numeric SIDC are the Version field - "10" is 2525D * * TAK Clients dispatch to a symbology provider based on this field * (10 => APP6-D, 11 => 2525D, 13 => 2525E, 15 => 2525E Ch1) and fall back to * 2525C - where a numeric SIDC is never a valid symbol - when the version is * unknown to them, resulting in no symbol being rendered at all */ export declare const VERSION_2525D = "10"; export declare enum Domain { ATOM = "a", BITS = "b", REFERENCE = "r", TASK = "t", CAPABILITY = "c", REPLY = "y" } export declare enum StandardIdentity { PENDING = "p", UNKNOWN = "u", ASSUMED_FRIEND = "a", FRIEND = "f", NEUTRAL = "n", SUSPECT = "s", HOSTILE = "h", JOKER = "j", FAKER = "k", NONE = "o" } export declare const SID_MAP: Record; export declare const STATUS_MAP: Record; export declare const DIM_MAP: Record; export declare const SID_REVERSE_MAP: Record; export declare const SYMBOL_SET_DIM_MAP: Record; /** * @class * * Convert a COT Atom Type to/from Symbol Identification Code (SIDC) * Migrated to TypeScript from the original Kotlin verison * @ https://github.com/cyberpython/kotcot under the MIT License */ export default class Type2525 { /** * Check a given COT Type to see if it is compatible with conversion to SIDC * * @param cotType - Cursor On Target Type to test */ static is2525BConvertable(cotType: string): boolean; static domain(cotType: string): Domain; static standardIdentity(cotType: string): StandardIdentity; /** * Given a COT Atom Type, return an SIDC in 2525D format * * @param cotType - Cursor On Target Type (Note must start with atomic "a") */ static to2525D(cotType: string): string; /** * Given a COT Atom Type, return an SIDC * * @param cotType - Cursor On Target Type (Note must start with atomic "a") */ static to2525B(cotType: string): string; /** * Check a given numeric SIDC (2525D/2525E) to see if it is compatible with conversion to CoT Type * * @param sidc - Numeric SIDC to test */ static isNumericSIDCConvertable(sidc: string): boolean; /** * Given a numeric SIDC (2525D/2525E), return a basic CoT Atom Type * in the form a-- * * @param sidc - Numeric SIDC to convert */ static fromNumericSIDC(sidc: string): string; /** * Given a numeric SIDC (2525D/2525E), return the most specific CoT Atom Type * that can be derived from it, falling back to the basic * `a--` type from {@link fromNumericSIDC} * when the symbol has no warfighting (2525B) equivalent * * Clients that can't resolve the SIDC itself - either because they predate * the given 2525 variant or because the detail carrying it was dropped - * derive their icon from the CoT Type, so retaining the Function ID is what * keeps a meaningful fallback icon on those clients * * @param sidc - Numeric SIDC to convert */ static cotTypeFromNumericSIDC(sidc: string): string; /** * Check a given SIDC to see if it is compatible with conversion to CoT Type * * @param sidc - SIDC to test */ static isTypeConvertable(sidc: string): boolean; /** * Given an SIDC, return a CoT Type * * @param sidc - SIDC to convert */ static from2525B(sidc: string): string; }