import { StringRuleChecker } from './string-rule-checker'; import { GeoCoordinatesFormat } from './string-types'; import { GuardResult } from '../../core/guard-result'; /** * DMS latitude pattern: * - Unsigned degrees value. * - Degrees are within range 0 to 90. * - When degrees are less than ten, leading zero 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. * - North and south latitudes must be indicated by a cardinal compass point (N and S), following immediately after the digits. * - Degrees, minutes, seconds, and cardinal compass point are each separated by a whitespace. */ export declare const DMS_LAT_PATTERN: string; /** * DM latitude pattern: * - Unsigned degrees value. * - Degrees are within range 0 to 90. * - When degrees are less than ten, leading zero 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. * - North and south latitudes must be indicated by a cardinal compass point (N and S), following immediately after the digits. * - Degrees, minutes, and cardinal compass point are each separated by a whitespace. */ export declare const DM_LAT_PATTERN: string; /** * DM latitude pattern: * - Signed degrees value when negative. * - Degrees are within range -90 to 90. * - When degrees are less than ten, leading zero 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_LAT_PATTERN: string; export declare class StringIsLatitude extends StringRuleChecker<{ type: 'isLatitude'; format?: GeoCoordinatesFormat; }> { constructor(rule: { type: 'isLatitude'; format?: GeoCoordinatesFormat; }, value: string); /** * @override */ exec(): GuardResult; private isDMSLatitude; private isDMLatitude; private isDDLatitude; }