import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { Color } from "./Color"; import { Point2 } from "./Point2"; /** An array of points on a 2D image */ export interface PointsAnnotation { $type: "foxglove.PointsAnnotation"; /** Timestamp of annotation */ timestamp: Date | undefined; /** Type of points annotation to draw */ type: PointsAnnotation_Type; /** * Points in 2D image coordinates (pixels). * These coordinates use the top-left corner of the top-left pixel of the image as the origin. */ points: Point2[]; /** Outline color */ outlineColor: Color | undefined; /** Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`, `LINE_STRIP` or `LINE_LOOP`. */ outlineColors: Color[]; /** Fill color */ fillColor: Color | undefined; /** Stroke thickness in pixels */ thickness: number; } /** Type of points annotation */ export declare enum PointsAnnotation_Type { UNKNOWN = 0, /** POINTS - Individual points: 0, 1, 2, ... */ POINTS = 1, /** LINE_LOOP - Closed polygon: 0-1, 1-2, ..., (n-1)-n, n-0 */ LINE_LOOP = 2, /** LINE_STRIP - Connected line segments: 0-1, 1-2, ..., (n-1)-n */ LINE_STRIP = 3, /** LINE_LIST - Individual line segments: 0-1, 2-3, 4-5, ... */ LINE_LIST = 4, UNRECOGNIZED = -1 } export declare function pointsAnnotation_TypeFromJSON(object: any): PointsAnnotation_Type; export declare function pointsAnnotation_TypeToJSON(object: PointsAnnotation_Type): string; export declare const PointsAnnotation: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in Exclude]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude | "$type">]: never; }; interface MessageFns { readonly $type: V; encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } export {};