import { UMB_PROPERTY_TYPE_BASED_PROPERTY_CONTEXT } from './property-type-based-property.context-token.js';
import { UmbContextBase } from '../../../../../libs/class-api/index.js';
import { UmbObjectState } from '../../../../../libs/observable-api/index.js';
export class UmbPropertyTypeBasedPropertyContext extends UmbContextBase {
    #dataType;
    constructor(host) {
        super(host, UMB_PROPERTY_TYPE_BASED_PROPERTY_CONTEXT);
        this.#dataType = new UmbObjectState(undefined);
        this.dataType = this.#dataType.asObservable();
    }
    setDataType(dataType) {
        this.#dataType.setValue(dataType);
    }
}
/**
 * @deprecated Use `UmbPropertyTypeBasedPropertyContext` instead.
 * This will be removed in v.18
 */
export { UmbPropertyTypeBasedPropertyContext as UmbContentPropertyContext };
