import type { UmbDocumentDetailModel } from '../../types.js';
import type { UmbDetailDataSource } from '../../../../core/repository/index.js';
import { type UmbDeepPartialObject } from '../../../../core/utils/index.js';
import { UmbControllerBase } from '../../../../../libs/class-api/index.js';
/**
 * A data source for the Document that fetches data from the server
 * @class UmbDocumentServerDataSource
 * @implements {RepositoryDetailDataSource}
 */
export declare class UmbDocumentServerDataSource extends UmbControllerBase implements UmbDetailDataSource<UmbDocumentDetailModel> {
    /**
     * Creates a new Document scaffold
     * @param preset
     * @returns { UmbDocumentDetailModel }
     * @memberof UmbDocumentServerDataSource
     */
    createScaffold(preset?: UmbDeepPartialObject<UmbDocumentDetailModel>): Promise<{
        data: UmbDocumentDetailModel;
    }>;
    /**
     * Fetches a Document with the given id from the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbDocumentServerDataSource
     */
    read(unique: string): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbDocumentDetailModel;
        error?: undefined;
    }>;
    /**
     * Inserts a new Document on the server
     * @param {UmbDocumentDetailModel} model - Document Model
     * @param parentUnique
     * @returns {*}
     * @memberof UmbDocumentServerDataSource
     */
    create(model: UmbDocumentDetailModel, parentUnique?: string | null): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbDocumentDetailModel;
        error?: undefined;
    }>;
    /**
     * Updates a Document on the server
     * @param {UmbDocumentDetailModel} model - Document Model
     * @returns {*}
     * @memberof UmbDocumentServerDataSource
     */
    update(model: UmbDocumentDetailModel): Promise<{
        error: import("../../../../core/resources/index.js").UmbApiError | import("../../../../core/resources/index.js").UmbCancelError | undefined;
        data?: undefined;
    } | {
        data: UmbDocumentDetailModel;
        error?: undefined;
    }>;
    /**
     * Deletes a Document on the server
     * @param {string} unique
     * @returns {*}
     * @memberof UmbDocumentServerDataSource
     */
    delete(unique: string): Promise<import("../../../../core/resources/index.js").UmbApiResponse<{
        data: unknown;
        request: Request;
        response: Response;
    }>>;
}
