import { Annotation } from '../../../pdf-viewer-api'; import { ContextBarItem } from '../../state/viewer'; /** internal */ export interface AnnotationContextBarProps { allowCopyText: boolean; allowLockAnnotations: boolean; allowEditLockedAnnotations: boolean; onDeleteAnnotation(id: number): void; onRotateAnnotation(id: number): void; onCopy(id: number): void; onCreatePopup(id: number): void; onOpenPopup(id: number): void; onDeletePopup(id: number): void; onToggleLock(id: number): void; } /** internal */ export interface ContextBarState { annotation: Annotation | null; isReadOnly: boolean; deletable: boolean; canHavePopup: boolean; canDeletePopup: boolean; canRotate: boolean; canCopy: boolean; isLocked: boolean; hasPopup: boolean; showConfirmDelete: boolean; commands: ContextBarItem[]; } /** internal */ export interface ContextBarActions { setAnnotation(payload: { annotation: Annotation; commands: ContextBarItem[]; }): ContextBarState; startDelete(): ContextBarState; cancelDelete(): ContextBarState; delete(): ContextBarState; copyText(): ContextBarState; rotate(): ContextBarState; addPopup(): ContextBarState; editPopup(): ContextBarState; deletePopup(): ContextBarState; toggleLock(): ContextBarState; } /** internal */ export declare const createAnnotationContextBar: (props: AnnotationContextBarProps, element: HTMLElement) => ContextBarActions;