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 Media Type folder that fetches data from the server
 * @class UmbMediaTypeFolderServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbMediaTypeFolderServerDataSource implements UmbDetailDataSource<UmbFolderModel> {
    #private;
    /**
     * Creates an instance of UmbMediaTypeFolderServerDataSource.
     * @param {UmbControllerHost} host - The controller host for this controller to be appended to
     * @memberof UmbMediaTypeFolderServerDataSource
     */
    constructor(host: UmbControllerHost);
    /**
     * Creates a scaffold for a Media Type folder
     * @param {Partial<UmbFolderModel>} [preset]
     * @returns {*}
     * @memberof UmbMediaTypeFolderServerDataSource
     */
    createScaffold(preset?: Partial<UmbFolderModel>): Promise<{
        data: UmbFolderModel;
    }>;
    /**
     * Fetches a Media Type folder from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbMediaTypeFolderServerDataSource
     */
    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 Media Type folder on the server
     * @param {UmbFolderModel} model
     * @returns {*}
     * @memberof UmbMediaTypeFolderServerDataSource
     */
    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 Media Type folder on the server
     * @param {UmbUpdateFolderModel} model
     * @returns {*}
     * @memberof UmbMediaTypeFolderServerDataSource
     */
    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 Media Type folder on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbMediaTypeServerDataSource
     */
    delete(unique: string): Promise<import("../../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
}
