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