import { createExtension , isExtension , IExtension } from '@cloudbeaver/core-extensions' ; const objectCatalogProviderSymbol = Symbol ( '@extension/ObjectCatalogProvider' ) ; export type IObjectCatalogProvider < T = never > = ( context : T ) => string | undefined ; export function objectCatalogProvider < T > ( provider ) { return createExtension < T > ( provider , objectCatalogProviderSymbol ) ; } export function isObjectCatalogProvider < T > ( obj ) { return isExtension ( obj , objectCatalogProviderSymbol ) ; }