//#region src/core/geojson.d.ts /** * GeoJSON-shaped value types used by the PostGIS codec. * * The codec speaks GeoJSON-style objects to JavaScript callers and * EWKT/EWKB on the wire. This file is the single source of truth for the * value shapes; the public type re-export lives in `exports/geojson.ts`. */ type Position = readonly [number, number]; type GeometryPoint = { readonly type: 'Point'; readonly coordinates: Position; readonly srid?: number; }; type GeometryLineString = { readonly type: 'LineString'; readonly coordinates: ReadonlyArray; readonly srid?: number; }; type GeometryPolygon = { readonly type: 'Polygon'; readonly coordinates: ReadonlyArray>; readonly srid?: number; }; type GeometryMultiPoint = { readonly type: 'MultiPoint'; readonly coordinates: ReadonlyArray; readonly srid?: number; }; type GeometryMultiLineString = { readonly type: 'MultiLineString'; readonly coordinates: ReadonlyArray>; readonly srid?: number; }; type GeometryMultiPolygon = { readonly type: 'MultiPolygon'; readonly coordinates: ReadonlyArray>>; readonly srid?: number; }; type Geometry = GeometryPoint | GeometryLineString | GeometryPolygon | GeometryMultiPoint | GeometryMultiLineString | GeometryMultiPolygon; /** * Construct a Point. Convenience for the common "lng/lat" case. * * @example * point(-122.4194, 37.7749, 4326) */ declare function point(longitude: number, latitude: number, srid?: number): GeometryPoint; /** * Construct a Polygon from a single outer ring of `[lng, lat]` pairs. * If the first and last positions differ, the ring is closed automatically. */ declare function polygon(ring: ReadonlyArray, srid?: number): GeometryPolygon; /** * Construct a rectangular Polygon from a bounding box. * * @param bbox - `[minLng, minLat, maxLng, maxLat]` */ declare function bboxPolygon(bbox: readonly [number, number, number, number], srid?: number): GeometryPolygon; //#endregion export { GeometryMultiPolygon as a, Position as c, polygon as d, GeometryMultiPoint as i, bboxPolygon as l, GeometryLineString as n, GeometryPoint as o, GeometryMultiLineString as r, GeometryPolygon as s, Geometry as t, point as u }; //# sourceMappingURL=geojson-L3qRlIZY.d.mts.map