import { Registry , makeSingleton , OverwritePolicy , QueryContext , SetDataMaskHook , JsonObject , } from '../..' ; export type BuildQuery < T = any > = ( formData : T , options ? : { extras ? : { cachedChanges ? : any ; } ; ownState ? : JsonObject ; hooks ? : { setDataMask : SetDataMaskHook ; setCachedChanges : ( newChanges : any ) => void ; } ; } ) => QueryContext ; class ChartBuildQueryRegistry extends Registry < BuildQuery > { constructor ( ) { super ( { name : 'ChartBuildQuery' , overwritePolicy : OverwritePolicy . WARN } ) ; } } const getInstance = makeSingleton ( ChartBuildQueryRegistry ) ; export default getInstance ;