import { Core } from '@pdftron/webviewer';
import Annotation = Core.Annotations.Annotation;

export interface Rgb {
    readonly r: number;
    readonly g: number;
    readonly b: number;
}

export interface DeleteAnnotationsOptions {
    readonly imported?: boolean;
    readonly force?: boolean;
    readonly isUndoRedo?: boolean;
    readonly source?: string;
}

export type AnnotationPredicate = (value: Annotation) => boolean;

export interface ViewerEvent {
    readonly type: string;
}

export interface VisibilityChangedEvent {
    readonly element: string;
    readonly isVisible: boolean;
}
