import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { Color } from "./Color"; import { Point2 } from "./Point2"; /** A text label on a 2D image */ export interface TextAnnotation { $type: "foxglove.TextAnnotation"; /** Timestamp of annotation */ timestamp: Date | undefined; /** * Bottom-left origin of the text label in 2D image coordinates (pixels). * The coordinate uses the top-left corner of the top-left pixel of the image as the origin. */ position: Point2 | undefined; /** Text to display */ text: string; /** Font size in pixels */ fontSize: number; /** Text color */ textColor: Color | undefined; /** Background fill color */ backgroundColor: Color | undefined; } export declare const TextAnnotation: 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 {};