import { GeometryPointBase as Base, type GeometryPointSource, type GeometryPointTypes } from "@tai-kun/surrealdb/decodeonly-datatypes"; import { type CoordValue } from "../_internals/geometry"; import { CBOR_TAG_GEOMETRY_POINT, type Encodable } from "./spec"; export type { GeometryPointSource, GeometryPointTypes }; export type GeoJsonPoint = { type: "Point"; coordinates: [x: number, y: number]; }; export declare class GeometryPointBase extends Base implements Encodable { get x(): CoordValue; get y(): CoordValue; get coordinates(): readonly [ x: CoordValue, y: CoordValue ]; toCBOR(): [tag: typeof CBOR_TAG_GEOMETRY_POINT, value: this["point"]]; toJSON(): GeoJsonPoint; toSurql(): string; toPlainObject(): { type: "Point"; point: readonly [x: CoordValue, y: CoordValue]; }; } /** * [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/geometry-point) */ export declare class GeometryPoint extends GeometryPointBase> { static readonly Coord: NumberConstructor; constructor(source: GeometryPointSource); } //# sourceMappingURL=geometry-point.d.ts.map