import { PdfDict } from '../pdf/objects.js'; import { PdfFile } from './document.js'; /** A tiling pattern read as a tint: the colour it paints, and how much of the cell. */ export interface PatternTint { readonly colorHex: string; /** 0–1 — the share of the cell the pattern's marks cover. */ readonly coverage: number; } /** * Read a named tiling pattern as a tint. * * @param file The owning file. * @param resources The resources the pattern is named in. * @param name The pattern's resource name. * @returns Its colour and coverage, or `undefined` when neither can be told. */ export declare function patternTint(file: PdfFile, resources: PdfDict | undefined, name: string): PatternTint | undefined;