import { ThemeConfig } from '../styles'; /** * Compute available page width in twips (page width minus left/right margins) */ export declare function getAvailableWidthTwips(theme?: ThemeConfig, themeName?: string): number; /** * Compute full page width in twips (ignores margins) */ export declare function getPageWidthTwips(theme?: ThemeConfig, themeName?: string): number; /** * Compute available page height in twips (page height minus top/bottom margins) */ export declare function getAvailableHeightTwips(theme?: ThemeConfig, themeName?: string): number; /** * Compute full page height in twips (ignores margins) */ export declare function getPageHeightTwips(theme?: ThemeConfig, themeName?: string): number; /** * Parse a percentage string like "75%" into a fraction 0..1 */ export declare function parsePercentageStringToFraction(value: string): number | undefined; /** * Resolve an offset value (twips or percentage string) to twips. * Numbers pass through unchanged; percentage strings are resolved against referenceTwips. */ export declare function resolveOffsetTwips(value: number | string, referenceTwips: number): number; /** * Convert a numeric (points) or percentage string to twips using available width */ export declare function relativeLengthToTwips(value: number | string, availableWidthTwips: number): number; //# sourceMappingURL=widthUtils.d.ts.map