export declare enum AnnotationKind { TEXT = "TEXT", ARROW = "ARROW", POINT = "POINT", CIRCLE = "CIRCLE", RULER = "RULER" } export declare function isAnnotationKind(kind: string): kind is AnnotationKind; export declare function isAnnotationWithArm(anno: T): anno is T & { armLength: number; angle: number; }; export declare const INITIAL_ANNOTATION_KIND = AnnotationKind.POINT; export declare const INITIAL_ANNOTATION_ANGLE = -45; export declare const INITIAL_ANNOTATION_ARM_LENGTH = 50; export declare const INITIAL_ANNOTATION_TEXT_WIDTH = 0; export declare const INITIAL_ANNOTATION_TEXT_HEIGHT = 0; export declare const INITIAL_ANNOTATION_LINE_WIDTH = 2; export declare const INITIAL_ANNOTATION_LINE_COLOR = "#FFFFFF"; export declare const INITIAL_ANNOTATION_RULER_LENGTH_METERS = 1000; export type AnnotationTextSide = 'left' | 'right'; export type AnnotationTextVerticalPosition = 'above' | 'below'; export declare const INITIAL_ANNOTATION_TEXT_SIDE: AnnotationTextSide; export declare const INITIAL_ANNOTATION_TEXT_VERTICAL_POSITION: AnnotationTextVerticalPosition; export declare const ANNOTATION_KINDS: { id: AnnotationKind; label: string; }[]; export declare const ANNOTATION_LINE_WIDTH_OPTIONS: number[]; export declare const ANNOTATION_TEXT_SIDES: Array<{ id: AnnotationTextSide; label: string; }>; export declare const ANNOTATION_TEXT_VERTICAL_POSITIONS: Array<{ id: AnnotationTextVerticalPosition; label: string; }>; /** Canonical arm angle for a text-side + vertical-position pair (screen y-down). */ export declare const ANNOTATION_ANGLE_BY_PLACEMENT: Record<`${AnnotationTextSide}-${AnnotationTextVerticalPosition}`, number>; export declare function isLeftOriented(angle: number): boolean; export declare function isBelowOriented(angle: number): boolean; export declare function textPlacementFromAngle(angle: number): { side: AnnotationTextSide; vertical: AnnotationTextVerticalPosition; };