import type { PDFRef } from '../core/pdf-ref.ts'; import type { PDFContext } from './pdf-context.ts'; import { PDFResource } from './pdf-resource.ts'; export type ICCProfileOptions = { /** The raw ICC profile data. */ data: Uint8Array; /** Number of color components: 1 (gray), 3 (RGB), or 4 (CMYK). */ numComponents: 1 | 3 | 4; /** Range array [min1, max1, min2, max2, ...]. Defaults to [0, 1] per component. */ range?: number[]; }; /** * Represents an ICC-based color space in a PDF document. */ export declare class ICCColorSpace extends PDFResource { readonly key: string; private readonly _data; /** * The number of color components in the ICC profile (1 for gray, 3 * for RGB, 4 for CMYK). */ readonly numComponents: 1 | 3 | 4; /** * Optional range array specifying the valid range for each color * component. Should have 2 * numComponents entries. */ readonly range: number[] | undefined; static of(options: ICCProfileOptions): ICCColorSpace; private constructor(); register(context: PDFContext): PDFRef; }