/** * A class for writing PDF content to a byte array. */ export declare class PDFWriter { #private; private bytes; /** * Creates a new PDFWriter. */ constructor(); /** Returns the current position in the byte array. */ get position(): number; /** Returns the current column position in the byte array. */ get column(): number; /** Increases the indentation level for pretty-printing. */ indent(): void; /** Decreases the indentation level for pretty-printing. */ unindent(): void; /** Appends indentation spaces based on the current indentation level. */ appendIndent(): void; /** Appends a string to the byte array. */ appendString(str: string): void; /** Ensures the current position is at the start of a new line. */ ensureNewLine(): void; /** Appends a single byte to the byte array. */ appendByte(byte: number): void; /** Appends multiple bytes to the byte array. */ appendBytes(data: ArrayLike): void; /** * Returns the bytes that have been written as a Uint8Array. */ getBytes(): Uint8Array; private grow; }