import type { UmbMemberDetailModel } from '../../types.js';
import type { UmbDetailDataSource } from '../../../../core/repository/index.js';
import { type UmbDeepPartialObject } from '../../../../core/utils/index.js';
import { UmbControllerBase } from '../../../../../libs/class-api/index.js';
/**
 * A data source for the Member that fetches data from the server
 * @class UmbMemberServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbMemberServerDataSource extends UmbControllerBase implements UmbDetailDataSource<UmbMemberDetailModel> {
    /**
     * Creates a new Member scaffold
     * @param {Partial<UmbMemberDetailModel>} [preset]
     * @returns { CreateMemberRequestModel }
     * @memberof UmbMemberServerDataSource
     */
    createScaffold(preset?: UmbDeepPartialObject<UmbMemberDetailModel>): Promise<{
        data: UmbMemberDetailModel;
    }>;
    /**
     * Fetches a Member with the given id from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbMemberServerDataSource
     */
    read(unique: string): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbMemberDetailModel;
        error?: undefined;
    }>;
    /**
     * Inserts a new Member on the server
     * @param {UmbMemberDetailModel} model
     * @returns {*}
     * @memberof UmbMemberServerDataSource
     */
    create(model: UmbMemberDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbMemberDetailModel;
        error?: undefined;
    }>;
    /**
     * Updates a Member on the server
     * @param {UmbMemberDetailModel} Member
     * @param model
     * @returns {*}
     * @memberof UmbMemberServerDataSource
     */
    update(model: UmbMemberDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbMemberDetailModel;
        error?: undefined;
    }>;
    /**
     * Deletes a Member on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbMemberServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
}
