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