import type { UmbTemplateDetailModel } 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 Template that fetches data from the server * @class UmbTemplateServerDataSource * @implements {UmbDetailDataSource} */ export declare class UmbTemplateServerDataSource implements UmbDetailDataSource { #private; /** * Creates an instance of UmbTemplateServerDataSource. * @param {UmbControllerHost} host - The controller host for this controller to be appended to * @memberof UmbTemplateServerDataSource */ constructor(host: UmbControllerHost); /** * Creates a new Template scaffold * @param {Partial} [preset] - Initial data to seed the scaffold with * @returns { CreateTemplateRequestModel } The scaffolded Template * @memberof UmbTemplateServerDataSource */ createScaffold(preset?: Partial): Promise<{ data: UmbTemplateDetailModel; }>; /** * Fetches a Template with the given id from the server * @param {string} unique - The unique identifier of the Template * @returns {Promise>} The Template * @memberof UmbTemplateServerDataSource */ read(unique: string): Promise>; /** * Inserts a new Template on the server * @param {UmbTemplateDetailModel} model - The Template to create * @returns {Promise>} The created Template * @memberof UmbTemplateServerDataSource */ create(model: UmbTemplateDetailModel): Promise>; /** * Updates a Template on the server * @param {UmbTemplateDetailModel} model - The Template to update * @returns {Promise>} The updated Template * @memberof UmbTemplateServerDataSource */ update(model: UmbTemplateDetailModel): Promise>; /** * Deletes a Template on the server * @param {string} unique - The unique identifier of the Template * @returns {Promise} The result of the delete operation * @memberof UmbTemplateServerDataSource */ delete(unique: string): Promise; }