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