import { AnnotationBase } from "./AnnotationBase"; import { type PdfDocument } from "../PdfDocument"; import { type PdfPage } from "../PdfPage"; import { PdfCollection } from "../PdfCollection"; import { type AnnotationProperties } from "./AnnotationBase"; /** * Represents a collection of {@link AnnotationBase} objects owned by the {@link PdfPage} object. **/ export declare class AnnotationCollection extends PdfCollection { get count(): number; getAt(index: number): AnnotationBase; setAt(index: number, item: AnnotationBase): void; insert(index: number, item: AnnotationBase | AnnotationProperties): void; contains(item: AnnotationBase): boolean; remove(item: AnnotationBase): boolean; removeAt(index: number): void; clear(): void; add(item: AnnotationBase | AnnotationProperties): void; /** * Gets the {@link PdfPage} object that owns this collection. */ get owner(): PdfPage; /** * Gets the {@link PdfDocument} object that owns this collection. */ get doc(): PdfDocument; }