import { Profiler , Viewer , constants } from "vivliostyle" ; type Constants = typeof constants ; export type Vivliostyle = { viewer : Viewer ; constants : Constants ; profile : Profiler ; } ; class VivliostyleImpl { viewer : null | Viewer ; constants : null | Constants ; profile : null | Profiler ; constructor ( ) { this . viewer = null ; this . constants = null ; this . profile = null ; } setInstance ( vivliostyle ) { this . viewer = vivliostyle . viewer ; this . constants = vivliostyle . constants ; this . profile = vivliostyle . profile ; } } export default new VivliostyleImpl ( ) ;