import { GeometryLineBase as Base, type GeometryLineSource as GeometryLineSourceBase, type GeometryLineTypes as GeometryLineTypesBase } from "@tai-kun/surrealdb/decodeonly-datatypes"; import { type Coord } from "../_internals/geometry"; import { type GeoJsonPoint, GeometryPoint, type GeometryPointBase, type GeometryPointTypes } from "./geometry-point"; import { CBOR_TAG_GEOMETRY_LINE, type Encodable } from "./spec"; type PointBase = new (source: any) => GeometryPointBase>; export type GeometryLineTypes = GeometryLineTypesBase; export type GeometryLineSource = GeometryLineSourceBase; export type GeoJsonLineString = { type: "LineString"; coordinates: [ GeoJsonPoint["coordinates"], GeoJsonPoint["coordinates"], ...GeoJsonPoint["coordinates"][] ]; }; export declare class GeometryLineBase extends Base implements Encodable { get coordinates(): [ InstanceType["coordinates"], InstanceType["coordinates"], ...InstanceType["coordinates"][] ]; toCBOR(): [tag: typeof CBOR_TAG_GEOMETRY_LINE, value: this["line"]]; toJSON(): GeoJsonLineString; toSurql(): string; toPlainObject(): { type: "LineString"; line: readonly [InstanceType, InstanceType, ...InstanceType[]]; }; } /** * [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/geometry-line) */ export declare class GeometryLine extends GeometryLineBase> { static readonly Point: typeof GeometryPoint; constructor(source: GeometryLineSource); } export {}; //# sourceMappingURL=geometry-line.d.ts.map