import { PolygonData, PolygonDataSchema } from "../proto/compas_pb/generated/geometry_pb.js"; import { Point } from "./point.js"; import { MessageInitShape } from "@bufbuild/protobuf"; //#region src/geometry/polygon.d.ts /** The fields a Polygon is built from. */ type PolygonInit = MessageInitShape; declare class Polygon { readonly data: PolygonData; private _points?; constructor(init: PolygonInit); get bytes(): Uint8Array; /** Reads a Polygon from the bytes of its protobuf message. */ static fromBytes(bytes: Uint8Array): Polygon; get guid(): string; get name(): string; get points(): Point[]; } declare function bytesToPolygon(bytes: Uint8Array): Polygon; declare function polygonToBytes(polygon: Polygon): Uint8Array; //#endregion export { Polygon, PolygonInit, bytesToPolygon, polygonToBytes }; //# sourceMappingURL=polygon.d.ts.map