import { PDFObject } from './pdf-object.ts'; import type { PDFWriter } from './pdf-writer.ts'; /** * Represents a PDF array object, which is an ordered collection of PDF objects. */ export declare class PDFArray extends PDFObject { private readonly elements; /** * Creates a PDFArray from an array of PDFObjects or primitive values. */ static of(elements: readonly (PDFObject | string | number | boolean | null)[]): PDFArray; /** * Creates a new empty PDFArray instance. */ constructor(elements?: readonly PDFObject[]); [Symbol.iterator](): Iterator; /** * Returns the element at the specified index, or undefined if out of bounds. */ at(index: number): PDFObject | undefined; /** * Adds one or more elements to the end of the array. */ push(...elements: (PDFObject | string | number | boolean | null)[]): void; /** * Returns the number of elements in the array. */ size(): number; /** * Writes the PDF array to the given PDFWriter. */ write(writer: PDFWriter): void; }