import type { CheerioAPI } from "cheerio"; import { PageOrientation, type FileChild } from "docx"; import type { InlineFieldOptions } from "./fields.js"; import type { StyleResolver } from "./style-resolver.js"; export type PageOrientationName = "portrait" | "landscape"; export interface PageRules { defaultOrientation?: PageOrientationName; namedOrientations: Record; classToPage: Record; } export interface BodySection { orientation: PageOrientationName | undefined; children: FileChild[]; } export interface ResolvedPageSize { width: number; height: number; } /** Infer portrait vs landscape from an `@page { size: … }` value. Dimensions only — page size stays on DocumentConfig. */ export declare function inferOrientationFromPageSizeValue(value: string): PageOrientationName | null; /** * Parse `@page` size rules from embedded `