{"version":3,"file":"scrollbar.d.ts","sources":["scrollbar.d.ts"],"names":[],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA","sourcesContent":["/** Type for the callback used to revert the scrollbar compensation. */\r\nexport declare type CompensationReverter = () => void;\r\n/**\r\n * Utility to handle the scrollbar.\r\n *\r\n * It allows to compensate the lack of a vertical scrollbar by adding an\r\n * equivalent padding on the right of the body, and to remove this compensation.\r\n */\r\nexport declare class ScrollBar {\r\n    private _document;\r\n    constructor(_document: any);\r\n    /**\r\n     * Detects if a scrollbar is present and if yes, already compensates for its\r\n     * removal by adding an equivalent padding on the right of the body.\r\n     *\r\n     * @return a callback used to revert the compensation (noop if there was none,\r\n     * otherwise a function removing the padding)\r\n     */\r\n    compensate(): CompensationReverter;\r\n    /**\r\n     * Adds a padding of the given width on the right of the body.\r\n     *\r\n     * @return a callback used to revert the padding to its previous value\r\n     */\r\n    private _adjustBody;\r\n    /**\r\n     * Tells whether a scrollbar is currently present on the body.\r\n     *\r\n     * @return true if scrollbar is present, false otherwise\r\n     */\r\n    private _isPresent;\r\n    /**\r\n     * Calculates and returns the width of a scrollbar.\r\n     *\r\n     * @return the width of a scrollbar on this page\r\n     */\r\n    private _getWidth;\r\n}\r\n"]}