/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { ParseResults } from "../latlon/internal/parse.js"; //#region src/coordinates/mgrs/parser.d.ts /** * Parses a Military Grid Reference System (MGRS) coordinate string into latitude/longitude values. * * Converts MGRS coordinates to UTM, then to latitude/longitude decimal degrees. Returns * detailed error messages for invalid MGRS formats including zone numbers, band letters, * square identification, and numerical locations. * * @param _format - Format parameter (unused, MGRS has fixed format). * @param input - The MGRS coordinate string to parse (e.g., '31U BF 12345 67890'). * @returns Parse results with coordinate values or detailed error messages. * * @example * ```typescript * parseMGRS(null, '31U BF 12345 67890'); * // [[['48.123456', 'N'], ['11.234567', 'E']], []] * ``` * * @example * ```typescript * parseMGRS(null, 'invalid'); * // [[], ['Invalid UTM zone number found...']] * ``` */ declare function parseMGRS(_format: any, input: string): ParseResults; //#endregion export { parseMGRS }; //# sourceMappingURL=parser.d.ts.map