import { UMB_ENTITY_DATA_PICKER_DATA_SOURCE_API_CONTEXT } from './entity-data-picker-data-source.context.token.js';
import { UmbContextBase } from '../../../../libs/class-api/index.js';
import { UmbBasicState } from '../../../../libs/observable-api/index.js';
export class UmbEntityDataPickerDataSourceApiContext extends UmbContextBase {
    #dataSourceApi;
    constructor(host) {
        super(host, UMB_ENTITY_DATA_PICKER_DATA_SOURCE_API_CONTEXT);
        this.#dataSourceApi = new UmbBasicState(undefined);
        this.dataSourceApi = this.#dataSourceApi.asObservable();
    }
    setDataSourceApi(dataSourceApi) {
        this.#dataSourceApi.setValue(dataSourceApi);
    }
    getDataSourceApi() {
        return this.#dataSourceApi.getValue();
    }
}
