import type { UmbDataTypeDetailModel } from '../../../types.js';
import type { UmbDetailDataSource } from '../../../../core/repository/index.js';
import { UmbControllerBase } from '../../../../../libs/class-api/index.js';
/**
 * A data source for the Data Type that fetches data from the server
 * @class UmbDataTypeServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbDataTypeServerDataSource extends UmbControllerBase implements UmbDetailDataSource<UmbDataTypeDetailModel> {
    #private;
    /**
     * Creates a new Data Type scaffold
     * @param {(string | null)} parentUnique
     * @param preset
     * @returns { CreateDataTypeRequestModel }
     * @memberof UmbDataTypeServerDataSource
     */
    createScaffold(preset?: Partial<UmbDataTypeDetailModel>): Promise<{
        data: UmbDataTypeDetailModel;
    }>;
    /**
     * Fetches a Data Type with the given id from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbDataTypeServerDataSource
     */
    read(unique: string): Promise<{
        data: UmbDataTypeDetailModel | undefined;
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
    }>;
    /**
     * Fetches multiple Data Types by their unique IDs from the server
     * @param {Array<string>} uniques - The unique IDs of the data types to fetch
     * @returns {*}
     * @memberof UmbDataTypeServerDataSource
     */
    readMany(uniques: Array<string>): Promise<{
        data: never[];
        error?: undefined;
    } | {
        data: UmbDataTypeDetailModel[] | undefined;
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
    }>;
    /**
     * Inserts a new Data Type on the server
     * @param {UmbDataTypeDetailModel} model
     * @param parentUnique
     * @returns {*}
     * @memberof UmbDataTypeServerDataSource
     */
    create(model: UmbDataTypeDetailModel, parentUnique?: string | null): Promise<{
        data: UmbDataTypeDetailModel | undefined;
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
    }>;
    /**
     * Updates a DataType on the server
     * @param {UmbDataTypeDetailModel} DataType
     * @param model
     * @returns {*}
     * @memberof UmbDataTypeServerDataSource
     */
    update(model: UmbDataTypeDetailModel): Promise<{
        data: UmbDataTypeDetailModel | undefined;
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
    }>;
    /**
     * Deletes a Data Type on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbDataTypeServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiWithErrorResponse>;
}
