import type { UmbFolderModel } from '../../../../../core/tree/index.js'; import type { UmbControllerHost } from '../../../../../../libs/controller-api/index.js'; import type { UmbDetailDataSource, UmbDataSourceResponse, UmbDataSourceErrorResponse } from '../../../../../core/repository/index.js'; /** * A data source for Partial View folders that fetches data from the server * @class UmbPartialViewFolderServerDataSource * @implements {UmbDetailDataSource} */ export declare class UmbPartialViewFolderServerDataSource implements UmbDetailDataSource { #private; /** * Creates an instance of UmbPartialViewFolderServerDataSource. * @param {UmbControllerHost} host - The controller host for this controller to be appended to * @memberof UmbPartialViewFolderServerDataSource */ constructor(host: UmbControllerHost); /** * Creates a scaffold for a Partial View folder * @param {Partial} [preset] - Initial data to seed the scaffold with * @returns {UmbDataSourceResponse} The scaffolded Partial View folder * @memberof UmbPartialViewFolderServerDataSource */ createScaffold(preset?: Partial): Promise>; /** * Fetches a Partial View folder from the server * @param {string} unique - The unique identifier of the Partial View folder * @returns {UmbDataSourceResponse} The Partial View folder * @memberof UmbPartialViewFolderServerDataSource */ read(unique: string): Promise<{ data: { entityType: string; unique: string; parentUnique: string | null; name: string; }; error?: undefined; } | { error: import("../../../../../core/resources/index.js").UmbError | import("../../../../../core/resources/index.js").UmbCancelError | import("../../../../../core/resources/index.js").UmbApiError | undefined; data?: undefined; }>; /** * Creates a Partial View folder on the server * @param {UmbFolderModel} model - The Partial View folder to create * @returns {UmbDataSourceResponse} The created Partial View folder * @memberof UmbPartialViewFolderServerDataSource */ create(model: UmbFolderModel, parentUnique: string | null): Promise<{ data: { entityType: string; unique: string; parentUnique: string | null; name: string; }; error?: undefined; } | { error: import("../../../../../core/resources/index.js").UmbError | import("../../../../../core/resources/index.js").UmbCancelError | import("../../../../../core/resources/index.js").UmbApiError | undefined; data?: undefined; }>; /** * Deletes a Partial View folder on the server * @param {string} unique - The unique identifier of the Partial View folder * @returns {UmbDataSourceErrorResponse} The result of the delete operation * @memberof UmbPartialViewFolderServerDataSource */ delete(unique: string): Promise; update(): Promise; }