import type { UmbFolderModel } from '../../../../core/tree/index.js';
import type { UmbControllerHost } from '../../../../../libs/controller-api/index.js';
import type { UmbDetailDataSource } from '../../../../core/repository/index.js';
/**
 * A data source for a Data Type folder that fetches data from the server
 * @class UmbDataTypeFolderServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbDataTypeFolderServerDataSource implements UmbDetailDataSource<UmbFolderModel> {
    #private;
    /**
     * Creates an instance of UmbDataTypeFolderServerDataSource.
     * @param {UmbControllerHost} host - The controller host for this controller to be appended to
     * @memberof UmbDataTypeFolderServerDataSource
     */
    constructor(host: UmbControllerHost);
    /**
     * Creates a scaffold for a Data Type folder
     * @param {Partial<UmbFolderModel>} [preset]
     * @returns {*}
     * @memberof UmbDataTypeFolderServerDataSource
     */
    createScaffold(preset?: Partial<UmbFolderModel>): Promise<{
        data: UmbFolderModel;
    }>;
    /**
     * Fetches a Data Type folder from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbDataTypeFolderServerDataSource
     */
    read(unique: string): Promise<{
        data: {
            entityType: string;
            unique: string;
            name: string;
        };
        error?: undefined;
    } | {
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    }>;
    /**
     * Creates a Data Type folder on the server
     * @param {UmbFolderModel} model
     * @returns {*}
     * @memberof UmbDataTypeFolderServerDataSource
     */
    create(model: UmbFolderModel, parentUnique: string | null): Promise<{
        data: {
            entityType: string;
            unique: string;
            name: string;
        };
        error?: undefined;
    } | {
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    }>;
    /**
     * Updates a Data Type folder on the server
     * @param {UmbFolderModel} model
     * @returns {*}
     * @memberof UmbDataTypeFolderServerDataSource
     */
    update(model: UmbFolderModel): Promise<{
        data: {
            entityType: string;
            unique: string;
            name: string;
        };
        error?: undefined;
    } | {
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    }>;
    /**
     * Deletes a Data Type folder on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbDataTypeServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
}
