import type { UmbUserGroupDetailModel } from '../../types.js';
import { type UmbDetailDataSource } from '../../../../core/repository/index.js';
import { UmbControllerBase } from '../../../../../libs/class-api/index.js';
/**
 * A data source for the User Group that fetches data from the server
 * @class UmbUserGroupServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbUserGroupServerDataSource extends UmbControllerBase implements UmbDetailDataSource<UmbUserGroupDetailModel> {
    #private;
    /**
     * Creates a new User Group scaffold
     * @param {(string | null)} parentUnique
     * @returns { CreateUserGroupRequestModel }
     * @memberof UmbUserGroupServerDataSource
     */
    createScaffold(): Promise<{
        data: UmbUserGroupDetailModel;
    }>;
    /**
     * Fetches a User Group with the given id from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbUserGroupServerDataSource
     */
    read(unique: string): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbUserGroupDetailModel;
        error?: undefined;
    }>;
    /**
     * Inserts a new User Group on the server
     * @param {UmbUserGroupDetailModel} model
     * @returns {*}
     * @memberof UmbUserGroupServerDataSource
     */
    create(model: UmbUserGroupDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbUserGroupDetailModel;
        error?: undefined;
    }>;
    /**
     * Updates a UserGroup on the server
     * @param {UmbUserGroupDetailModel} UserGroup
     * @param model
     * @returns {*}
     * @memberof UmbUserGroupServerDataSource
     */
    update(model: UmbUserGroupDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbUserGroupDetailModel;
        error?: undefined;
    }>;
    /**
     * Deletes a User Group on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbUserGroupServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
}
