import type { UmbDictionaryDetailModel } from '../../types.js'; import type { UmbDataSourceErrorResponse, UmbDataSourceResponse, UmbDetailDataSource } from '../../../core/repository/index.js'; import type { UmbControllerHost } from '../../../../libs/controller-api/index.js'; /** * A data source for the Dictionary that fetches data from the server * @class UmbDictionaryServerDataSource * @implements {UmbDetailDataSource} */ export declare class UmbDictionaryServerDataSource implements UmbDetailDataSource { #private; /** * Creates an instance of UmbDictionaryServerDataSource. * @param {UmbControllerHost} host - The controller host for this controller to be appended to * @memberof UmbDictionaryServerDataSource */ constructor(host: UmbControllerHost); /** * Creates a new Dictionary scaffold * @returns { CreateDictionaryItemRequestModel } The dictionary scaffold. * @memberof UmbDictionaryServerDataSource */ createScaffold(): Promise<{ data: UmbDictionaryDetailModel; }>; /** * Fetches a Dictionary with the given id from the server * @param {string} unique - The unique identifier of the dictionary to fetch. * @returns {Promise>} The dictionary. * @memberof UmbDictionaryServerDataSource */ read(unique: string): Promise>; /** * Inserts a new Dictionary on the server * @param {UmbDictionaryDetailModel} model - The dictionary to create. * @param {string | null} parentUnique - The unique identifier of the parent, if any. * @returns {Promise>} The created dictionary. * @memberof UmbDictionaryServerDataSource */ create(model: UmbDictionaryDetailModel, parentUnique: string | null): Promise>; /** * Updates a Dictionary on the server * @param {UmbDictionaryDetailModel} model - The dictionary to update. * @returns {Promise>} The updated dictionary. * @memberof UmbDictionaryServerDataSource */ update(model: UmbDictionaryDetailModel): Promise>; /** * Deletes a Dictionary on the server * @param {string} unique - The unique identifier of the dictionary to delete. * @returns {Promise} The result of the delete operation. * @memberof UmbDictionaryServerDataSource */ delete(unique: string): Promise; }