/// /** * Either a single value x as all RGB values or normal PDFKit color values */ export declare type ColorValue = number | PDFKit.Mixins.ColorValue; /** * An object to bring together PDFKit's font settings */ export interface FontStyle { align?: "center" | "justify" | "left" | "right"; fontSize?: number; fontFamily?: string; fontColor?: ColorValue; letterSpacing?: number; lineHeight?: number; verticalAlignment?: boolean; } /** * Convert single digit color value to RGB * @param color pdfmills color */ export declare function getRGB(color: ColorValue): PDFKit.Mixins.ColorValue; /** * Change font settings of a PDFKit document based on pdfmills's `FontConfig` * @param doc PDFKit document * @param config pdfmills `FontConfig` */ export declare function switchFont(doc: PDFKit.PDFDocument, config: FontStyle): void;