/** * Phase detection, font fallback, and shorthand normalization helpers * shared by the engine entry point and the per-phase wrapper modules. * * These were extracted from `engine.ts` during M3.b so that the * `composePhases` runner could consume them without creating a cycle * (engine.ts → phase wrapper → engine.ts). * * No behavior changes from the engine.ts originals. */ import type { PdfDocument } from "./engine.js"; import { type PdfEmbeddedFontInput } from "./font-embedding.js"; import type { PdfDocumentInteractiveSpec, PdfRenderedPage } from "./pdf-renderer.js"; import type { PdfDocumentLayoutNode } from "./phase3-types.js"; import type { PdfDocumentPhase6 } from "./phase6-types.js"; import type { PdfDocumentPhase7 } from "./phase7-types.js"; import type { PdfDocumentPhase8 } from "./phase8-types.js"; export declare const DEFAULT_PAGE_HEIGHT = 792; export declare const DEFAULT_PAGE_WIDTH = 612; export declare const DEFAULT_TEXT_X = 72; export declare const DEFAULT_TEXT_Y = 720; export declare const DEFAULT_FONT_SIZE = 12; export declare const DEFAULT_FONT = "Helvetica"; export declare const DEFAULT_FALLBACK_FONT_FAMILY = "Lato"; export declare const DEFAULT_FALLBACK_FONT_FILE = "Lato-Regular.ttf"; export declare function isPhase3Document(document: PdfDocument): document is PdfDocumentPhase7; export declare function containsTableNode(nodes: PdfDocumentLayoutNode[] | undefined): boolean; export declare function requiresPhase6DocumentRender(document: PdfDocumentPhase6): boolean; export declare function requiresPhase7DocumentRender(document: PdfDocumentPhase7): boolean; export declare function requiresPhase8DocumentRender(document: PdfDocumentPhase8): boolean; export declare function requiresTaggedAccessibilityPro(document: PdfDocument): boolean; export declare function requiresEmbeddedFontPro(document: PdfDocument): boolean; export declare function normalizeShorthandTables(document: PdfDocument): void; export declare function cloneRenderedPages(pages: PdfRenderedPage[]): PdfRenderedPage[]; export declare function resolveAutomaticFallbackFont(): PdfEmbeddedFontInput | undefined; export declare function applyBuiltInFontFallback(pages: PdfRenderedPage[], interactive: PdfDocumentInteractiveSpec, fallbackFont: PdfEmbeddedFontInput | undefined): { interactive: PdfDocumentInteractiveSpec; pages: PdfRenderedPage[]; }; //# sourceMappingURL=phase-helpers.d.ts.map