import { PDFDict } from './pdf-dict.ts'; import { PDFObject } from './pdf-object.ts'; import type { PDFWriter } from './pdf-writer.ts'; /** * Represents a PDF stream object, which contains binary data along with * a stream dictionary. */ export declare class PDFStream extends PDFObject { private readonly _content; /** * The stream dictionary. Custom entries can be added here. * Note: `Length` is set automatically when writing. */ readonly dict: PDFDict; /** * Creates a PDFStream with the given content and optional dictionary. * The content is stored as-is without compression. */ static of(content: Uint8Array, dict?: PDFDict): PDFStream; /** * Creates a PDFStream with the given content and optional dictionary. * The content will be compressed using FlateDecode. */ static compressed(content: Uint8Array, dict?: PDFDict): PDFStream; private constructor(); /** * Returns a copy of the content of the PDF stream. */ get content(): Readonly; /** * Writes the PDF stream to the given PDFWriter. */ write(writer: PDFWriter): void; }