import type { UmbMemberGroupDetailModel } from '../../types.js';
import type { UmbDetailDataSource } from '../../../../core/repository/index.js';
import type { UmbControllerHost } from '../../../../../libs/controller-api/index.js';
/**
 * A data source for the Member Group that fetches data from the server
 * @class UmbMemberGroupServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbMemberGroupServerDataSource implements UmbDetailDataSource<UmbMemberGroupDetailModel> {
    #private;
    /**
     * Creates an instance of UmbMemberGroupServerDataSource.
     * @param {UmbControllerHost} host - The controller host for this controller to be appended to
     * @memberof UmbMemberGroupServerDataSource
     */
    constructor(host: UmbControllerHost);
    /**
     * Creates a new Member Group scaffold
     * @param {(string | null)} parentUnique
     * @returns { CreateMemberGroupRequestModel }
     * @memberof UmbMemberGroupServerDataSource
     */
    createScaffold(): Promise<{
        data: UmbMemberGroupDetailModel;
    }>;
    /**
     * Fetches a Member Group with the given id from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbMemberGroupServerDataSource
     */
    read(unique: string): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbMemberGroupDetailModel;
        error?: undefined;
    }>;
    /**
     * Inserts a new Member Group on the server
     * @param {UmbMemberGroupDetailModel} model
     * @returns {*}
     * @memberof UmbMemberGroupServerDataSource
     */
    create(model: UmbMemberGroupDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbMemberGroupDetailModel;
        error?: undefined;
    }>;
    /**
     * Updates a MemberGroup on the server
     * @param {UmbMemberGroupDetailModel} MemberGroup
     * @param model
     * @returns {*}
     * @memberof UmbMemberGroupServerDataSource
     */
    update(model: UmbMemberGroupDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbMemberGroupDetailModel;
        error?: undefined;
    }>;
    /**
     * Deletes a Member Group on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbMemberGroupServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
}
