import { PdfValue } from '../pdf/objects.js'; import { PdfFile } from './document.js'; /** §7.10 — m numbers in, n numbers out. */ export type PdfFunction = (inputs: ReadonlyArray) => Array; /** * Read a `/Function` entry into something callable (§7.10). * * The entry may also be an ARRAY of functions, each giving one output, which is * what a `/DeviceN` with a per-colorant transform states; that comes back as * one function returning all of them in order. * * @param file The owning file. * @param value The `/Function` (or `/TintTransform`) entry, unresolved. * @returns The function, or `undefined` for one this cannot run. */ export declare function readFunction(file: PdfFile, value: PdfValue | undefined): PdfFunction | undefined;