import { createExtension , isExtension , IExtension } from '@cloudbeaver/core-extensions' ; const objectCatalogSetterSymbol = Symbol ( '@extension/ObjectCatalogSetter' ) ; export type IObjectCatalogSetter < T = never > = ( catalogId : string , context : T ) => Promise < boolean > | boolean ; export function objectCatalogSetter < T > ( provider ) { return createExtension < T > ( provider , objectCatalogSetterSymbol ) ; } export function isObjectCatalogSetter < T > ( obj ) { return isExtension ( obj , objectCatalogSetterSymbol ) as boolean ; }