import { StringRuleChecker } from './string-rule-checker'; import { GeoCoordinatesFormat } from './string-types'; import { GuardResult } from '../../core/guard-result'; /** * DMS longitude pattern: * - Unsigned degrees value. * - Degrees are within range 0 to 180. * - When degrees are less than hundred, leading zeroes can be shown. * - Minutes and seconds are withing range 0 to 59 (sexagesimal system). * - When minutes and seconds are less than ten, leading zeroes must be shown. * - The “partial” second can be expressed as a decimal, fractional part max lenght is 4 digits. * - Degrees, minutes and seconds must be followed by the symbols ° (U+00B0), ′ (U+2032), and ″ (U+2033), without spaces between the number and symbol. * - East and west longitudes must be indicated by a cardinal compass point (E and W), following immediately after the digits. * - Degrees, minutes, seconds, and cardinal compass point are each separated by a whitespace. */ export declare const DMS_LONG_PATTERN: string; /** * DM longitude pattern: * - Unsigned degrees value. * - Degrees are within range 0 to 180. * - When degrees are less than hundred, leading zeroes can be shown. * - Minutes are withing range 0 to 59 (sexagesimal system). * - When minutes are less than ten, leading zeroes must be shown. * - The “partial” minute can be expressed as a decimal, fractional part max lenght is 4 digits. * - Degrees, and minutes must be followed by the symbols ° (U+00B0), and ′ (U+2032), without spaces between the number and symbol. * - East and west longitudes must be indicated by a cardinal compass point (E and W), following immediately after the digits. * - Degrees, minutes, and cardinal compass point are each separated by a whitespace. */ export declare const DM_LONG_PATTERN: string; /** * DM longitude pattern: * - Signed degrees value when negative. * - Degrees are within range -180 to 180. * - When degrees are less than hundred, leading zeroes can be shown. * - The “partial” minute and second can be expressed as a decimal, fractional part max lenght is 6 digits. * - Degrees must be followed by the symbols ° (U+00B0), without spaces between the number and symbol. */ export declare const DD_LONG_PATTERN: string; export declare class StringIsLongitude extends StringRuleChecker<{ type: 'isLongitude'; format?: GeoCoordinatesFormat; }> { constructor(rule: { type: 'isLongitude'; format?: GeoCoordinatesFormat; }, value: string); /** * @override */ exec(): GuardResult; private isDMSLongitude; private isDMLongitude; private isDDLongitude; }