import type { WorkDocumentPaperSize, WorkDocumentSectionLayout } from './work-types'; export interface WorkDocumentPageGeometry { width: number; height: number; orientation?: 'portrait' | 'landscape'; code?: number; } export interface WorkDocumentPaperSource { first?: number; other?: number; } export interface ResolvedDocumentPageSize { width: number; height: number; nativeWidth: number; nativeHeight: number; widthPixels: number; heightPixels: number; widthPoints: number; heightPoints: number; orientation: 'portrait' | 'landscape'; preset: WorkDocumentPaperSize; bounded: boolean; } export declare const DOCUMENT_PAPER_SIZE_PRESETS: readonly ["a3", "a4", "a5", "letter", "legal", "tabloid"]; export declare const MAX_WORD_PAGE_TWIPS = 31680; export declare const MAX_WORD_PAPER_CODE = 118; export declare const MAX_WORD_PAPER_SOURCE_CODE = 65535; export declare function normalizeDocumentPageGeometry(source: unknown): WorkDocumentPageGeometry | null; export declare function normalizeDocumentPaperSource(source: unknown): WorkDocumentPaperSource | null; export declare function parseDocumentPageGeometry(source: unknown): WorkDocumentPageGeometry | null; export declare function parseDocumentPaperSource(source: unknown): WorkDocumentPaperSource | null; export declare function serializeDocumentPageGeometry(source: unknown): string | undefined; export declare function serializeDocumentPaperSource(source: unknown): string | undefined; export declare function normalizeDocumentPaperSize(source: unknown, fallback?: WorkDocumentPaperSize): WorkDocumentPaperSize; export declare function documentPageGeometryForLayout(layout: Pick): WorkDocumentPageGeometry; export declare function documentPageGeometryFromPreset(preset: Exclude, orientation: 'portrait' | 'landscape'): WorkDocumentPageGeometry; export declare function documentPaperSizeForGeometry(source: unknown): WorkDocumentPaperSize; export declare function documentPageOrientationForGeometry(source: unknown, fallback?: 'portrait' | 'landscape'): 'portrait' | 'landscape'; export declare function resolveDocumentPageSize(layout: Pick): ResolvedDocumentPageSize; export declare function applyDocumentPageGeometry(layout: WorkDocumentSectionLayout, source: WorkDocumentPageGeometry): WorkDocumentSectionLayout; export declare function updateDocumentPaperSizePreset(layout: WorkDocumentSectionLayout, pageSize: Exclude): WorkDocumentSectionLayout; export declare function updateDocumentCustomPageMillimeters(layout: WorkDocumentSectionLayout, dimension: 'height' | 'width', millimeters: number): WorkDocumentSectionLayout; export declare function updateDocumentPageOrientation(layout: WorkDocumentSectionLayout, orientation: 'portrait' | 'landscape'): WorkDocumentSectionLayout; export declare function reconcileDocumentPageSizeUpdate(previous: WorkDocumentSectionLayout, next: WorkDocumentSectionLayout): WorkDocumentSectionLayout; export declare function pageMillimetersToTwips(value: number): number; export declare function pageTwipsToMillimeters(value: number): number;