export interface ScreenDimensions { dimensions: { body: { /** * Minimum height required by the element to fit all content in the viewport without a vertical scrollbar. * Includes padding but excludes border, margin, or horizontal scrollbar. * Can also include the height of pseudo-elements like ::before or ::after. */ scrollHeight?: number; /** * Measurement in pixels of the element's CSS height. * Includes borders, padding, and horizontal scrollbars if rendered. * Excludes pseudo-elements like ::before or ::after. * For the document body, includes total linear content height instead of the CSS height. * Ignores floated elements extending below other linear content. */ offsetHeight?: number; }; html: { /** * Inner width of an element in pixels. * Includes padding but excludes borders, margins, and vertical scrollbars if present. */ clientWidth?: number; /** * Measurement in pixels of the element's CSS width. * Includes borders, padding, and horizontal scrollbars if rendered. * Excludes pseudo-elements like ::before or ::after. * If content can fit without horizontal scrollbar, scrollWidth is equal to clientWidth. */ scrollWidth?: number; /** * Inner height of an element in pixels. * Includes padding but excludes borders, margins, and horizontal scrollbars if present. */ clientHeight?: number; /** * Measurement in pixels of the element's CSS height. * Includes borders, padding, and horizontal scrollbars if rendered. * Excludes pseudo-elements like ::before or ::after. * If content can fit without vertical scrollbar, scrollHeight is equal to clientHeight. */ scrollHeight?: number; /** * Measurement in pixels of the element's CSS height. * Includes borders, padding, and horizontal scrollbars if rendered. * Excludes pseudo-elements like ::before or ::after. * For the document body, includes total linear content height instead of the CSS height. * Ignores floated elements extending below other linear content. */ offsetHeight?: number; }; window: { /** * Width of the browser window viewport in pixels, including the vertical scrollbar if rendered. */ innerWidth?: number; /** * Height of the browser window viewport in pixels, including the horizontal scrollbar if rendered. */ innerHeight?: number; /** * Width of the entire browser window, including sidebar (if expanded), window chrome, and resizing borders/handles. */ outerWidth?: number; /** * Height of the entire browser window, including sidebar (if expanded), window chrome, and resizing borders/handles. */ outerHeight?: number; /** * Ratio of physical pixels to CSS pixels for the current display device. */ devicePixelRatio?: number; /** * Width of the screen in pixels. */ screenWidth?: number; /** * Height of the screen in pixels. */ screenHeight?: number; }; }; } //# sourceMappingURL=screenDimensions.interfaces.d.ts.map