import { PDFObject } from '../core/pdf-object.ts'; import { PDFResource } from './pdf-resource.ts'; /** * Represents a PDF content stream instruction, consisting of an * operator and optional operands. */ export declare class PDFInstruction { /** * The operator of the PDF instruction. */ readonly operator: string; /** * The operands of the PDF instruction. * * When a PDF resource is passed as an operand, it will be replaced * with its name after being added to the resource dictionary. */ readonly operands: readonly (PDFObject | PDFResource)[]; /** * Creates a new PDFInstruction instance with the given operator and * operands. Operands can be given as primitive values or as * `PDFObject`. Note that strings are converted to `PDFName` objects. */ constructor(operator: string, ...operands: readonly (PDFObject | PDFResource | string | number | boolean | null)[]); }