import type { UmbUserDetailModel, UmbUserStartNodesModel } 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 User that fetches data from the server
 * @class UmbUserServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbUserServerDataSource implements UmbDetailDataSource<UmbUserDetailModel> {
    #private;
    /**
     * Creates an instance of UmbUserServerDataSource.
     * @param {UmbControllerHost} host - The controller host for this controller to be appended to
     * @memberof UmbUserServerDataSource
     */
    constructor(host: UmbControllerHost);
    /**
     * Creates a new User scaffold
     * @param {(string | null)} parentUnique
     * @returns { CreateUserRequestModel }
     * @memberof UmbUserServerDataSource
     */
    createScaffold(): Promise<{
        data: UmbUserDetailModel;
    }>;
    /**
     * Fetches a User with the given id from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbUserServerDataSource
     */
    read(unique: string): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbUserDetailModel;
        error?: undefined;
    }>;
    /**
     * Inserts a new User on the server
     * @param {UmbUserDetailModel} model
     * @returns {*}
     * @memberof UmbUserServerDataSource
     */
    create(model: UmbUserDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbUserDetailModel;
        error?: undefined;
    }>;
    /**
     * Updates a User on the server
     * @param {UmbUserDetailModel} User
     * @param model
     * @returns {*}
     * @memberof UmbUserServerDataSource
     */
    update(model: UmbUserDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbUserDetailModel;
        error?: undefined;
    }>;
    /**
     * Deletes a User on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbUserServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
    /**
     * Calculates the start nodes for the User
     * @param {string} unique
     * @returns {*}
     * @memberof UmbUserServerDataSource
     */
    calculateStartNodes(unique: string): Promise<{
        data: UmbUserStartNodesModel;
        error?: undefined;
    } | {
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    }>;
}
