import { createExtension , isExtension , IExtension } from '@cloudbeaver/core-extensions' ; const objectSchemaProviderSymbol = Symbol ( '@extension/ObjectSchemaProvider' ) ; export type IObjectSchemaProvider < T = never > = ( context : T ) => string | undefined ; export function objectSchemaProvider < T > ( provider ) { return createExtension < T > ( provider , objectSchemaProviderSymbol ) ; } export function isObjectSchemaProvider < T > ( obj ) { return isExtension ( obj , objectSchemaProviderSymbol ) ; }