export { getSegmentRange } from "./segment" ; export const done = Promise . resolve ( ) ; export const emptyObject = Object . freeze ( { } ) ; export const emptyArray = Object . freeze ( [ ] as any [ ] ) ; export const clamp = ( min , value , max ) => Math . min ( Math . max ( min , value ) , max ) ;