/** * @fileoverview Coordinate types for WGS84 geographic coordinates. * @module meteo-lt-sdk/types/coordinates */ /** * Branded type for latitude values in decimal degrees. * Valid range: -90 to 90 */ export type Latitude = number & { readonly __brand: 'Latitude'; }; /** * Branded type for longitude values in decimal degrees. * Valid range: -180 to 180 */ export type Longitude = number & { readonly __brand: 'Longitude'; }; /** * Geographic coordinates in WGS84 decimal degrees format. * Used throughout the API for location data. */ export interface Coordinates { /** Latitude in decimal degrees (-90 to 90) */ readonly latitude: Latitude; /** Longitude in decimal degrees (-180 to 180) */ readonly longitude: Longitude; } /** * Type guard to check if a number is a valid latitude value. * @param value - The value to check * @returns True if the value is a valid latitude (-90 to 90) */ export declare function isValidLatitude(value: number): value is Latitude; /** * Type guard to check if a number is a valid longitude value. * @param value - The value to check * @returns True if the value is a valid longitude (-180 to 180) */ export declare function isValidLongitude(value: number): value is Longitude; /** * Creates a branded Latitude value from a number. * @param value - The latitude value in decimal degrees * @returns Branded Latitude value * @throws {RangeError} If the value is outside the valid range */ export declare function createLatitude(value: number): Latitude; /** * Creates a branded Longitude value from a number. * @param value - The longitude value in decimal degrees * @returns Branded Longitude value * @throws {RangeError} If the value is outside the valid range */ export declare function createLongitude(value: number): Longitude; /** * Creates a Coordinates object from latitude and longitude values. * @param latitude - The latitude value in decimal degrees * @param longitude - The longitude value in decimal degrees * @returns Coordinates object with branded latitude and longitude * @throws {RangeError} If either value is outside the valid range */ export declare function createCoordinates(latitude: number, longitude: number): Coordinates; //# sourceMappingURL=coordinates.d.ts.map