import { Annotation } from '@annotorious/core'; import { Annotation as Annotation_2 } from '@annotorious/annotorious'; import { AnnotationBody } from '@annotorious/core'; import { AnnotationBody as AnnotationBody_2 } from '@annotorious/annotorious'; import { AnnotationState } from '@annotorious/core'; import { AnnotationTarget } from '@annotorious/core'; import { Annotator } from '@annotorious/core'; import { Annotator as Annotator_2 } from '@annotorious/annotorious'; import { AnnotatorState } from '@annotorious/core'; import { ImageAnnotator as AnnotoriousImageAnnotator } from '@annotorious/annotorious'; import { OpenSeadragonAnnotator as AnnotoriousOpenSeadragonAnnotator } from '@annotorious/openseadragon'; import { AnnotoriousOpts } from '@annotorious/annotorious'; import { AnnotoriousOSDOpts } from '@annotorious/openseadragon'; import { Appearance } from '@annotorious/core'; import { AppearanceProvider } from '@annotorious/core'; import { boundsFromPoints } from '@annotorious/annotorious'; import { chainStyles } from '@annotorious/annotorious'; import { ChangeSet } from '@annotorious/core'; import { Color } from '@annotorious/core'; import { computeStyle } from '@annotorious/annotorious'; import { Context } from 'react'; import { createAnonymousGuest } from '@annotorious/core'; import { createBody } from '@annotorious/core'; import { createImageAnnotator } from '@annotorious/annotorious'; import { default as default_2 } from 'openseadragon'; import { defaultColorProvider } from '@annotorious/core'; import { DrawingMode } from '@annotorious/annotorious'; import { DrawingStyle } from '@annotorious/core'; import { DrawingStyle as DrawingStyle_2 } from '@annotorious/annotorious'; import { DrawingStyleExpression } from '@annotorious/core'; import { DrawingTool } from '@annotorious/annotorious'; import { Filter } from '@annotorious/core'; import { Filter as Filter_2 } from '@annotorious/annotorious'; import { FloatingArrowProps } from '@floating-ui/react'; import { FormatAdapter } from '@annotorious/core'; import { ForwardRefExoticComponent } from 'react'; import { FragmentSelector } from '@annotorious/annotorious'; import { History as History_2 } from '@annotorious/core'; import { HoverState } from '@annotorious/core'; import { ImageAnnotation } from '@annotorious/annotorious'; import { ImageAnnotationTarget } from '@annotorious/annotorious'; import { ImageAnnotatorState } from '@annotorious/annotorious'; import { JSX } from 'react'; import { LifecycleEvents } from '@annotorious/core'; import { MultiPolygon } from '@annotorious/annotorious'; import { MultiPolygonElement } from '@annotorious/annotorious'; import { MultiPolygonGeometry } from '@annotorious/annotorious'; import { MultiPolygonRing } from '@annotorious/annotorious'; import { MutableRefObject } from 'react'; import { Origin } from '@annotorious/core'; import { parseFragmentSelector } from '@annotorious/annotorious'; import { ParseResult } from '@annotorious/core'; import { parseSVGSelector } from '@annotorious/annotorious'; import { parseW3CImageAnnotation } from '@annotorious/annotorious'; import { Placement } from '@floating-ui/react'; import { Polygon } from '@annotorious/annotorious'; import { PolygonGeometry } from '@annotorious/annotorious'; import { PresentUser } from '@annotorious/core'; import { ReactElement } from 'react'; import { ReactNode } from 'react'; import { ReactPortal } from 'react'; import { Rectangle } from '@annotorious/annotorious'; import { RectangleGeometry } from '@annotorious/annotorious'; import { RefAttributes } from 'react'; import { Selection as Selection_2 } from '@annotorious/core'; import { Selection as Selection_4 } from '@annotorious/annotorious'; import { SelectionState } from '@annotorious/core'; import { serializeFragmentSelector } from '@annotorious/annotorious'; import { serializeSVGSelector } from '@annotorious/annotorious'; import { serializeW3CImageAnnotation } from '@annotorious/annotorious'; import { Shape } from '@annotorious/annotorious'; import { ShapeType } from '@annotorious/annotorious'; import { Store } from '@annotorious/core'; import { Store as Store_2 } from '@annotorious/annotorious'; import { StoreChangeEvent } from '@annotorious/core'; import { StoreObserveOptions } from '@annotorious/core'; import { StoreObserver } from '@annotorious/core'; import { SVGSelector } from '@annotorious/annotorious'; import { User } from '@annotorious/core'; import { User as User_2 } from '@annotorious/annotorious'; import { UserSelectAction } from '@annotorious/core'; import { W3CAnnotation } from '@annotorious/core'; import { W3CAnnotationBody } from '@annotorious/core'; import { W3CAnnotationTarget } from '@annotorious/core'; import { W3CImageAnnotation } from '@annotorious/annotorious'; import { W3CImageAnnotationTarget } from '@annotorious/annotorious'; import { W3CImageFormat } from '@annotorious/annotorious'; import { W3CImageFormatAdapter } from '@annotorious/annotorious'; import { W3CImageFormatAdapterOpts } from '@annotorious/annotorious'; export { Annotation } export { AnnotationBody } export { AnnotationState } export { AnnotationTarget } export { Annotator } export declare type AnnotatorPlugin> = (anno: T, opts?: Object) => ({ unmount?: () => void; }) | void; export { AnnotatorState } export declare const Annotorious: ForwardRefExoticComponent< { children: ReactNode; } & RefAttributes>>; export declare const AnnotoriousContext: Context< { anno: any; setAnno: any; annotations: any[]; selection: { selected: any[]; }; }>; export { AnnotoriousImageAnnotator } export { AnnotoriousOpenSeadragonAnnotator } export { AnnotoriousOpts } export declare const AnnotoriousPlugin: >(props: AnnotoriousPluginProps) => any; export declare interface AnnotoriousPluginProps> { pluginRef?: MutableRefObject>; plugin: AnnotatorPlugin; onLoad?(instance: PluginReturnType): void; opts?: Object; } export { Appearance } export { AppearanceProvider } export { boundsFromPoints } export { chainStyles } export { ChangeSet } export { Color } export { computeStyle } export { createAnonymousGuest } export { createBody } export { createImageAnnotator } export { defaultColorProvider } export { DrawingMode } export { DrawingStyle } export { DrawingStyleExpression } export { DrawingTool } export { Filter } export { FormatAdapter } export { FragmentSelector } export { History_2 as History } export { HoverState } declare interface HoverTooltipContentProps { annotation: T; } export { ImageAnnotation } export declare const ImageAnnotationPopup: (props: ImageAnnotationPopupProps) => JSX.Element; declare interface ImageAnnotationPopupProps { arrow?: boolean; arrowProps?: Omit; popup: (props: PopupProps) => ReactNode; } export { ImageAnnotationTarget } export declare const ImageAnnotator: (props: ImageAnnotatorProps) => JSX.Element; export declare interface ImageAnnotatorProps extends AnnotoriousOpts { children: ReactElement; containerClassName?: string; filter?: Filter_2; tool?: DrawingTool; } export { ImageAnnotatorState } export { LifecycleEvents } export { MultiPolygon } export { MultiPolygonElement } export { MultiPolygonGeometry } export { MultiPolygonRing } export declare const OpenSeadragonAnnotationPopup: (props: OpenSeadragonAnnotationPopupProps) => ReactPortal; declare interface OpenSeadragonAnnotationPopupProps { arrow?: boolean; arrowProps?: Omit & { padding?: number; }; placement?: Placement; popup: (props: PopupProps) => ReactNode; } export declare const OpenSeadragonAnnotator: (props: OpenSeadragonAnnotatorProps & { ref?: React.ForwardedRef | null>; }) => React.ReactElement; export declare const OpenSeadragonAnnotatorContext: Context< { viewer: default_2.Viewer; setViewer(viewer: default_2.Viewer): void; }>; export declare type OpenSeadragonAnnotatorProps = AnnotoriousOSDOpts & { children?: ReactNode; filter?: Filter_2; hideAnnotations?: boolean; style?: DrawingStyle_2 | ((annotation: I) => DrawingStyle_2); tool?: string | null; user?: User_2; onInitError?(error: Error): void; }; export declare const OpenSeadragonHoverTooltip: (props: OpenSeadragonHoverTooltipProps) => ReactPortal; declare interface OpenSeadragonHoverTooltipProps { offsetX?: number; offsetY?: number; tooltip: (props: HoverTooltipContentProps) => ReactNode; } export declare const OpenSeadragonViewer: ForwardRefExoticComponent>; export declare interface OpenSeadragonViewerProps { className?: string; options: default_2.Options; } export { Origin } export { parseFragmentSelector } export { ParseResult } export { parseSVGSelector } export { parseW3CImageAnnotation } declare type PluginReturnType = ReturnType>; export { Polygon } export { PolygonGeometry } export declare interface PopupProps { annotation: T; editable?: boolean; event?: PointerEvent | KeyboardEvent; onCreateBody(body: Partial): void; onDeleteBody(id: string): void; onUpdateBody(current: AnnotationBody_2, next: Partial): void; } export { PresentUser } export { Rectangle } export { RectangleGeometry } export { Selection_2 as Selection } declare interface Selection_3 extends Omit { selected: { annotation: T; editable?: boolean; }[]; previous: { annotation: T; editable?: boolean; }[]; } export { SelectionState } export { serializeFragmentSelector } export { serializeSVGSelector } export { serializeW3CImageAnnotation } export { Shape } export { ShapeType } export { Store } export { StoreChangeEvent } export { StoreObserver } export { SVGSelector } export declare const useAnnotation: (id: string, options?: Omit) => T; export declare const useAnnotations: (debounce?: number) => T[]; export declare const useAnnotationSelectAction: (id: string) => UserSelectAction; export declare const useAnnotationStore: >() => T | undefined; export declare const useAnnotator: >() => T; export declare const useAnnotatorUser: () => User_2; export declare const useHover: () => T; export { User } export { UserSelectAction } export declare const useSelection: () => Selection_3; export declare const useViewer: () => default_2.Viewer; export declare const useViewportState: (debounce?: number) => T[]; export { W3CAnnotation } export { W3CAnnotationBody } export { W3CAnnotationTarget } export { W3CImageAnnotation } export { W3CImageAnnotationTarget } export { W3CImageFormat } export { W3CImageFormatAdapter } export { W3CImageFormatAdapterOpts } export { }