import { type ObjectManager } from "../ObjectManager"; import { ObjectBase } from "../ObjectBase"; /** * The base abstract collection class. **/ export declare abstract class PdfCollection extends ObjectBase { protected constructor(om: ObjectManager, id: number); /** * Gets the number of items in the collection. **/ abstract get count(): number; /** * Gets the item with the specified index. * @param index The index of the item. **/ abstract getAt(index: number): TItem; /** * Sets the item at the specified index. * @param index The index of the item, starting from 0. * @param item The object to set. **/ abstract setAt(index: number, item: TItem): void; /** * Inserts an item at a specific position in the collection. * @param index The position where the item will be inserted. * @param item The item to insert. **/ abstract insert(index: number, item: TItem): void; /** * Determines whether the item is in the collection. * @returns true if the item is in the collection, false otherwise. **/ abstract contains(item: TItem): boolean; /** * Removes the specified item from the collection. * @param item The item to remove. * @returns true if the item was actually removed, false otherwise. **/ abstract remove(item: TItem): boolean; /** * Removes the item at specified index. * @param index The index of the item to remove. **/ abstract removeAt(index: number): void; /** * Clears the collection. **/ abstract clear(): void; /** * Adds an item to the end of the collection. * @param item The item to add. **/ add(item: TItem): void; /** * Gets last item in the collection. */ get last(): TItem | null; [Symbol.iterator](): Generator; }