import { Margins, CSSMargins } from "../utils"; export declare const A4_WIDTH = 595; export declare const A4_HEIGHT = 842; /** * Boundaries of an object */ export interface BoundingBox { /** * Horizontal postion from the left */ x: number; /** * Vertical position from the top */ y: number; /** * Width in pixels */ width: number; /** * Height in pixels */ height: number; } /** * Vertical space afforded by a bounding box * @param box McSource */ export declare function verticalSpace(box: BoundingBox): number; /** * Create a bounding box for an entire A4 page taking account * of the margins if present. * @param margins page margins */ export declare function pageBounds(margins?: Margins): BoundingBox; /** * Create a bounding box for an entire A4 page */ export declare function fullPageBounds(): BoundingBox; /** * Resize the box based on the given margins * @param box box to be resized * @param margins margins to use to resize */ export declare function removeMargins(box: BoundingBox, margins?: CSSMargins): { x: number; y: number; width: number; height: number; };