/** * postgres-mcp - PostGIS Schema Utilities * * Preprocessing, coordinate validation, and unit conversion helpers * for geospatial operations. */ import { z } from "zod"; /** * Preprocess PostGIS parameters: * - Alias: tableName -> table * - Parse schema.table format * Exported for use in tool files with inline schemas. */ export declare function preprocessPostgisParams(input: unknown): unknown; /** * Preprocess point object to support aliases: * - lon/longitude -> lng * - latitude -> lat * - x/y -> lng/lat * * Also validates coordinate bounds when validateBounds is true (default). * Throws ZodError-compatible error for consistency with schema validation. */ export declare function preprocessPoint(point: unknown, validateBounds?: boolean): { lat: number; lng: number; } | undefined; /** * Convert distance to meters based on unit */ export declare function convertToMeters(distance: number, unit?: string): number; export declare const PointSchemaBase: z.ZodObject<{ lat: z.ZodOptional>>; latitude: z.ZodOptional>>; y: z.ZodOptional>>; lng: z.ZodOptional>>; lon: z.ZodOptional>>; longitude: z.ZodOptional>>; x: z.ZodOptional>>; }, z.core.$strip>; //# sourceMappingURL=utils.d.ts.map