import type { PostextConfig, Resource } from '../types.js'; import type { ConfigWarning } from '../vdt.js'; /** Where the checks read their context. */ export interface ValidatePageTemplatesOptions { /** The book's resources: their anchors' `style` is checked against * `labelStyles` (`labelStyleUnknown`). */ resources?: readonly Resource[]; /** Pixels per inch and the body text size in px, for comparing a * minimum with a maximum in different units. Default 96 and 16. */ dpi?: number; baseFontSizePx?: number; } /** * Every problem of `config.pageTemplates` and `config.labelStyles` (and of * the same keys under `htmlViewer.overrides`), as config warnings with a * JSON-pointer `path`: the kinds listed on {@link ConfigWarning}, plus * `unknownConfigKey` for a key no template, frame, group, grid, fit, * overflow, variant, label style, placement (its anchor, offset and size) * or decoration has, and `unknownConfigValue` for a word * outside a setting's choices (`area`, `verticalAlign`, `exclude`, `takes`, * `kind`, `align`, `writingMode`, `direction`, `overlap`, `fontStyle`, * `textTransform`) or a template with no id or a frame or group with no * name (ignored). `resolvePageTemplate` makes the same fixes the warnings * describe. Pure. */ export declare function validatePageTemplates(config: PostextConfig | undefined, options?: ValidatePageTemplatesOptions): ConfigWarning[]; /** An `opacity` (#1079): a number in 0…1. Out of range: held (`used` the * held value); not a number: opaque (`used: '1'`). */ export declare function opacityWarning(value: unknown, path: string): ConfigWarning | undefined; //# sourceMappingURL=validate.d.ts.map